Re: write in a fil log the result of one echo
- From: Preventer of Work <not_this@xxxxxxxxxx>
- Date: Wed, 26 Sep 2007 04:46:16 GMT
artev wrote:
if I have this code
<?php
if (VAR1) {echo "<!-- funz1();print_r(xxxx);echo "-->"; }
?>
that make comments in html's page source;
how I can to achieve all in a file (and not send in html page) ?
and is also possible to make a file every day so not write always in same
file, but every day to make automatically a file where to write; ?
You can use the php file functions.
http://www.php.net/manual/en/ref.filesystem.php
Open file for append
Write your stuff
Close the file
To make a new file every day, use the date function to create a filename
such as
20070925.log
without too much effort.
I would give you code, but only have a minute.
.
- References:
- write in a fil log the result of one echo
- From: artev
- write in a fil log the result of one echo
- Prev by Date: Re: make complete test of a server
- Next by Date: How to restrict the files while uploading..
- Previous by thread: Re: write in a fil log the result of one echo
- Next by thread: fetching xml file, it has no line breaks = problem
- Index(es):