<? phpinfo(); ?>

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Wai Pui
Forum Newbie
Posts: 1
Joined: Tue Apr 05, 2011 9:12 pm

<? phpinfo(); ?>

Post 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
spacebiscuit
Forum Contributor
Posts: 390
Joined: Mon Mar 07, 2005 3:20 pm

Re: <? phpinfo(); ?>

Post by spacebiscuit »

A long shot but try:

Code: Select all

<?php

phpinfo(); 

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

Rob.
fugix
Forum Contributor
Posts: 207
Joined: Fri Mar 18, 2011 8:01 pm

Re: <? phpinfo(); ?>

Post by fugix »

yeah.. you would have to enable short tags in your php.ini
Maq
Forum Newbie
Posts: 4
Joined: Thu Apr 16, 2009 10:34 am

Re: <? phpinfo(); ?>

Post 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.
Post Reply