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> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn 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+&. 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 On 07/22/2013 05:15 AM, Alex vdB wrote: >> and the following produces "?> something > php -a >> > $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 > $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