954,591 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Help with PHP, not working on page

Hey everyone. I've been trying to install my own webserver on my computer along with PHP and MySQL. I thought I installed everything correctly but I just uploaded my first script and NONE of the PHP seems to be working. I'm running apache v2.0.x, the latest version of MySQL and the lastest version of PHP. I'm running on windows XP. I included a SS of what I see below. If anyone has advice for me, it would be much apprecaited.

Thanks!

Attachments Screenshot.JPG 52.75KB
Barefootsanders
Junior Poster
166 posts since Oct 2006
Reputation Points: 10
Solved Threads: 3
 

I use WAMP which is easy to install...

http://www.wampserver.com/en/

digital-ether
Nearly a Posting Virtuoso
Moderator
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101
 

Couple of things:

Does the page address you are loading end in .php?

Did you go into the config file for Apache and do the required modifications for PHP pages?

Have you tried other scripts to make sure it is not the script?? The most common script used to test your PHP installation is php info script like so:

<?php
 
phpinfo();
 
?>


Type or copy that code into notepad and save it as info.php in your web folder, than load it in a browser. It should show all the info about your PHP and Server

GliderPilot
Junior Poster in Training
86 posts since Sep 2006
Reputation Points: 8
Solved Threads: 4
 

Hey guys. Thanks for the responses. After a few days of messing around w/ it I finally got it. Apparently the php.ini file that comes w/ apache isnt the one your supposed to use with PHP5. There is another file called php.ini-def or something like that. I used that, made the proper modifications and it works perfect. Thanks again!

Barefootsanders
Junior Poster
166 posts since Oct 2006
Reputation Points: 10
Solved Threads: 3
 

Hi All,

I have a similar problem.

I have tested apache and php using the command prompt. Both are fine.

I am running apache 2.0.x with PHP 5.x on Windows XP.

When I write the code for displaying the phpinfo() in info.php file and try to view the page as using the url http://localhost/info.php it gives me error "page not available."

However if I write the same code in a .html file and view the page in a browser it shows me the server information.

Please help ?

neelu7779
Newbie Poster
2 posts since Aug 2008
Reputation Points: 10
Solved Threads: 0
 

Ok,
I got a similar problem. I installed PHP on Windows Server 2003. It works, meaning that I am able to read PHP pages but the mail function doesn't work (no errors or nothing). I played around with the PHP.ini script (mail function) but I am running out of options. Can anyone tell me what the problem(s) might be.

Talrod
Newbie Poster
1 post since Aug 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You