You are not logged in.
Pages: 1
After installing php through pacman -S php
I can't not run a simple helloworld script
the script(helloworld.php) is just:
<?
echo "Hello World";
?>
while I run "php helloworld.php", it just give me the content of the script but not "Hello World" that I expected.
I have try to solve the problem, and I find that if I delete the /etc/php.ini, everything is correct. But I do need /etc/php.ini to configure the php and load the extension. So how can I run the php script with the /etc/php.ini is loaded?
Offline
Your code is wrong. You have to use "<?php ... ?>".
Offline
Thank you very much, it works!
but dosen't php supports both <? ... ?> <?php ... ?>
or I can set this in the php.ini ?
Offline
Yes you can (I think it`s called asp-like tags). But you shouldn`t do that. ;-)
Last edited by Pierre (2007-05-16 15:55:32)
Offline
Thanks again!
Offline
Pages: 1