WampServer
Apache, PHP, MySQL on Windows
Home forum
Back to WampServer
presentation
Downloads
Addons
Trainings
Alter Way
Go to Topic:
Previous
•
Next
Go to:
Forum List
•
Message List
•
New Topic
•
Search
•
Log In
•
Print View
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:
Reply
•
Quote
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:
Reply
•
Quote
Go to:
Forum List
•
Message List
•
Search
•
Log In
Sorry, only registered users may post in this forum.
Click here to login