/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] phpinfo() not working, yet every other php function works.

Hey guys,

I have a problem with my php5/apache2/mysql4 installation.

Every other PHP function works except for phpinfo();. I can echo, I can include, I can do a lot of other things–except the phpinfo. It won’t display at all. Well, it’ll shortly display the phpinfo page, and then 1 second later, it’ll disappear into the “Cannot display page”.

Any ideas?

Kind regards,
BuezaWebDev

to post a comment
PHP

11 Comments(s)

Copy linkTweet thisAlerts:
@fozeratorJun 05.2005 — That's weird... I've never heard of that happening... All your database connection stuff works? Does ini_set() work right? Are the contents of $_SERVER displayed correctly? What OS are you running? What modules do you have installed (php -m)?

-James
Copy linkTweet thisAlerts:
@BuezaWebDevauthorJun 05.2005 — The database connections aren't working...I just found that out.

Damnit.

That's why I like Apache 1.33 + PHP4. I'm using Windows XP.

Can anyone please recommend me a better tutorial than...http://www.philbrodeur.com/tutorials/server2/ ?????


It seems like there are a few missing steps in that guide because I followed it perfectly and it still doesn't install properly.
Copy linkTweet thisAlerts:
@fozeratorJun 05.2005 — From what I remember the PHP download for Windows has Apache 2 installation instructions packaged with it... Other than that I can't help you too much...

If you switch to slackware I'll guide you through the installation ?

-James
Copy linkTweet thisAlerts:
@DJsACJun 05.2005 — I run apache 2 Triad (php ssl mysql http) server combination.

That was pretty straightforward to install.

http://s87274285.onlinehome.us/apache2triad1.1.6.exe is the installer.

I also had a really simple installation tutorial. (pathetic tutorial really ?)

But I can't find it at the moment. *curses 300+ GB harddrive(s) with 80GB zipfiles :o *

As you've had apache before I doubt you'll need that though.

Comes with:

PHP 4.3.3

Mysql 4.0.13

Apache 2 (triad version)

Maybe that'll work for you? I'm running XP Home, and it works nicely,

Both online and local. ?
Copy linkTweet thisAlerts:
@BuezaWebDevauthorJun 06.2005 — yeah, but I don't want to use a third-party webserver installation. I want the actual. ?

The problem with this is that it won't load my phpinfo().

It will allow any other function in the standard PHP library though...like echo(), print(), array(). etc etc.

Does anyone have any suggestions on why this stupid php5 won't work properly?
Copy linkTweet thisAlerts:
@superman101589Jun 06.2005 — to use mysql you have to uncomment a line in the php.ini file (should be something like: ;mysql.dll, change this to mysql.dll) then restart the server, also make sure that you have your php directory as an environment variable on Windows XP, mabe you're getting the "page cannot be displayed" because your server has a fast timeout, and the PHP script takes a long time to execute the contents of phpinfo(), mabe you have to change your servers timeout to more time in your httpd.conf file, also make sure that your php.ini file is either specified in your httpd.conf file, or located in: %systemroot%, %systemroot%system32, or on your PHP folder, i hope i was helpful ?
Copy linkTweet thisAlerts:
@BuezaWebDevauthorJun 06.2005 — I think moving it to my windows directory was the key element to the installation...I hope this will work! I'll try it now. Thanks!


---

Edit:

Thanks the mysql works now...BUT..the phpinfo function doesn't work still.

I tried phpinfo(INFO_MODULES); and that works. But phpinfo(); doesn't work at all--it keeps saying "cannot find server/cannot display page".

Any suggestions would be greatly appreciated!
Copy linkTweet thisAlerts:
@quagmireFeb 14.2007 — Late post but you may have found this after a search.

My problem with phpinfo() after seeing other php scripts running was caused by:

copying an pasting this :

<?phpinfo()?> :

from a 'help' site (wrong on several sites)

rather than :

<?php phpinfo()?> :

Looks obvious once you see it.
Copy linkTweet thisAlerts:
@BuezaWebDevauthorFeb 14.2007 — You should really look at the last post date. I believe it was about 2 years ago.
Copy linkTweet thisAlerts:
@MrCoderFeb 14.2007 — Your still having the problem??

j/k ?
Copy linkTweet thisAlerts:
@BuezaWebDevauthorFeb 24.2007 — Yes, it was fixed. I believe I had a problem with my httpd.conf file as well as where I put the php dll's--I can't remember clearly since it was over two years ago I had this problem. :p
×

Success!

Help @BuezaWebDev spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...