I have never used ftp in PHP, but now I 'm there.
And I cannot figure out what content I should give to the string "$ftp_server" in ftp_connect($ftp_server).

I would appreciate some advice.

That would be the ftp server address. E.g.

$ftp_server = "ftp.example.com";
$ftp_server = "127.0.0.1";

Thank you!
I suppose it is not always "127.0.0.1" - where do I find the answer yielding e.g. my internet server?

you can use the domain name instead of the ip address

Thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.