FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP Version 5.3.6
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP Version 5.3.6: confusing CLI [message #177109 is a reply to message #177107] Wed, 22 February 2012 15:13 Go to previous messageGo to previous message
Peter H. Coffin is currently offline  Peter H. Coffin
Messages: 245
Registered: September 2010
Karma:
Senior Member
On Wed, 22 Feb 2012 22:35:15 +0800, sl@exabyte wrote:
>> 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 ?

You are not executing those echo commands in PHP. You are executing them
in something called "jailshell". The syntax for the two things is not
the same.

--
The plural of datum is not "facts".
A collection of facts is not "knowledge".
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: jailshell and PHP daemon
Next Topic: way to turn off strict option? Use of undefined constant
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Feb 20 01:49:51 GMT 2025

Total time taken to generate the page: 0.03946 seconds