Re: PHP || Create File (not upload) with ftp()?
| From: | CF High | Date: | Fri, 12 Mar 2004 13:51:52 +0000 |
| Subject: | Re: PHP || Create File (not upload) with ftp()? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-180249@lists.php.net to get a copy of this message | ||
Hey all.
I've been having ownership issues when writing files with fwrite(); i.e.
file owner is "nobody" while ftp'd files are owned by the site owner.
In order to streamline file management, I'd like to be able to write files
on our webhost server using PHP's ftp functions; not using fwrite() and the
like.
So, for example, let's say I have the following data to be written to file:
$test = "I'm test data";
How would I use ftp() functions to write $test to file on the webserver?
Any help much appreciated.....
--Noah
--