Jump to content


Photo

Cant open php files....wants to download them!


  • Please log in to reply
1 reply to this topic

#1 unclemid

unclemid
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 14 March 2006 - 04:24 AM

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 shocker-z

shocker-z
  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 14 March 2006 - 09:59 AM

are you testing locally as in [a href=\"http://127.0.0.1\" target=\"_blank\"]http://127.0.0.1[/a] or you mean C:\dir\dir\webroot\index.php ??? if your using c:\... then that's your problem because it's not parsing thru the webserver.. If you are using [a href=\"http://127.0.0.1\" target=\"_blank\"]http://127.0.0.1[/a] or simular witgh the http protocal then it's down to the MIME type of the .php extentiom

in your apache config file you need to make sure you have these lines..

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

also you need

AddModule mod_php4.c


make sure there are no #'s

If all of that is there then might be worth reinstalling to see why there is still a problem with it..
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users