Re: Guardar PHP Info en un archivo

From: Date: Wed, 29 Oct 2003 15:54:34 +0000
Subject: Re: Guardar PHP Info en un archivo
References: 1 2  Groups: php.general.es 
Request: Send a blank email to general-es+get-42029@lists.php.net to get a copy of this message
<? ob_start(); $pagina = phpinfo(); $source = ob_get_contents(); $serv_file = "phpinfo.html"; if($fp = @fopen($serv_file,"w")) { fwrite($fp, $source); fclose($fp); chmod($serv_file, 0755); } ?> Amador escribió: ACNc> Hola, necesito guardar el texto contenido con la funcion phpinfo() en un ACNc> archivo de texto. ACNc> Poniendo variable = phpinfo(); no queda guardado.

« previous php.general.es (#42029) next »