failed to open stream: no suitable wrapper, and other errors

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
myilyfe
Forum Newbie
Posts: 2
Joined: Sun Jan 07, 2007 11:22 pm

failed to open stream: no suitable wrapper, and other errors

Post by myilyfe »

I'm unfortunately a newbie to PHP and am on a steep learning curve. I'm getting the below error/warning messages instead of a page displaying. I searched the net and executed a php script to modify my php.ini and enable "allow_url_fopen", which was suggested as the problem, but that didn't cure the matter, so now I'm looking for more experienced help as I'm not sure what keywords to search for the answer and haven't learned the code well enough to figure it out beyond the basics of using includes, etc. I'd appreciate any help you can extend.

I've started developing several "projects" on my domain of http://myilyfe.com , and a subdomain of http://lisas-lyfe.myilyfe.com. I've also tried using this script in a folder, http://myilyfe.com/marketing, to be sure that the problem wasn't related solely to using a subdomain instead of the root. As you can see, I'm trying to think through this as logically as I know how.

Thanks,
Bill



Warning: main(): URL file-access is disabled in the server configuration in /home/content....cars.php on line 1

Warning: main(http://lisas-lyfe.myilyfe.com/rssgm/pag ... 15.226.101): failed to open stream: no suitable wrapper could be found in /home/content...cars.php on line 1

Warning: main(): URL file-access is disabled in the server configuration in /home/content...cars.php on line 1

Warning: main(http://lisas-lyfe.myilyfe.com/rssgm/pag ... 15.226.101): failed to open stream: no suitable wrapper could be found in /home/content....cars.php on line 1

Warning: main(): Failed opening 'http://lisas-lyfe.myilyfe.com/rssgm/pag ... =xxxxxxxxx' for inclusion (include_path='.:/usr/local/lib/php') in /home/content.........cars.php on line 1
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Please post the output of

Code: Select all

<?php
echo '<div>version: ', phpversion(), "</div>\n";
echo '<div>uname: ', php_uname('srm'), "</div>\n";
echo '<div>sapi: ', php_sapi_name(), "</div>\n";
echo '<div>url_fopen: ', get_cfg_var('allow_url_fopen'), "</div>\n";
echo '<div>url_include: ', get_cfg_var('allow_url_include'), "</div>\n";
echo '<div>php.ini: ', get_cfg_var('cfg_file_path'), "</div>\n";
myilyfe
Forum Newbie
Posts: 2
Joined: Sun Jan 07, 2007 11:22 pm

As Requested

Post by myilyfe »

volka wrote:Please post the output of

Code: Select all

<?php
echo '<div>version: ', phpversion(), "</div>\n";
echo '<div>uname: ', php_uname('srm'), "</div>\n";
echo '<div>sapi: ', php_sapi_name(), "</div>\n";
echo '<div>url_fopen: ', get_cfg_var('allow_url_fopen'), "</div>\n";
echo '<div>url_include: ', get_cfg_var('allow_url_include'), "</div>\n";
echo '<div>php.ini: ', get_cfg_var('cfg_file_path'), "</div>\n";
version: 4.3.11
uname: Linux
sapi: cgi-fcgi
url_fopen:
url_include:
php.ini: /home/content/B/i/l/BillSpace5502/html/php.ini
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

myilyfe wrote:url_fopen:
url_include:
Then allow_url_fopen is not set. Did you change the value in /home/content/B/i/l/BillSpace5502/html/php.ini (and restarted the webserver)?
Post Reply