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:
> Hello Shawn,
> 
> 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.
> 
> Thanks for it, now I have an array but the "|head -n 11" is ignored  and
> my arrays have up to several 10.000 elements...
> 
> Also if I like to continue processing,it does not more work because  the
> backslashes...

$BUILDLOG = escapeshellcmd($BUILDLOG);

exec("echo \"$BUILDLOG\" | head -n 11"), $TMP_DATA);


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