Jump to content

Archived

This topic is now archived and is closed to further replies.

Sydok

file_get_contents Issue............

Recommended Posts

Need help have a an issue using file_get_contents with an ftp account I have trying to create a script to access using FTP and then grabbing the contents of a file where it is choking is shown below:

$sFile2 =file_get_contents("ftp://username%40domainname.com:password@domainname.com/html/test_get.php");

Error Message received:
Warning:file_get_contents(ftp://...@****.****.com:*****@*****.******.com/mainwebsite_html/test_get.php): failed to open stream: Success in /home/*****/public_html/test_get.php on line 76

The Url if tested in a Browser works Fine.
Tested using a different FTP site works fine.
Need to be able to do this for this FTP site trying to setup a Site Monitor don't want to just test Ports

I believe it is actually choking at "username@domainname.com" the server that I am trying to access requires the username formatted in that way. Is there a way to solve this issue?????

Please Help!!!!!

Share this post


Link to post
Share on other sites
Use the FTP functions that are builtin to PHP. See the [a href=\"http://www.php.net/ftp\" target=\"_blank\"]Real Fine Manual[/a].

Ken

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.