PHP problem win7
Posted by: rmanzano216 (---.prod-infinitum.com.mx)
Date: April 17, 2012 09:28PM

hi, i have this problem

already wamp running, a bd created, everything seem to be normal, but don't ever a simple php script like hello world is running ok .

i've try to access my bd, and nothing goes well, so i decided to do this test


<?
echo "Hello world";

?>

and nothing ..it's like the php service it's not runnig, i don't know what it's happening ¬¬

Options: ReplyQuote
Re: PHP problem win7
Posted by: RiggsFolly (---.as13285.net)
Date: April 18, 2012 10:07AM

Try changing the <? to <?php

So try this:

<?php
echo 'Hello World';
?>


WAMP's PHP comes configured with short_open_tag = Off

php.ini
short_open_tag = Off

It is best to leave it this way when coding new php as that will ensure your script will work anywhere.


Alternatively if you are using an old script that relies on short_tags you can change the php.ini param to
short_open_tag = On

Options: ReplyQuote


Sorry, only registered users may post in this forum.