issues with command line script and fopen
Posted: Tue Aug 01, 2006 1:53 am
Pimptastic | Please use
all works fine, and I can see the output on the screen. But, as soon as I want a file as an output, it doesn't produce any
Pimptastic | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I'm having problems with a command line script's output. I mean, I can't get -fopen- work as I expect (probably beacause I am not aware of some different beaviour in command line) . I mean, when I useCode: Select all
fwrite(STDOUT, "whatever");Code: Select all
$handle = fopen('test.txt', 'a+');
fwrite($handle, "whatever");
fclose($handle);Pimptastic | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]