PHP fopen of password protected URLs
Posted: Sat Mar 12, 2005 1:13 am
Please Help,
I am trying to open a password protected URL with PHP, using the normal method of fopen as in $fp = fopen('http://[username]:[password]@domain.com', 'r') does not work. I think the problem is that the username portion is an email address which obviously contains the '@' symbol.
Here is the error that I get.
Warning: fopen(http://adsl114354@dsl512.llink.co.za:aa ... .saix.net/) [function.fopen]: failed to create stream: Inappropriate ioctl for device in /var/www/html/somesite/adsl.php on line 10.
Usernames, Passwords and Domains are ficticious.
Please Help.
I am trying to open a password protected URL with PHP, using the normal method of fopen as in $fp = fopen('http://[username]:[password]@domain.com', 'r') does not work. I think the problem is that the username portion is an email address which obviously contains the '@' symbol.
Here is the error that I get.
Warning: fopen(http://adsl114354@dsl512.llink.co.za:aa ... .saix.net/) [function.fopen]: failed to create stream: Inappropriate ioctl for device in /var/www/html/somesite/adsl.php on line 10.
Usernames, Passwords and Domains are ficticious.
Please Help.