Sydok Posted May 24, 2006 Share Posted May 24, 2006 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 76The 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 PortsI 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 More sharing options...
kenrbnsn Posted May 24, 2006 Share Posted May 24, 2006 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 Link to comment https://forums.phpfreaks.com/topic/10305-file_get_contents-issue/#findComment-38432 Share on other sites More sharing options...
Sydok Posted May 24, 2006 Author Share Posted May 24, 2006 Thanks Ken I'll give that a try and see what happens Link to comment https://forums.phpfreaks.com/topic/10305-file_get_contents-issue/#findComment-38623 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.