[PHP] file_put_contents problem

2009-09-14 Thread Andres Gonzalez
I have read in the contents of a file using file_get_contents. I can verify that the data has actually been read in by echoing its contents. But then if I do this: $ret = file_put_contents(/tmp/bla, $bk); The return value gives the correct size of string $bk, and the file /tmp/bla is created

Re: [PHP] file_put_contents problem

2009-09-14 Thread J DeBord
On Mon, Sep 14, 2009 at 4:19 PM, Andres Gonzalez and...@packetstorm.comwrote: I have read in the contents of a file using file_get_contents. I can verify that the data has actually been read in by echoing its contents. But then if I do this: $ret = file_put_contents(/tmp/bla, $bk); The

Re: [PHP] file_put_contents problem

2009-09-14 Thread Andres Gonzalez
thank you for your responses. This appears to be a CodeIgniter problem because everything of course works fine from a command line script. I will post a question on their forum. Thanks again. -Andres Jim Lucas wrote: Andres Gonzalez wrote: I have read in the contents of a file using

Re: [PHP] file_put_contents problem

2009-09-14 Thread Jim Lucas
Andres Gonzalez wrote: I have read in the contents of a file using file_get_contents. I can verify that the data has actually been read in by echoing its contents. But then if I do this: $ret = file_put_contents(/tmp/bla, $bk); The return value gives the correct size of string $bk, and

[PHP] file_put_contents()?

2003-07-25 Thread Jonas Thorell
Another stupid newbie question...(btw, is there a list more geared towards the newbies?) Is the file_put_contents() function not available in PHP 4.3.2? The reason I ask is that I get this error when I try to use it: Fatal error: Call to undefined function: file_put_contents()

Re: [PHP] file_put_contents()?

2003-07-25 Thread CPT John W. Holmes
Another stupid newbie question...(btw, is there a list more geared towards the newbies?) Yes, it's called the manual. Is the file_put_contents() function not available in PHP 4.3.2? Seriously: www.php.net/file_put_contents ---John Holmes... -- PHP General Mailing List

Re: [PHP] file_put_contents()?

2003-07-25 Thread Curt Zirzow
* Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]): Another stupid newbie question...(btw, is there a list more geared towards the newbies?) Yes, it's called the manual. Is the file_put_contents() function not available in PHP 4.3.2? Seriously: www.php.net/file_put_contents note:

Re: [PHP] file_put_contents()?

2003-07-25 Thread Curt Zirzow
* Thus wrote Jonas Thorell ([EMAIL PROTECTED]): Another stupid newbie question...(btw, is there a list more geared towards the newbies?) 1) the manual 2) the archives 3) see #1 Is the file_put_contents() function not available in PHP 4.3.2? If you notice in the manual under the function