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
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
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
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
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
/* 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
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
7 matches
Mail list logo