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: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!!!!!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.