Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #10198
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!weretis.net!feeder4.news.weretis.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail |
|---|---|
| Content-Type | text/plain; charset="UTF-8" |
| Message-ID | <9504272.kfoSba8VMR@PointedEars.de> (permalink) |
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Reply-To | Thomas 'PointedEars' Lahn <php@PointedEars.de> |
| Organization | PointedEars Software (PES) |
| Date | Wed, 24 Jul 2013 22:58:55 +0200 |
| User-Agent | KNode/4.10.5 |
| Content-Transfer-Encoding | 8Bit |
| X-Face | %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v |
| Face | iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg== |
| Subject | Re: A curious thing...about tags. |
| Newsgroups | comp.lang.php |
| References | <ksdqko$thc$1@news.albasani.net> <kse97i$s7i$1@news.albasani.net> <ksel66$lim$4@dont-email.me> <ksh4su$alf$1@news.albasani.net> <qOVGt.258268$1m3.143111@en-nntp-03.dc1.easynews.com> <kshd57$sa2$3@news.albasani.net> <kshmi5$sm1$1@dont-email.me> <ksio2o$6l2$1@news.albasani.net> <timstreater-CE0247.09134222072013@news.individual.net> <df4de$51ecff45$5468315d$23132@cache1.tilbu1.nb.home.nl> <ksj18q$cqr$1@dont-email.me> |
| MIME-Version | 1.0 |
| Lines | 47 |
| NNTP-Posting-Date | 24 Jul 2013 22:58:58 CEST |
| NNTP-Posting-Host | c1436159.newsspool4.arcor-online.net |
| X-Trace | DXC=?HNgGUkS7KT[7Non7UCi8U4IUK<Cl32<Q4Fo<]lROoRQ8kF<OcfhCO[\hWdEekMTo]DZm8W4\YJN\b@mF9jNikdUmA0dJ;NON0_U8FoBBL[KhV |
| X-Complaints-To | usenet-abuse@arcor.de |
| Xref | csiph.com comp.lang.php:10198 |
Show key headers only | View raw
Norman Peelman wrote:
> On 07/22/2013 05:15 AM, Alex vdB wrote:
>> and the following produces "?> something <?", once the EOF is received:
>> php -a
>> <?php
>> $saysomething="something";
>> $run="?> $saysomething <?";
>> echo $run;
>>
>>
>> Maybe try "php -n -a" and don't forget EOF as well as the php opening
>> tag.
>
> norman@amd64x2:~$ php -a
> Interactive shell
>
> php > <?php
> php > $something = "something";
>
> Parse error: syntax error, unexpected '<' in php shell code on line 1
>
> That doesn't fly here... You seem to be in Interactive Mode not
> Interactive Shell, there is a difference.
>
> http://php.net/manual/en/features.commandline.interactive.php
“php -a” does different things depending on the PHP build options. As it
says there, PHP must be built with readline support for the interactive PHP
shell to be available; otherwise “-a” will read until it receives an EOF
character (Ctrl+*D* on *Unices*, Ctrl+*Z* on *Windows*), and then execute
the program.
Where the built-in PHP shell is not available, like on Debian GNU/Linux,
there is phpsh. However, phpsh's coloring is buggy, so
alias phpsh='phpsh -c'
in e.g. ~/.bashrc, to disable that, is recommended.
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
A curious thing...about tags. The Natural Philosopher <tnp@invalid.invalid> - 2013-07-20 12:00 +0100
Re: A curious thing...about tags. The Natural Philosopher <tnp@invalid.invalid> - 2013-07-20 12:40 +0100
Re: A curious thing...about tags. Tim Streater <timstreater@greenbee.net> - 2013-07-20 14:29 +0100
Re: A curious thing...about tags. Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2013-07-20 13:41 +0200
Re: A curious thing...about tags. Norman Peelman <npeelman@cfl.rr.com> - 2013-07-20 08:46 -0400
Re: A curious thing...about tags. Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2013-07-20 17:09 +0200
Re: A curious thing...about tags. Christoph Michael Becker <cmbecker69@arcor.de> - 2013-07-20 18:12 +0200
Re: A curious thing...about tags. The Natural Philosopher <tnp@invalid.invalid> - 2013-07-21 18:08 +0100
Re: A curious thing...about tags. Norman Peelman <npeelman@cfl.rr.com> - 2013-07-20 13:40 -0400
Re: A curious thing...about tags. Denis McMahon <denismfmcmahon@gmail.com> - 2013-07-20 18:33 +0000
Re: A curious thing...about tags. The Natural Philosopher <tnp@invalid.invalid> - 2013-07-21 18:14 +0100
Re: A curious thing...about tags. Richard Damon <Richard@Damon-Family.org> - 2013-07-21 14:31 -0400
Re: A curious thing...about tags. The Natural Philosopher <tnp@invalid.invalid> - 2013-07-21 20:35 +0100
Re: A curious thing...about tags. Norman Peelman <npeelman@cfl.rr.com> - 2013-07-21 18:21 -0400
Re: A curious thing...about tags. The Natural Philosopher <tnp@invalid.invalid> - 2013-07-22 08:47 +0100
Re: A curious thing...about tags. Tim Streater <timstreater@greenbee.net> - 2013-07-22 09:13 +0100
Re: A curious thing...about tags. "Alex vdB" <alex@invalid> - 2013-07-22 11:15 +0200
Re: A curious thing...about tags. Norman Peelman <npeelman@cfl.rr.com> - 2013-07-22 06:30 -0400
Re: A curious thing...about tags. "AvdB" <nomail@example.invalid> - 2013-07-23 00:13 +0200
Re: A curious thing...about tags. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-07-24 22:58 +0200
Re: A curious thing...about tags. Norman Peelman <npeelman@cfl.rr.com> - 2013-07-22 06:31 -0400
Re: A curious thing...about tags. Norman Peelman <npeelman@cfl.rr.com> - 2013-07-22 06:31 -0400
Re: A curious thing...about tags. The Natural Philosopher <tnp@invalid.invalid> - 2013-07-22 15:25 +0100
Re: A curious thing...about tags. Norman Peelman <npeelman@cfl.rr.com> - 2013-07-22 19:46 -0400
Re: A curious thing...about tags. Tim Streater <timstreater@greenbee.net> - 2013-07-22 17:41 +0100
Re: A curious thing...about tags. Denis McMahon <denismfmcmahon@gmail.com> - 2013-07-22 19:14 +0000
Re: A curious thing...about tags. Jerry Stuckle <jstucklex@attglobal.net> - 2013-07-22 17:00 -0400
Re: A curious thing...about tags. Denis McMahon <denismfmcmahon@gmail.com> - 2013-07-22 21:29 +0000
Re: A curious thing...about tags. Christoph Michael Becker <cmbecker69@arcor.de> - 2013-07-23 00:27 +0200
Re: A curious thing...about tags. Jerry Stuckle <jstucklex@attglobal.net> - 2013-07-22 19:27 -0400
Re: A curious thing...about tags. Norman Peelman <npeelman@cfl.rr.com> - 2013-07-22 19:56 -0400
Re: A curious thing...about tags. Jerry Stuckle <jstucklex@attglobal.net> - 2013-07-22 20:59 -0400
Re: A curious thing...about tags. The Natural Philosopher <tnp@invalid.invalid> - 2013-07-23 20:02 +0100
Re: A curious thing...about tags. Norman Peelman <npeelman@cfl.rr.com> - 2013-07-22 19:52 -0400
Re: A curious thing...about tags. Denis McMahon <denismfmcmahon@gmail.com> - 2013-07-23 09:40 +0000
Re: A curious thing...about tags. Norman Peelman <npeelman@cfl.rr.com> - 2013-07-23 06:22 -0400
Re: A curious thing...about tags. Tim Streater <timstreater@greenbee.net> - 2013-07-23 13:07 +0100
csiph-web