unclemid Posted March 14, 2006 Share Posted March 14, 2006 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 Link to comment https://forums.phpfreaks.com/topic/4902-cant-open-php-fileswants-to-download-them/ Share on other sites More sharing options...
shocker-z Posted March 14, 2006 Share Posted March 14, 2006 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 extentiomin your apache config file you need to make sure you have these lines..AddType application/x-httpd-php .phpAddType application/x-httpd-php-source .phpsalso you needAddModule mod_php4.c make sure there are no #'sIf all of that is there then might be worth reinstalling to see why there is still a problem with it.. Quote Link to comment https://forums.phpfreaks.com/topic/4902-cant-open-php-fileswants-to-download-them/#findComment-17301 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.