Your Ad Here

Sunday, March 22, 2009

Help: failed to open stream

Hey im new here and beginning to learn php coding.

I have encountered my first problem that I have no idea how to get around, I think its something to do with the "allow_url_fopen" option being turned off on my host.

Heres the error im getting

Code:
---------
Warning: file() [function.file]: URL file-access is disabled in the server configuration in /home/jas0ndf/public_html/sms/um/send.php on line 40

Warning: file(http://*******.com/http/auth?user=****&password=****&api_id=****&from=****&concat=2) [function.file]: failed to open stream: no suitable wrapper could be found in /home/jas0ndf/public_html/sms/um/send.php on line 40
---------
I have checked on line 40 of send.php and I have this line

Code:
---------
Line 39: $url = "$baseurl/http/auth?user=$user&password=$password&api_id=$api_id&from=$from&concat=2";
Line 40: $ret = file($url);
---------
Is there a way I can get around this without turning on allow_url_fopen?

Read More...
Your Ad Here

No comments: