You are here: Re: to write echo in a file « PHP Language « IT news, forums, messages
Re: to write echo in a file

Posted by artev on 09/28/07 18:26

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

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация