Jump to content


Photo

PHP Will not load properly, it keeps trying to download instead of display.


  • Please log in to reply
4 replies to this topic

#1 unclemid

unclemid
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 14 March 2006 - 04:36 AM

SORRY FOR THE DOUBLE POSTING. I COULDNT FIGURE OUT HOW TO CHANGE THE TITLE IN THE OTHER ONE SO PLEASE DISCARD THE OTHER ONE..........

Ok heres the problem. Ive got apache and php on my computer, all configured and everything and all of the sudden now when i try to open php files locally on my computer they wont display and they try to download. PLEASE HELP this is urgent and im at a real crunch for time. Thanks.

#2 fusionpixel

fusionpixel
  • Members
  • PipPipPip
  • Advanced Member
  • 64 posts

Posted 14 March 2006 - 07:27 AM

[!--quoteo(post=354781:date=Mar 13 2006, 10:36 PM:name=charlesdayhoff)--][div class=\'quotetop\']QUOTE(charlesdayhoff @ Mar 13 2006, 10:36 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
SORRY FOR THE DOUBLE POSTING. I COULDNT FIGURE OUT HOW TO CHANGE THE TITLE IN THE OTHER ONE SO PLEASE DISCARD THE OTHER ONE..........

Ok heres the problem. Ive got apache and php on my computer, all configured and everything and all of the sudden now when i try to open php files locally on my computer they wont display and they try to download. PLEASE HELP this is urgent and im at a real crunch for time. Thanks.
[/quote]


So, how do you know you have it installed properly?

one way to ensure that everything is working fine is by going to [a href=\"http://localhost\" target=\"_blank\"]http://localhost[/a] and it should show you either the package installation or the root folder of your installation. It sounds to me like something went wrong with your installation.

Another thing you can do is re-boot. Maybe that will clear things out.
Did you know there is a manual for PHP? [a href="http://" target="_blank"]http://www.php.net[/a]
Did you know there is a manual for mySQL? [a href="http://" target="_blank"]http://www.mysql.org[/a]

#3 keeB

keeB
  • Staff Alumni
  • Advanced Member
  • 1,078 posts
  • LocationCalifornia

Posted 14 March 2006 - 07:52 AM

No need to reboot, just restart apache every time you make a change to .conf files..

make sure you've AddType and AddModule to httpd.conf!

Come visit my site to see my latest projects
http://nick.stinemates.org/wordpress/


#4 txmedic03

txmedic03
  • Members
  • PipPipPip
  • Advanced Member
  • 313 posts
  • LocationCall, TX, USA

Posted 14 March 2006 - 08:43 AM

That depends on if you are using CGI PHP or not, but the question is has it ever worked and have you made any recent changes.

SEMPER FIDELIS!

I can't stop you from doing something silly, but at least I can help you do it right.


#5 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 14 March 2006 - 09:12 AM

[!--quoteo(post=354806:date=Mar 14 2006, 08:43 AM:name=txmedic03)--][div class=\'quotetop\']QUOTE(txmedic03 @ Mar 14 2006, 08:43 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
That depends on if you are using CGI PHP or not, but the question is has it ever worked and have you made any recent changes.
[/quote]

Just click on the apache symbol bottom rigth hand side within the apache dialog box on the bottom what does it say , you should see the apache version and php version also database version.

If the information exists then all is set correctly then its your php.ini file setup.


If you dont see any inforamtion on the apache dialpg box, then the php is not loadded properly then reinstall the php package or goto www.hotscripts.com and look up apache and install a pre perpered package with all the included pakages example. apach,php,mysql,cgi.etc.etc

good luck.





Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users