Help with PHP, not working on page

Thread Solved

Join Date: Oct 2006
Posts: 164
Reputation: Barefootsanders is an unknown quantity at this point 
Solved Threads: 3
Barefootsanders Barefootsanders is offline Offline
Junior Poster

Help with PHP, not working on page

 
0
  #1
Mar 18th, 2007
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!
Attached Thumbnails
Screenshot.JPG  
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,075
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: Help with PHP, not working on page

 
0
  #2
Mar 18th, 2007
I use WAMP which is easy to install...

http://www.wampserver.com/en/
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 57
Reputation: GliderPilot is an unknown quantity at this point 
Solved Threads: 2
GliderPilot's Avatar
GliderPilot GliderPilot is offline Offline
Junior Poster in Training

Re: Help with PHP, not working on page

 
0
  #3
Mar 19th, 2007
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:

  1. <?php
  2.  
  3. phpinfo();
  4.  
  5. ?>

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
Last edited by GliderPilot; Mar 19th, 2007 at 2:12 pm.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 164
Reputation: Barefootsanders is an unknown quantity at this point 
Solved Threads: 3
Barefootsanders Barefootsanders is offline Offline
Junior Poster

Re: Help with PHP, not working on page

 
0
  #4
Mar 20th, 2007
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!
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 2
Reputation: neelu7779 is an unknown quantity at this point 
Solved Threads: 0
neelu7779 neelu7779 is offline Offline
Newbie Poster

Re: Help with PHP, not working on page

 
0
  #5
Aug 20th, 2008
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 ?
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC