About editing a text file on my server with a URL call
From: J (no_at_email.com)
Date: 02/24/05
- Previous message: Chris Hope: "Re: How to count time of the session"
- Next in thread: Michael Fesser: "Re: About editing a text file on my server with a URL call"
- Reply: Michael Fesser: "Re: About editing a text file on my server with a URL call"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 24 Feb 2005 14:45:17 GMT
Hi,
I would like to edit a text file on my server by calling a URL ie:
http://server.com/edittext.php?Api_id=1234&apimsgid=5678&status=yes
etc...
This is the edittext.php file #####################################
<?
$string = "\r\n[list]<del>". $Api_id. "<del>". $apimsgid. "<del>".
$climsgid. "<del>". $status. "<del>". $timestamp. "<del>". $to. "<del>".
$from. "<del>". $charge;
$fp = fopen("status.txt", "a+");
fwrite($fp, $string);
fclose($fp);
?>
but my results file only displays a string of the <del>'s ie:
<del><del><del><del><del><del><del><del>
So i know its opening the file, adding the <del>'s and then closing it ok,
but its not adding the bits inbetween,
I guess I must be missing something silly, but cos of my green-ness behind
my ears in not sure,
Thanks
Jim
- Previous message: Chris Hope: "Re: How to count time of the session"
- Next in thread: Michael Fesser: "Re: About editing a text file on my server with a URL call"
- Reply: Michael Fesser: "Re: About editing a text file on my server with a URL call"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|