Hello php-general,
Why this not working (php.4.0.4pl1_Linux)?
<?
error_reporting(E_ALL);
$file_name = '../tmp/text.txt';
function funct1(){
global $file_name;
if ($fd = fopen($file_name,'a+')){
fwrite($fd,"Funct1\n");
fclose($fd);
}else{
die("Can not open output file");
}
}
function funct2(){
global $file_name;
if ($fd = fopen($file_name,'a+')){
fwrite($fd,"Funct2\n");
fclose($fd);
}
}
$i = register_shutdown_function('funct2');
funct1();
?>
file have only "Funct1" ?
Best regards,
Andrew Sitnikov
e-mail : [EMAIL PROTECTED]
GSM: (+372) 56491109
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]