php files load as blank pages

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

php files load as blank pages

Postby Jess » 24. December 2008 09:45

Yes! Its another stupid newbie question.

I have Windows XP and uploaded the latest version of xampp. For some reason whenever I try to bring up php files in my browser they come up as blank pages.

There are no error messages and I am pretty sure that the files are in the correct place, htdocs.
Jess
 
Posts: 2
Joined: 24. December 2008 09:38

Re: php files load as blank pages

Postby Sharley » 24. December 2008 09:58

Can you get to the XAMPP Welcome page by typing http://localhost in your browser?
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 files load as blank pages

Postby Jess » 24. December 2008 15:11

OK I knew it was a stupid question. I thought I was doing that before but I tried it again and now it works.

Thanks.
Jess
 
Posts: 2
Joined: 24. December 2008 09:38

Re: php files load as blank pages

Postby wordman » 09. January 2009 14:34

OK, I am having the same problem, except that my localhost page and all pages from it are showing fine. It was working:

with files in htdocs and in subfolders in htdocs,

but stopped. Even a simple Hello World script won't run.

I got as far as querying MySQL and showing the results, then made a form to add records to same DB, then the next day or so my files stopped working.

THE WEIRD PART is that this happens on both my Windows and Linux boxes!?!

What am I doing wrong?

Yes...still a Padawan.....and Thanks.
wordman
 
Posts: 1
Joined: 09. January 2009 04:37

Re: php files load as blank pages

Postby Izzy » 10. January 2009 01:56

wordman wrote:OK, I am having the same problem, except that my localhost page and all pages from it are showing fine. It was working:

with files in htdocs and in subfolders in htdocs,

but stopped. Even a simple Hello World script won't run....
If, as you say, everything worked including the demos in http://localhost then stopped all of a sudden without you doing anything that would make them stop working means you have been visited by a PC Gremlin perhaps. :)

Have you checked the xampp\apache\logs\error.log file for clues?

Check also the php.ini file is the correct one being used.

To find which php.ini file is being used by Apache in XAMPP always go to
http://localhost /xampp/phpinfo.php
(or to the phpinfo() menu item in the Welcome Page (Admin))
and look for the line
Loaded Configuration File
which in a default installation should be in
C:\xampp\apache\bin\php.ini
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 72 guests