Can anyone tell me the difference (apart from the PHP5 only for php_put_contents).
I wrote a script that should open a file (using fopen) and then take a variable and write it out before closing the file handle (using fwrite and fclose) but do you think it would write it - would it hell!
Kept getting a not a valid stream (I think that was the error) meaning the filehandle wasn't there (even though it created a blank file!)
Scratched my head and then tried php_put_contents and it worked a treat.
Glad it worked but cannot figure out why the fopen/fwrite/fclose commands didn't work.
Any ideas?
I wrote a script that should open a file (using fopen) and then take a variable and write it out before closing the file handle (using fwrite and fclose) but do you think it would write it - would it hell!
Kept getting a not a valid stream (I think that was the error) meaning the filehandle wasn't there (even though it created a blank file!)
Scratched my head and then tried php_put_contents and it worked a treat.
Glad it worked but cannot figure out why the fopen/fwrite/fclose commands didn't work.
Any ideas?