Grabar Archivo
| From: | Julio Herrera - Directo | Date: | Wed, 07 Aug 2002 16:08:22 +0000 |
| Subject: | Grabar Archivo | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-25721@lists.php.net to get a copy of this message | ||
Buenas tardes, tengo el siguiente codigo para escribir un archivo:
$filename = "/usr/home/servidor/www/cgi-bin/log/log$TBK_ID_TRANSACCION.txt";
$fp=fopen($filename,"w");
reset($HTTP_POST_VARS);
while (list($key,$val) = each($HTTP_POST_VARS)){
fwrite($fp,"$key=$val&");
}
fclose($fp);
Este codigo me toma todas las variables y las mete en un archivo, como puedo hacerlo para meter solo
3 de estas variables.
Julio