Bug #2583: Can't pass value into .phtml page from UNIX command line execution of php .
| From: | jrivers at isearch dot com | Date: | Thu, 21 Oct 1999 19:40:56 +0000 |
| Subject: | Bug #2583: Can't pass value into .phtml page from UNIX command line execution of php . | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11817@lists.php.net to get a copy of this message | ||
From: jrivers@isearch.com
Operating system: Solaris Unix
PHP version: 3.0.12
PHP Bug Type: Other
Bug description: Can't pass value into .phtml page from UNIX command line execution of php .
when I call the php processor with a command line of
/xxx/xxx/php -q /xxx/xxx/gettest.phtml data=1
where gettest.phtml consists of one line:
printf("data=%s\n",$data);
the php variable $data always stays set at blank. It will not take on the value of 1 from the
command line. I have searched through absolutely every source available to me, and the issue is
never discussed. The php -help command gives help information that provides no clue to the
problem.