PHP can not find variable
| From: | Theewara Vorakosit | Date: | Tue, 29 Apr 2003 06:00:19 +0000 |
| Subject: | PHP can not find variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-145588@lists.php.net to get a copy of this message | ||
Dear all,
I use PHP 4.2.2-17 in red hat 9. The php script can not get evironment variable. I run this
script at the command line:
<HTML>
<HEAD></HEAD>
<BODY>
<?php
print $argc;
print $argv[0];
?>
</BODY>
</HTML>
with this command:
php test2.php
This is the output:
X-Powered-By: PHP/4.2.2
Content-type: text/html
<HTML>
<HEAD></HEAD>
<BODY>
</BODY>
</HTML>
I test this script at other machine and it work well. Would you please tell me how to solve this
problem?
Thanks,
Theewara