Hi,
I'm using php to delete, rename, copy... some files. Sometimes php has
no permissions to do these operations, so the unlink(), rename(),
copy(), ... methods return a warning and send it to the browser.
What I'd like to do is to get these warning messages and save them in a
variable to print them somewhere else later so that it look nicer.
With the @ before the methods I can ignore warnings/errors but that's
not exactly what I want.
For example, when mysql returns an error, I can get it with the
mysql_error() method.
Has anyone an idea, how could I do this?
Thanks
Yeray
I'm using php to delete, rename, copy... some files. Sometimes php has
no permissions to do these operations, so the unlink(), rename(),
copy(), ... methods return a warning and send it to the browser.
What I'd like to do is to get these warning messages and save them in a
variable to print them somewhere else later so that it look nicer.
With the @ before the methods I can ignore warnings/errors but that's
not exactly what I want.
For example, when mysql returns an error, I can get it with the
mysql_error() method.
Has anyone an idea, how could I do this?
Thanks
Yeray
Comment