I am using a WAMP server to run my PHP scripts. I created a test folder in the WWW folder and tried to execute a PHP script using an HTML form action. But instead of executing, its loading a PHP file. What could be the reason?
Apache 2.4.9 PHP 5.5.12
<!DOCTYPE html> <html> <body> <form enctype="multipart/form-data" action="uploader.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> Choose a file to upload: <input name="uploadedfile" type="file" /><br /> <input type="submit" value="Upload File" /> </form> </body> </html>
PHP script (uploader.php)
<?php phpinfo(); ?>
user6195820
source share