You are here: Re: php and ftp « All PHP « IT news, forums, messages
Re: php and ftp

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация