Re: PHP Version 5.3.6: confusing CLI [message #177107 is a reply to message #177097] |
Wed, 22 February 2012 14:35 |
SL
Messages: 20 Registered: February 2012
Karma:
|
Junior Member |
|
|
> It depends on if you have permission to access the CLI processor.
>
> Did you ask your hosting company? They should know how they set up
> their servers.
I was given shell access. After fiddling with it, first with:
php -v: out of memory
php aa2.php: : out of memory
Then I tried:
.. aa2.php
But strange. In aa2.php, I have:
echo "123 cli\n";
echo "Date: " . date("Y.m.d H:i:s");
I get the followings:
==start-log==
[~]# . publci_html/aa2.php public_html/aa2.php
123 cli\n
-jailshell: public_html/aa2.php: line 3: syntax error near unexpected token
`('
-jailshell: public_html/aa2.php: line 3: `echo "Date: " . date("Y.m.d
H:i:s"); '
==end-log==
It seems I don't need <?php ..... ?>
But I still have errors.
Gurus please tell me what is this CLI thingie ?
Thanks.
|
|
|