« Previous Next »

Answered Thread: phpinfo() returns blank page, please help?

Last post 11-27-2010 5:03 AM by mansooralia. 6 replies.

 

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 06-20-2007, 3:47 AM

    • GeorgeZ
    • Top 150 Contributor
    • Joined on 11-16-2006, 1:09 AM
    • Peking
    • Posts 67

    phpinfo() returns blank page, please help?

    Hi friends,

    I use the latest windows installer form php.net. And I successfully make php to run either use ISAPI or CGI.

    But the following returns blank page. 

    <? phpinfo(); ?> 

    Do I need to select additional module in PHP when installin it?

     
    Thanks in advance!
     

  • 06-20-2007, 5:51 AM In reply to

    Answered Re: phpinfo() returns blank page, please help?

     

    What version of OS and IIS you are running to host PHP?

    Check out these Bills Blogs  -
    How to install PHP on IIS7 (RC1) 
    Improve PHP on Windows and IIS
    Demo - PHP - IIS7

    In any case, you should have scriptmap/isapi configured to execute request for php.

    HTH.

    Cheers!
    Ganesh

  • 06-20-2007, 9:43 PM In reply to

    • GeorgeZ
    • Top 150 Contributor
    • Joined on 11-16-2006, 1:09 AM
    • Peking
    • Posts 67

    Re: phpinfo() returns blank page, please help?

    Thank you. Both IIS 6 and IIS 7 return blank page. I think ISAPI is configured correctly, but seems the php windows installer doesn't install all of the required component.

    http://www.php.net/downloads.php

    I'm using PHP 5.2.3 installer

    I don't know if there is additional component required.

     

  • 06-20-2007, 9:50 PM In reply to

    • GeorgeZ
    • Top 150 Contributor
    • Joined on 11-16-2006, 1:09 AM
    • Peking
    • Posts 67

    Answered Re: phpinfo() returns blank page, please help?

    Thank again for your time.

    I compared another example and find out

    <?php phpinfo(); ?>  works, but

    <? phpinfo(); ?> doesn't

    It looks like configuration issue.

  • 06-20-2007, 10:48 PM In reply to

    Answered Re: phpinfo() returns blank page, please help?

    In your PHP.ini you have Short_Open_Tag turned off (which is probably not a bad idea).

    http://us2.php.net/manual/en/language.basic-syntax.php#language.basic-syntax.phpmode

    Best Regards,
    Andy Schmidt
  • 06-21-2007, 9:48 PM In reply to

    • GeorgeZ
    • Top 150 Contributor
    • Joined on 11-16-2006, 1:09 AM
    • Peking
    • Posts 67

    Re: phpinfo() returns blank page, please help?

     Thank you.

  • 11-27-2010, 5:03 AM In reply to

    Re: phpinfo() returns blank page, please help?

     You have to restart the IIS too to make the php.ini changes get affected

Page 1 of 1 (7 items)