Web Hosting Talk







View Full Version : everytime i click a php link..


chungsunghoy
09-14-2002, 11:13 AM
everytime i click a php link it wants to download the source, and not open it in IE, how do i fix this..?:bawling:

ffeingol
09-14-2002, 11:35 AM
Sounds like the server is not configured for PHP. Since it's not, your browser does not know what to do with the .php file.

Frank

rami90_999
09-14-2002, 11:53 AM
Yep as ffeingol said.. ur server is not configured to understand PHP files so it ask you to download them.. like when u try to run a file where the program which runs it is not there

ghost
09-14-2002, 02:33 PM
Normal HTML files contains 2 parts, 1 is Header and 2 is the part you can see in your browser. And Normally PHP files only a standard text files. If your server does not compile your PHP files and does not produce Header your browser gets it as a text file and tries to download.

Check the PHP conditions of your server. Don't forget PHP is server side language, that means every problem would be on your server. :D

ninji
09-14-2002, 02:37 PM
either the servers mime.types file is confilicting, or dosent know what php is or the more likely scenario they didnt add the .php filetype to httpd.conf

prosayist
09-14-2002, 04:21 PM
.htaccess:
DefaultType application/x-httpd-php
(or)
AddType application/x-httpd-php .php

Tox
09-15-2002, 05:44 AM
I have experienced this after upgrading to Internet Explorer 6.0. A few PHP links started to do this but 99 % of the PHP coding works fine.

ghost
09-15-2002, 06:31 AM
Originally posted by Tox
I have experienced this after upgrading to Internet Explorer 6.0. A few PHP links started to do this but 99 % of the PHP coding works fine.

I have been using IE 6 too. But I have been never experienced any problem like this. Would you tell me an URL you are living that problem? :)