.php files still read as Text Documents
Posted by: Seventh Blade (---.hsd1.nj.comcast.net)
Date: February 12, 2006 09:51PM

For some reason, .php files are still read as Text Documents, even when put in the WWW directory. Any way to fix this?

Options: ReplyQuote
Re: .php files still read as Text Documents
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: February 13, 2006 02:55PM

are you using short tags (ASP style)?

example:

<?

//php code

?>

or are you using:

<?php

//php code

?>

if you use the short style tags, you need to enable them in php.ini

Options: ReplyQuote
Re: .php files still read as Text Documents
Posted by: oling (---.iti.is)
Date: February 13, 2006 05:13PM

I have this same problem, .php files are not opening.
I have already changed the short_open_tag=On in the php.ini, so it shouldn´t matter whether I am using <? or <?php.

Any more ideas or help?

Thanks

Options: ReplyQuote
Re: .php files still read as Text Documents
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: February 13, 2006 09:55PM

have you edited the httpd.conf file? do you have skype installed?

Options: ReplyQuote
Re: .php files still read as Text Documents
Posted by: Robert (---.pbn.com.au)
Date: February 14, 2006 12:46AM

Make sure you "Save As" a php file not a text file.
Save as "All Files" and make the filename xxxxxx.php

Windows hides filename extensions.

Options: ReplyQuote
Re: .php files still read as Text Documents
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: February 21, 2006 09:27PM

also after you edit the php.ini or httpd.conf file, make sure you restart apache so the new settings will take effect.

Options: ReplyQuote


Sorry, only registered users may post in this forum.