Michal Maras wrote:
I have read http://php.net/fopen from top to bottom, but I could not find
how to get system error number.
With set_error_handler I can get string for example
fopen(hmc_configuration.cfg)
[function.fopen<http://ds63450.mspr.detemobil.de/%7Emmaras/HMC/function.fopen>]:
failed to open stream: Permission denied
but I need integer number not string, because string error messages depends
on locale setting.
Of course, I can test some conditions before fopen, but it is not enough
for me.
What exactly are you trying to do? Why do you need the specific reason
why it failed? It's pretty-much always a case of file not found or
insufficient permissions, both of which you can check for before going
near fopen.
-Stut
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php