[PHP] Re: Text File Busy

2009-10-22 Thread Floyd Resler
It happens on any file I try so there must be something else going on. Thanks! Floyd On Oct 21, 2009, at 4:17 PM, Shawn McKenzie wrote: Floyd Resler wrote: For some reason I'm getting a Text file busy error when I try to execute PHP scripts from the command line now. It used to work, but n

[PHP] Re: Text File Busy

2009-10-21 Thread Shawn McKenzie
Floyd Resler wrote: > For some reason I'm getting a Text file busy error when I try to execute > PHP scripts from the command line now. It used to work, but now it > doesn't. I do have #!/usr/bin/php at the top of my script. If I feed > the file to php (i.e. /usr/bin/php -f filename.php) it work

[PHP] Re: Text file breaking!

2003-06-05 Thread zavaboy
Thanks! :) "Bobby Patel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > try this > $string = ereg_replace ('\r\n|\n|\r', '', $string); > OR > $string = nl2br($string); > > NOTE: for me the first case will remove the newline, whereas the second will > keep them (It might be becuase

[PHP] Re: Text file breaking!

2003-06-05 Thread Bobby Patel
try this $string = ereg_replace ('\r\n|\n|\r', '', $string); OR $string = nl2br($string); NOTE: for me the first case will remove the newline, whereas the second will keep them (It might be becuase of my old php version [4.06]?) "Zavaboy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTE

[PHP] Re: text file

2002-06-05 Thread Philip Hallstrom
Take a look at following functions: http://www.php.net/manual/en/function.file.php http://www.php.net/manual/en/function.array-unshift.php -philip On Wed, 5 Jun 2002, John Taylor-Johnston wrote: > I want to open a text file which has 12 lines and > (1) insert a new line at line[0] > (2) re-sav

[PHP] Re: Text file

2002-05-20 Thread Cleeker
/* Opens the file in the current dir and allows read only parimiters to it (R) */ $foo = fopen(foo.txt, R); /* This then sends the contents to the browser for output */ fpassthru($foo); fclose($foo); That is REALLY basic if you want some more functions (which your probably will) for file handlin

[PHP] Re: Text file busy

2001-12-18 Thread Chris Lee
try php.ca or any of the other mirrors when php.net is down. I bet you got that file your running open in an editor eh? close the file in the editor then run the file, no problems. -- Chris Lee [EMAIL PROTECTED] "Boaz Yahav" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[E