Page 1 of 1

php doesn't work

PostPosted: 08. June 2011 12:40
by dsnedeco
Using 1.7.4 on Windows 7, 64-bit and everything seems to be OK in "http://localhost/xampp/" ADMIN tests. However it won't run my index.php. How to I begin to solve this.

Re: php doesn't work

PostPosted: 08. June 2011 12:48
by Sharley
Assuming you have a default XAMPP installation in C:\xampp, have you tried this:
Create a folder in C:\xampp\htdocs called myfiles and put your index.php file in this folder.

Now type in your browser:
http://localhost/myfiles/
or
http://localhost/myfiles/index.php

You can also replace the index.php file already in the C:\xampp\htdocs folder with your own index.php, then simply type
http://localhost/
in your browser or
http://localhost/index.php

Let me know back what you see in your browser when you try the above instructions.

Re: php doesn't work

PostPosted: 08. June 2011 18:55
by dsnedeco
Instead of running the php code it just lists it out on the screen. The page works fine when I run it on my remote host site. It just doesn't work on my local machine.

Re: php doesn't work

PostPosted: 09. June 2011 06:38
by Altrea
Do you want to show us your sourcecode of that test file?
Maybe it's a short_open_tag issue!?