Re: Weird problem while reading in a file to an Array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux