Jump to content

[SOLVED] PHP seems to work half the time, phpinfo() doesn't work


Druid

Recommended Posts

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?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.