Probelm with php
#4

Quote:
Originally Posted by wups
Посмотреть сообщение
Maybe a stupid question, but, do you set these:
Код:
    $host = "host"; // your server's FTP's host
    $user = "user"; // your server's FTP's username
    $pass = "pass"; // your server's FTP's user's password
And I think those php functions are not for FTP, but local.

EDIT:
Код:
$handle = fopen("ftp://user:password@example.com/somefile.txt", "w");
http://php.net/manual/en/function.fopen.php
Yes i set host, user and password correctly. It connects, but as you said, it's a local function, so i think that's why. So how to read from file in FTP ?
Reply


Messages In This Thread
Probelm with php - by BuLLeT[LTU] - 17.09.2011, 12:46
Re: Probelm with php - by wups - 17.09.2011, 12:49
Re: Probelm with php - by Kingunit - 17.09.2011, 12:50
Re: Probelm with php - by BuLLeT[LTU] - 17.09.2011, 12:56

Forum Jump:


Users browsing this thread: 1 Guest(s)