WampServer
Apache, PHP, MySQL on Windows
Home forum
Back to WampServer
presentation
Downloads
Addons
Trainings
Alter Way
Go to Topic:
Previous
•
Next
Go to:
Forum List
•
Message List
•
New Topic
•
Search
•
Log In
•
Print View
.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:
Reply
•
Quote
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:
Reply
•
Quote
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:
Reply
•
Quote
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:
Reply
•
Quote
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:
Reply
•
Quote
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:
Reply
•
Quote
Go to:
Forum List
•
Message List
•
Search
•
Log In
Sorry, only registered users may post in this forum.
Click here to login