php doesn't work

Problems with the Windows version of XAMPP, questions, comments, and anything related.

php doesn't work

Postby dsnedeco » 08. June 2011 12:40

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.
dsnedeco
 
Posts: 2
Joined: 08. June 2011 12:30

Re: php doesn't work

Postby Sharley » 08. June 2011 12:48

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: php doesn't work

Postby dsnedeco » 08. June 2011 18:55

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.
dsnedeco
 
Posts: 2
Joined: 08. June 2011 12:30

Re: php doesn't work

Postby Altrea » 09. June 2011 06:38

Do you want to show us your sourcecode of that test file?
Maybe it's a short_open_tag issue!?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 141 guests