Re: Weird problem while reading in a file to an Array
| From: | Shawn McKenzie | Date: | Fri, 30 Jan 2009 00:34:10 +0000 |
| Subject: | Re: Weird problem while reading in a file to an Array | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287389@lists.php.net to get a copy of this message | ||
Michelle Konzack wrote:
> Am 2009-01-29 15:34:41, schrieb Shawn McKenzie:
>> exec(escapeshellcmd("echo '$BUILDLOG' | head -n 11"), $TMP_DATA);
>>
>> There are quotes or backticks or something in $BUILDLOG.
>
> Forgotten one thing: If I continue to process the array() with, e.g.,
>
> $POS=strpos(stripcslashes($TMP_DATA['0']), ": ");
> $POS=$POS+2;
> $PKG=substr(stripcslashes($TMP_DATA['0']), $POS);
>
> $POS=strpos(stripcslashes($TMP_DATA['1']), "version ");
> $POS=$POS+8;
> $VERSION=substr(stripcslashes($TMP_DATA['1']), $POS);
>
> stripcslashes() does not have any effect and processing fails.
>
> Thanks, Greetings and nice Day/Evening
> Michelle Konzack
> Systemadministrator
> 24V Electronic Engineer
> Tamay Dogan Network
> Debian GNU/Linux Consultant
>
>
I'm really lost at what you're saying and doing here.
--
Thanks!
-Shawn
http://www.spidean.com