Jump to content

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


Sydok

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:[email protected]/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 "[email protected]" 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!!!!!
Link to comment
https://forums.phpfreaks.com/topic/10305-file_get_contents-issue/
Share on other sites

Archived

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

×
×
  • Create New...

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.