Re: phpinfo displays blank page
| From: | Jeff Schwartz | Date: | Wed, 20 Jun 2007 22:27:16 +0000 |
| Subject: | Re: phpinfo displays blank page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257527@lists.php.net to get a copy of this message | ||
You're right, that works. So why doesn't my script work? All it contains is:
<?php
phpinfo();
?>
Tijnema <tijnema@gmail.com> wrote:
On 6/20/07, Jeff Schwartz wrote:
> Thanks for getting back to me so quickly.
>
> I checked the archives and viewed the source before I posted the problem. The source is empty
> except for the junk IE puts into it. Is there a specific log or error file I should check?
>
> I upgraded from 4.x. I also ran "php phpinfo.php" (phpinfo.php is a script containing
> only the phpinfo command) at a server prompt but nothing was displayed.
What happens if you run this on the command line:
php -r "phpinfo();"
That should work :)
Tijnema
>
>
> Jochem Maas wrote:
> Daniel Brown wrote:
> > On 6/20/07, Jeff Schwartz wrote:
> >> When I run phpinfo() nothing is displayed. It used to work. I recently
> >> upgraded to 5.2.1 but I can't be sure that's exactly when phpinfo
> >> stopped working. Has anyone else run into this?
>
> lots of people :-)
>
> what did you upgrade from?
> do what Dan said - only I'd run through his points in the following order 2,3,1
>
> you may have php setup to log elsewhere than the apache error log - if so check there also.
>
> lastly I sometimes find it useful to try running the cmdline version php - sometimes
> I screw things up and the cmdline is helpful in that it [sometimes]
> spits out a bunch of errors (usually related to extensions that could not be loaded)
>
> >>
> >> Thanks,
> >> Jeff
> >>
> >>
> >> ---------------------------------
> >> Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user
> >> panel and lay it on us.
> >
> > 1.) Search the archives.
> > 2.) Try to view the source of the page. If you see the PHP
> > source, it's not working properly.
> > 3.) Check the Apache error logs.
> >
> > See what you come up with after trying all three of the above and
> > post your results. It'll give everyone here a better idea of what
> > your particular problem may be.
> >
>
>
>
>
> ---------------------------------
> Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when.
---------------------------------
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.