Page 1 of 1

<? phpinfo(); ?>

Posted: Thu Apr 07, 2011 7:07 am
by Wai Pui
Dear Helper,

I am new to PHP and WAMP Server. I have installed the WAMP Server 2.1e and I have tested it with a simple PHP program <? phpinfo(); ?> but there is no response when I load it in the IE. What are the probable causes for that?

(Note: The WAMP server works fine with the osCommerce system).

Best Regards,
Pui
pui@artery.hk

Re: <? phpinfo(); ?>

Posted: Thu Apr 07, 2011 8:16 am
by spacebiscuit
A long shot but try:

Code: Select all

<?php

phpinfo(); 

?>
It maybe that you do not have short tags enabled?

Rob.

Re: <? phpinfo(); ?>

Posted: Thu Apr 07, 2011 10:44 am
by fugix
yeah.. you would have to enable short tags in your php.ini

Re: <? phpinfo(); ?>

Posted: Thu Apr 07, 2011 11:37 am
by Maq
Do not use short tags. It is a bad habit and may sound like a minor issue, but will cause problems in the future. Use the full <?php tags.