1,003 Posted Topics

Member Avatar for shapeape

Hi, Here is a simple form validation I modified way back in 2007. Although i completely outgrown this script and I have written many fancy validation scripts ever since, I still honestly believe this can serve a really good sample script for you. I did a minor upgrade tonight so …

Member Avatar for diafol
0
394
Member Avatar for joshl_1995

I assumed this can be done in cpanel under default address. This will allow you to catch all email addresses and then pipe it to a PHP program to create the email account. So, if some_user@yourDomainDotCom is dynamically created, then it will be forwarded to the default forwarding address created …

Member Avatar for joshl_1995
0
689
Member Avatar for asif49

If you can manage to take another 2 years of schooling, you can master in Mathematics and become a professor. That is if you enjoy teaching. I don't know what else to say, because I myself don't even know what to do with my Bachelor in Mathematics and Bachelor in …

Member Avatar for iamthwee
0
630
Member Avatar for iamthwee

The contents from view are retrieved response on controller's request , the controller will take the stored response and then assign them to the view file. I haven't have the chance to look at the model file named stuff yet, but I am assuming there are methods there that should …

Member Avatar for leap_coder
0
2K
Member Avatar for iamthwee
Member Avatar for adsegzy
Member Avatar for moone009

if you do var_dump($_SESSION["ServiceOrders"]); , it will give you all the hints you need on how to index the stored session vars. try it.. :)

Member Avatar for moone009
0
395
Member Avatar for Shivapandian
Member Avatar for riddhi.shah.35325

the best way to accomplish this is to use css. #thumb { clear : both; width : 100%; margin-left : 0; } #thumb ul { width : 100%; } #thumb ul li { display : inline; font-family : arial; float : left; padding-right : 5px; width: 210px; height : 280px; …

Member Avatar for veedeoo
0
2K
Member Avatar for Thomas_20
Member Avatar for CarterLangley

trapping the back button is not a good idea. I remember reading an article from the consortium entitled "Use standard redirects: Don't break the back button." to prevent the form resubmission, we can place a session handler between the final form processor and the form page form.php ----> sessionhandler.php (validates …

Member Avatar for veedeoo
0
1K
Member Avatar for underwood

remove all semi-colons following the curly brackets. if(){ } else{ } please refer to the proper syntax usage in PHP[ here](www.w3resource.com/php/syntax/syntax.php) or [here](http://www.php.net/manual/en/language.basic-syntax.instruction-separation.php). You can also search google for PHP basic construct and semantics.

Member Avatar for veedeoo
0
192
Member Avatar for Cẩm
Member Avatar for Maniyuvaa
Member Avatar for Soukaina
Member Avatar for carl.potak
Member Avatar for almuniz
Member Avatar for malatamil

one of the many ways of doing this is to get the image file extension first. for example, $this_ext = pathinfo($filename, PATHINFO_EXTENSION); The above codes will give us the image extension of the uploaded image. The next step is to rename the image $result1 = move_uploaded_file($tmpname, $uploadDir.'.'.$this_ext);

Member Avatar for malatamil
0
121
Member Avatar for Anthony_6

That will not work.. you will need to set the select multiple property and the name attribute to some array. for example <select name="color[]" multiple> <option value="red"> <!-- add more options here --> </select> for the php processor, you need to iterate throught the color array(), by using foreach.. example …

Member Avatar for diafol
0
102
Member Avatar for davy_yg

you can use either jwplayer or [flowplayer](https://github.com/flowplayer/flash). If you will be targeting mobile users, then flv video should be the fallback video. The ogg, mp4 will be the first two options or better yet go for the VP9 or h264 (These two offers the best video quality just few notches …

Member Avatar for veedeoo
0
177
Member Avatar for junaid_5

I think Diafol have already given you what you need. Store the submitted information in session. In fact, you can store them as an array. Below is a sample codes... $upload_info = array($title, $description, $uploaded_file_name, $other_things_you_want); $_SESSION['up_data'] = $upload_info; header("Location: form.php"); exit; on redirect, the user will land on the …

Member Avatar for junaid_5
0
626
Member Avatar for davy_yg

I totally agree with Diafol xampp it is a risky choice for production sites. The only one I tested that is packaged to be production site ready is the [uniform server](http://www.uniformserver.com/). To allow the world to access your server, you will need to do some work. First, make sure you …

Member Avatar for veedeoo
0
384
Member Avatar for nalini@121

I thought this question was just posted some 20+ hours ago, and then I just realized it was awaken from the bone files of two years ago. :).

Member Avatar for A@DFGFGN.IN
0
5K
Member Avatar for momonq1990

also, you can try running this <?php echo '<br/>'.ini_get('upload_max_filesize').'<br/>'; echo (ini_get('post_max_size')); echo '<br/>'.ini_get('max_execution_time').'<br/>'; ?> post back your output...

Member Avatar for hafiztn
0
391
Member Avatar for GriffN84

Hi, **ADDED LATER: MY post is late, so please consider diafol's response before this.** This is just a humble suggestion for your script. Why not use a unix timestamp instead of the actual human readable date. For example, an account can have a date verification expiration two days from the …

Member Avatar for fireburner29
0
2K
Member Avatar for iamthwee

For a site with lots of content, I think it is worth implementing. Another scenario where breadcrumbs is useful is when you have a hierarchical categories like Automotive Make Acura, BMW, Chevrolet, Infiniti, Jaguar, Lexus, Mercedes year 2000,2001,2014 Color red, blue, yellow, black, orange Drive front wheel, rear wheel Effeciency …

Member Avatar for yessi_1
0
158
Member Avatar for jovstudios

I already uninstalled the laravel on my Development stack, because I am moving on to the Fuel PHP. However, I am worried about the for loop on your script. Will it be possible for you to use foreach loop which is more fitting to your situation? I do understand if …

Member Avatar for veedeoo
0
5K
Member Avatar for ray100

Dude, It is my lazy day today.. so, I will be cutting corners here. Instead of writing a 100 lines of codes for your processor, let's do it this way. Copy codes below onto your OnlineOrders.php if($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['submit'])){ echo 'if($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['submit'])){ <br/>'; foreach($_POST as …

Member Avatar for veedeoo
0
286
Member Avatar for tobinhoadesanya

Just to add more info., here is a good example of a [PHP script](http://ranacse05.wordpress.com/2007/09/26/compile-c-program-using-php-5/) that can compile C . I prefer using the exec("your_compiler_command_here 2>&1", $res, $err); $res and $error are the text file error log. That's all I can tell you. I am pretty rusty with C. The last …

Member Avatar for SalmiSoft
0
291
Member Avatar for fheppell

Honestly, I don't see any reasons why it shouldn't work? All static method can be use by other classes. Except, if this is a separate controller file **/login** . That would change the application's loaded controller. It is pretty much equivalent to <form method="post" action="/login"> On form submit, it would …

Member Avatar for fheppell
0
245
Member Avatar for Tenaciousmug

try this.. copy, paste to notepad, save as anyNameYouWant.php, upload to your htdocs . [CODE]<?php phpinfo(); ?>[/CODE] Direct your favorite browser to anyNameYouWant.php, and look for [B]Loaded Configuration File [/B], or [B][COLOR="red"]Configuration File (php.ini) Path [/COLOR][/B] Now the fun part, look for the location of the php.ini file and edit …

Member Avatar for mohsenweb
0
5K
Member Avatar for Mike_16

you will need to process the form before you can initiate the update.. for example, if(isset($_GET['a']) && (isset($_GET['id']))){ $ID = $_GET['id']; ## process the form if(isset($_POST['hiddenField'])){ ## do the query here from } } Make sure to sanitized your form data....

Member Avatar for veedeoo
0
410
Member Avatar for Hikinguar
Member Avatar for begueradj

Honestly, I think this script is a malware script. It was probably injected through the wordpress backdoor. I think the exact name of this malware is called FTP credential malware distributed or created by pubbotstatistic.com . You will just have to search on this to confirm my assumptions. If this …

Member Avatar for begueradj
0
179
Member Avatar for begueradj

I totally agree with GliderPilot. Most hackers are not really interested in breaking the target site. What they really after for is to steal information from the user. Allow me to give you the very basic example and vulnerability demonstration of the form. Let say, we have a form on …

Member Avatar for veedeoo
0
254
Member Avatar for KonRadicool

> Is it just moderators and Admins on DaniWeb or do other people hang out here as well :) I am nobody, I visit and hang-out in this area once in a while. Welcome to Daniweb.

Member Avatar for KonRadicool
0
680
Member Avatar for nileshbhanu

If the remote mysql server is running on linux, you must grant this user the permission as "GRANT ALL". Please consult the msyql documentation for this. If you are currently using a cpanel or WHM VPS manager, you can also set it there. Also on cpanel, there is also an …

Member Avatar for veedeoo
0
2K
Member Avatar for veedeoo

**Part One**: Learning the Basic Patterns **Disclaimer**: please pardon my spellogrammatico errors. I am not really a rough draft person. I type and write codes the split seconds as they crossed my mind, otherwise I will get extremely lazy and then will eventually hibernate like a tardigrade. I hope I …

Member Avatar for veedeoo
3
2K
Member Avatar for mark103

**WARNING!** Parsing any remote contents without any written permission from the owner can cause a messy legal battle in court. Prepare to have millions of dollars if you are standing against big corporation. Just saying. Technology is pretty cool, but crossing beyond what we call responsible and ethical programming is …

Member Avatar for veedeoo
0
162
Member Avatar for nitin1

Here is another[ one](http://simplehtmldom.sourceforge.net/). Make sure to use it with cURL.

Member Avatar for veedeoo
0
258
Member Avatar for Fernando_4

Hi, May I add someting? there is a PHP object called ArrayObject ArrayIterator method and I think (but not sure) there is also a method for it called key. Just don't have time to look it up, but it is pretty much for getting the key of an array. Though …

Member Avatar for Fernando_4
0
267
Member Avatar for Jay_5

For non-mysql database, you will need to use PDO and then use prepared statement and bind parameter. Read [this](http://www.php.net/manual/en/ref.pdo-dblib.php) and [this](http://www.php.net/manual/en/ref.pdo-sqlsrv.connection.php). Read my attached PDF file to learn this stuff.

Member Avatar for miraj.jiwani
0
160
Member Avatar for Pravesh_1

place the good ole php file inside the directory called xampp/htdocs, run xampp control panel, start apache, start mysql server, and then direct your browser to localhost/old_php_filename.php.

Member Avatar for diafol
0
170
Member Avatar for iamthwee

All these confusions about MVC pattern architecture began at the CakePHP's bakery and then followed by pretty much everyone. Some of the frameworks that are versatile enough to follow or not to follow the true MVC pattern are the CI and Kohana frameworks. In CI and Kohana, we can pretty …

Member Avatar for veedeoo
1
340
Member Avatar for Mike_danvers

try putting this session_start(); above the page, just right after <?php <?php session_start();

Member Avatar for diafol
0
152
Member Avatar for iamthwee
Member Avatar for Wendy_1

don't expect to get other solution. It can be done, but it will be out of the ordinary. My answer is no and no :). Why not? Because java applets are delivered between <applet></applet> tags. There is no way to parse the linked applet class. <html> <body> <applet code="someJavaAppletClass.class"></applet> </body> …

Member Avatar for Wendy_1
0
724
Member Avatar for spluskhan

upgrade your xampp to the latest version. Otherwise, you can use [image_type_to_mime_type()](http://www.php.net/manual/en/function.image-type-to-mime-type.php) function.

Member Avatar for Alberto Bucur
0
3K
Member Avatar for iamthwee

I would difinitely create a separate controller and methods intended for the admin. For example, if we have a url mydomain.com/admin/settings/, then our object will be called admin and the method is called settings. Using the target url above we can device our admin class class Admin extends CI_Controller { …

Member Avatar for iamthwee
0
960
Member Avatar for gihan.madushanka.773

These dummy testing seems confusing to me $password="scret"; $hash= passwordEncrypt($password); $userInsertedPassword="scret"; passwordCheck($userInsertedPassword,$hash); if the non-encrypted password is "scret", then why the $userInsertedPassword is also "scret"? Should it be the inserted password should be equal to the $hash? try $password = 'password'; echo passwordEncrypt($password); Whatever you see on the browser should …

Member Avatar for iamthwee
0
304

The End.