Posted by artev on 09/28/07 18:31
> // second param gives print_r a return value so it can be written to
> the log
> fwrite($open_log, print_r(XXXXX, TRUE));
ok this is a tip for send a print_r only in the log;
but if I have function timeZ();
that normally for see the result in front isn't necessary write print_r;
simply in the code I write timeZ(); and have the result at video;
now if I want see only in the log how I can do?
I tested:
fwrite($open_log, timeZ() );
but I see always in the front
-------------------------------------------------------
also:
fwrite($open_log, "\n");
not work ; in txt file I see always in same row;
nowI amtestig in localhost on my pc that use windows so I not know if
under unix this work;
[Back to original message]
|