Re: [PHP] fopen() question

2002-06-04 Thread Jason Wong
On Tuesday 04 June 2002 21:17, Jose Jeria wrote: > What I want to do is to the save a file with its new content, but when i > save the file > and the new content is less than it was before i opened it, you can see the > old content > after the new shorter content. How can i avoid this? > > Now usi

[PHP] fopen() question

2002-06-04 Thread Jose Jeria
What I want to do is to the save a file with its new content, but when i save the file and the new content is less than it was before i opened it, you can see the old content after the new shorter content. How can i avoid this? Now using: $fd = fopen($arrFileName, "r+"); fwrite($fd, $arrFileCon

Re: [PHP] fopen() question

2002-04-18 Thread Jason Wong
On Friday 19 April 2002 08:04, David McInnis wrote: > I am having a problem reading a remote file using fopen and http://. I > suspect this is because the remote file is sending back a cookie. Can > anyone confirm and/or offer a solution? If it is indeed sending back a cookie then you need some

[PHP] fopen() question

2002-04-18 Thread David McInnis
I am having a problem reading a remote file using fopen and http://. I suspect this is because the remote file is sending back a cookie. Can anyone confirm and/or offer a solution? Here is what I am doing. $CP_url is a full url in the form http://blah.com/footer.html $filename = "$CP_url"; $f

Re: [PHP] fopen question

2001-05-07 Thread sean
even when you are trying to access a COM port? ""Kelvin"" <[EMAIL PROTECTED]> wrote in message 9d6dc8$eug$[EMAIL PROTECTED]">news:9d6dc8$eug$[EMAIL PROTECTED]... > Hi sean, > >try to put a file name not a directory or path. > $file = fopen("filename.withextension","r+" > > Kelvin. > > > <

Re: [PHP] fopen question

2001-05-07 Thread Kelvin
Hi sean, try to put a file name not a directory or path. $file = fopen("filename.withextension","r+" Kelvin. <[EMAIL PROTECTED]> wrote in message 9d6apq$eka$[EMAIL PROTECTED]">news:9d6apq$eka$[EMAIL PROTECTED]... > hi > > I am running the following on my redhat 7.0 / php4 / apache box and

[PHP] fopen question

2001-05-07 Thread sean
hi I am running the following on my redhat 7.0 / php4 / apache box and receiving the error below. Warning: fopen("/dev/ttys0","r+") - Input/output error in /var/www/html/test.php on line 2 I would be grateful if you could help. Many thanks, Sean -- PHP General Mailing List (http://www.