Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #4926

Re: PHP Version 5.3.6: confusing CLI

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From "Peter H. Coffin" <hellsop@ninehells.com>
Newsgroups comp.lang.php
Subject Re: PHP Version 5.3.6: confusing CLI
Date Wed, 22 Feb 2012 09:13:34 -0600
Organization A noiseless patient Spider
Lines 48
Message-ID <slrnjka1gu.rcn.hellsop@nibelheim.ninehells.com> (permalink)
References <jhtiom$pf7$1@news.albasani.net> <jhtufp$t49$1@dont-email.me> <ji2uf9$sca$1@news.albasani.net>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Injection-Info mx04.eternal-september.org; posting-host="le/2G4+BNpieVhQI6uJ2Lw"; logging-data="9060"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/YsSCxOVQfdhgFRdqQUTpl"
User-Agent slrn/0.9.9p1 (OpenBSD)
Cancel-Lock sha1:BZDwMx34kYW407beAeIuLOSc7Ao=
Xref x330-a1.tempe.blueboxinc.net comp.lang.php:4926

Show key headers only | View raw


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".

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

PHP Version 5.3.6 "sl@exabyte" <sb5309@hotmail.com> - 2012-02-20 21:44 +0800
  Re: PHP Version 5.3.6 Allodoxaphobia <knock_yourself_out@example.net> - 2012-02-20 16:05 +0000
    Re: PHP Version 5.3.6 "SL" <sb5309@hotmail.com> - 2012-02-21 00:16 +0800
    Re: PHP Version 5.3.6 "SL" <sb5309@hotmail.com> - 2012-02-21 00:19 +0800
      Re: PHP Version 5.3.6 Denis McMahon <denismfmcmahon@gmail.com> - 2012-02-20 16:41 +0000
  Re: PHP Version 5.3.6 Jerry Stuckle <jstucklex@attglobal.net> - 2012-02-20 12:04 -0500
    Re: PHP Version 5.3.6 "sl@exabyte" <sb5309@hotmail.com> - 2012-02-21 10:26 +0800
      Re: PHP Version 5.3.6 Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-02-21 10:02 +0100
      Re: PHP Version 5.3.6 Captain Paralytic <paul_lautman@yahoo.com> - 2012-02-21 02:10 -0800
        Re: PHP Version 5.3.6 The Natural Philosopher <tnp@invalid.invalid> - 2012-02-21 13:00 +0000
          Re: PHP Version 5.3.6 Captain Paralytic <paul_lautman@yahoo.com> - 2012-02-21 05:51 -0800
            Re: PHP Version 5.3.6 The Natural Philosopher <tnp@invalid.invalid> - 2012-02-21 14:20 +0000
    Re: PHP Version 5.3.6: confusing CLI "sl@exabyte" <sb5309@hotmail.com> - 2012-02-22 22:35 +0800
      Re: PHP Version 5.3.6: confusing CLI tony@mountifield.org (Tony Mountifield) - 2012-02-22 15:00 +0000
        Re: PHP Version 5.3.6: confusing CLI Captain Paralytic <paul_lautman@yahoo.com> - 2012-02-22 07:23 -0800
        Re: PHP Version 5.3.6: confusing CLI "SL" <sb5309@hotmail.com> - 2012-02-22 23:49 +0800
      Re: PHP Version 5.3.6: confusing CLI "Peter H. Coffin" <hellsop@ninehells.com> - 2012-02-22 09:13 -0600
      Re: PHP Version 5.3.6: confusing CLI "J.O. Aho" <user@example.net> - 2012-02-22 18:38 +0100
        Re: PHP Version 5.3.6: confusing CLI Jerry Stuckle <jstucklex@attglobal.net> - 2012-02-22 15:03 -0500
      Re: PHP Version 5.3.6: confusing CLI "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-02-23 18:48 +0100

csiph-web