eyuget Posted January 16, 2008 Share Posted January 16, 2008 Is thier anyway to tell apache that *.*.php is still a php file because my apache is not loading it as one. It just runs or loads like an txt file. I am running apache 2.2.6 and running php 5.2.5? Quote Link to comment https://forums.phpfreaks.com/topic/86245-apache-loading-testdbphp/ Share on other sites More sharing options...
trq Posted January 16, 2008 Share Posted January 16, 2008 Apache only looks at the extension, it should be working fine. I'm not sure there is a directive to fix this. Do other *.php files work? Quote Link to comment https://forums.phpfreaks.com/topic/86245-apache-loading-testdbphp/#findComment-440529 Share on other sites More sharing options...
eyuget Posted January 16, 2008 Author Share Posted January 16, 2008 yes Quote Link to comment https://forums.phpfreaks.com/topic/86245-apache-loading-testdbphp/#findComment-440536 Share on other sites More sharing options...
PFMaBiSmAd Posted January 16, 2008 Share Posted January 16, 2008 Any chance you are using short open tags in it? Quote Link to comment https://forums.phpfreaks.com/topic/86245-apache-loading-testdbphp/#findComment-440548 Share on other sites More sharing options...
eyuget Posted January 16, 2008 Author Share Posted January 16, 2008 That was it exactly. Do you know how to make it not need the full <?php Quote Link to comment https://forums.phpfreaks.com/topic/86245-apache-loading-testdbphp/#findComment-440556 Share on other sites More sharing options...
trq Posted January 16, 2008 Share Posted January 16, 2008 Hehe... didn't even think of that. You can change the short_open_tag directive in your php.ini file if you must. Id'e recommend changing your code though. Quote Link to comment https://forums.phpfreaks.com/topic/86245-apache-loading-testdbphp/#findComment-440566 Share on other sites More sharing options...
PFMaBiSmAd Posted January 16, 2008 Share Posted January 16, 2008 Php.net itself recommends against using short open tags because it results in code that is not portable between server settings and not everyone on every server will have the ability to turn them on. They also cause a problem when XML is inside a .php file. Quote Link to comment https://forums.phpfreaks.com/topic/86245-apache-loading-testdbphp/#findComment-440583 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.