Gluco
11-20-2003, 12:17 AM
When I go to certain php websites it brings up the "Save As" screen instead of processing the php. Why? I can go to my other websites, which are php, and it works fine. I've noticed this with VBulletin and Squirrelmail, but nothing I have built myself. The php scripts execute fine when I run them in a shell.
Any ideas?
Hostopedia
11-20-2003, 01:10 AM
Hello Gluco,
Can you point us to the exact link? I tried accessing the sites you mentioned and do not see anything as you explained.
However, I'm assuming that this happens when you are trying to access links like http://www.squirrelmail.org/download.php
If that is so,then it is possible that the MIME types are not correctly set in the browser or download.php is returning wrong headers to your browser.
:::Hostopedia:::
Gluco
11-20-2003, 01:46 AM
Hey Host,
Thanks for the reply.
If you go to http://developer.triosade.com you get the chance to download my forum php but if you go to http://www.triosade.com/developer/ you get to see the forum.
I know it has something to do with the http.conf but I can't figure it out. I'm running Plesk which really messes with the whole http configuration. Shouldn't the sub-domains be able to execute php if they are a directory in the main?
Thanks
H-U.net
11-20-2003, 01:56 AM
Hi Gluco,
Both links you posted show your forum correctly - no downloading prompts here.
:)
Kevin
Gluco
11-20-2003, 02:03 AM
What? Really? When I go to it, it always brings up the save as screen.
What about http://systemrecon.triosade.com? that one asks me to download it also. At work, it also asks me to download it. Is this a client side related problem???
Any ideas? Should I change the mime type in php.ini maybe?
Gluco
11-20-2003, 02:04 AM
Oh, forgot to mention, could Zend optimizer affect this in any way? This started happening after I installed Zend.
http://www.triosade.com/phptest.php for my php info, if that helps.
Thanks
Hostopedia
11-20-2003, 02:06 AM
yup...no issues with the links you posted..they work just fine :)
:::Hostopedia:::
Hostopedia
11-20-2003, 02:14 AM
Originally posted by Gluco
Oh, forgot to mention, could Zend optimizer affect this in any way? This started happening after I installed Zend.
http://www.triosade.com/phptest.php for my php info, if that helps.
Thanks
OK..now I see what you explained earlier. But in this case, I think the problem is because of header.php or incorrectly set directives.
:::Hostopedia:::
Hostopedia
11-20-2003, 02:33 AM
Did that help? Also do check your access/error logs and make sure the permissions on the file are set right ;-)
BTW..do not expose your php info to the world ...may be you wanna pull off that link ..
:::Hostopedia:::
Gluco
11-20-2003, 06:34 PM
Hey Guys,
Turns out the files where owned by someone else. I didn't even think to look. Thanks for your help guys. It now works on the computer I have at work. Just gotta test it at home.