How about you just create the file locally (with some random name) upload it
(with correct name) then delete the local copy...

Andrew
----- Original Message -----
From: "Kansas Territory" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 09, 2001 5:32 PM
Subject: [PHP] help with ftp command


> Trying to use the ftp function in PHP3. I've been able to use it to ftp
> an existing file, but what I would like to do is create a file on the
> fly, and then ftp that file to a remote location.
>
> for example, if I have some text defined in a variable like so:
>
> $mytext = "here is some text"
>
> I would like to be able to ftp this file and save it as "myfile.txt"
>
> any suggestions would be appreciated.
>
> Kansast
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to