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

2009-01-29 Thread Shawn McKenzie
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=s

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

2009-01-29 Thread Shawn McKenzie
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 a

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

2009-01-29 Thread Shawn McKenzie
Michelle Konzack wrote: > Am 2009-01-29 16:09:00, schrieb Shawn McKenzie: >> Actually though, instead of exec() why not something like: >> >> $TMP_DATA = explode("\n", $BUILDLOG, 11); > > Tried... but now I have 11 elements wher in the last element is the > whole rest of the BUILD-Log... con

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

2009-01-29 Thread Michelle Konzack
Am 2009-01-29 16:09:00, schrieb Shawn McKenzie: > Actually though, instead of exec() why not something like: > > $TMP_DATA = explode("\n", $BUILDLOG, 11); Tried... but now I have 11 elements wher in the last element is the whole rest of the BUILD-Log... continue trying! Thanks, Greetings a

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

2009-01-29 Thread Michelle Konzack
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']),

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

2009-01-29 Thread Michelle Konzack
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.0

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

2009-01-29 Thread Shawn McKenzie
Shawn McKenzie wrote: > Michelle Konzack wrote: >> Hello, >> >> currently I am coding a RSS feeder for the Emdebian buildd-log and for >> testing I use two files: >> >> >>

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

2009-01-29 Thread Shawn McKenzie
Shawn McKenzie wrote: > Michelle Konzack wrote: >> Hello, >> >> currently I am coding a RSS feeder for the Emdebian buildd-log and for >> testing I use two files: >> >> >>

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

2009-01-29 Thread Shawn McKenzie
Michelle Konzack wrote: > Hello, > > currently I am coding a RSS feeder for the Emdebian buildd-log and for > testing I use two files: > > > >