Page 1 of 1

Setting Up Local Testing for PHP [Solved]

PostPosted: 10. August 2012 19:30
by Richard85
Hello All,

I just installed XAMPP version 1.8 along with control panel 3.0.12 so I can start testing PHP scripts on my PC. The problem is when I try clicking on the files they don't work properly. I downloaded some PHP scripts and uploaded one to my website.

The first image is a screenshot of what happens when I open the file which is uploaded to my website, the second screenshot is what happens when I open the SAME file directly from my computer... Keep in mind I installed the Microsoft C++ pack and I have the files in the xampp/htdocs directory. Thanks!!

Image

Image

Re: Setting Up Local Testing for PHP

PostPosted: 10. August 2012 19:38
by JJ_Tagy
You can't open the PHP file directly in your browser. Try http://localhost/sources/register.php instead.

Re: Setting Up Local Testing for PHP

PostPosted: 10. August 2012 20:32
by Richard85
JJ_Tagy wrote:You can't open the PHP file directly in your browser. Try http://localhost/sources/register.php instead.


Yes! It works! Thank you so much!