I have both php5.2 and apache 2.0.59 working fiine on XP pro. I load the <? phpinfo(); ?> but it loads a blank web page. I'm not seeing the php info page. I'm stuck!

Comments

alias420’s picture

Sounds like you don't have both php 5.2 and apache running fine, check your error logs. If you don't have error logs check your php.ini to make sure you have error reporting setup properly.

Anonymous’s picture

Hi,

maybe it's just the "short_open_tag = On/Off" option. You will find this language option around line 128 in your php.ini file.
If "short_open_tag" is off <? phpinfo() ?> short open tags "<?" will not work and so the script does not work. There are two ways to solve this problem.

1. Switch the "short_open_tag" option "on"
2. Change your phpinfo script to

<?php 
   phpinfo(); 
?>

For the records, here is a note on short_open_tag from the php.ini:

; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.

So I quess it's better coding style to change your script. :)

With best regards

Mike