Druid Posted March 4, 2007 Share Posted March 4, 2007 I just updated from a phptriad installation of apache/php/mysql to manual installations of them, all the most current ones. When I installed apache and php, things were fine. phpinfo loaded. After I installed mysql, things started messing up. I can connect to mysql so that seemed to go fine. But phpinfo wouldn't list MySQL info. So, I noticed I had the path to PHP in my httpd.conf wrong, I fixed it, restarted and thats when it all started. I added the "php extension" line , enabled php_mysql.dll module, as well as putting libmysql.dll into my windows folder. Restarted the computer, and still problems. What happens exactly is, if I go to my phpinfo.php page which has a simple phpinfo(); line...it doesn't show anything. If I View Source, I actually see the php code in notepad. <? phpinfo(); ?> On other pages it prints some of the php code on screen. But on a few other pages, such as a page that creates and image via imagecreate()...it works. Everything else seems to check out ok, installations seem fine and done correctly. Anyone know whats going on? Link to comment https://forums.phpfreaks.com/topic/41156-solved-php-seems-to-work-half-the-time-phpinfo-doesnt-work/ Share on other sites More sharing options...
Druid Posted March 4, 2007 Author Share Posted March 4, 2007 Ok, seems I must use the <?php tag to get php to work, is there a config option I can modify to allow <? and/or <?php? I still don't see how it worked at first then not after Link to comment https://forums.phpfreaks.com/topic/41156-solved-php-seems-to-work-half-the-time-phpinfo-doesnt-work/#findComment-199376 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.