Posted by Rauch Christian on 10/11/05 09:07
Mike schrieb:
> how can i get PHP to upload a file from my server, to a remote ftp server?
>
> do i need to have PHP or Apache built with extra module for me to use this
> method?
>
> or can I use PHP's socket to achieve this?
>
> sorry if this is a newbie question
>
you are searching for http://php.net/fopen
You can use fopen in the following way:
$handle = fopen ("ftp://user:password@example.com/somefile.txt", "w");
For more info see the page above and linked instructions
-rauch
[Back to original message]
|