[PHP] ###PLEASE HELP### - delete a line from a text file
i have a text file with some of this elements: name:adress:telephone:email:password i want to delete this line using for identifier the 'name' only. // $sterge_user="name"; this is the value sent by form witch will be the identifier // $path="some_of_my_files"; the file used here allready set with 777 chmod function delete_user($sterge_user, $path){ $i = 0; $fisierul = file($path); $fp = fopen($path, "w"); while (!sizeof($fisierul)) { $data = fgetcsv ($fisierul, 4096, ":"); if ($data[0]==$sterge_user) { for ($i=0; $i<=sizeof($data);){$data[i]="";++$i;} } fwrite($fp, $data); } fclose($fp); } I am waiting for an answer, please Nick
[PHP] and this is the script
$fp = fopen("msg1.dat", "r"); while (!feof($fp)) { $data = fgetcsv ($fp, 4096, ":"); $subiect_email="Important to all my users!!!"; $design=" bla blablaaa"; @mail ($data[4],$subiect_email, $design, "From: [EMAIL PROTECTED]\n"); } fclose ($fp);
[PHP] cgi error
I receive this when I try to send an e-mail. All works fine until yesterday and my script is the same. Could u tell what is the problem? CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Re: [PHP] Re: Getting information of a client
how can i get a variable posted from a form by a user whitout having register_globals set On? Nick - Original Message - From: "Saci" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 09, 2002 1:08 PM Subject: [PHP] Re: Getting information of a client > $mensagem = $mensagem."Remote_addr : ".$_SERVER['REMOTE_ADDR']."\n"; > $mensagem = $mensagem."Remote_host : ".$_SERVER['REMOTE_HOST']."\n"; > $mensagem = $mensagem."Remote_agent : ".$_SERVER['HTTP_USER_AGENT']."\n"; > $mensagem = $mensagem."Host : ".$_SERVER['HTTP_HOST']."\n"; > echo $mensagem; > ?> > > > > "Jan Souman" <[EMAIL PROTECTED]> escreveu na mensagem > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I would like to get information of a person who is browsing my site. Does > > anyone know how to get this information? > > > > Kind regards, > > > > Jan > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php