borhan_safa Posted February 5, 2013 Share Posted February 5, 2013 Hi I have created multiple php pages and the pages are calling other pages using require_once or include function. When I run the main script, it is showing the following error: Warning: include() [function.include]: http:// wrapper is disabled in the server configuration by allow_url_include=0 in /home/content/13/10377813/html/components/com_jumi/views/application/view.html.php(38) : eval()'d code on line 13 Warning: include( http://bphf2012.org/index.php?option=com_jumi&fileid=10 ) [function.include]: failed to open stream: no suitable wrapper could be found in /home/content/13/10377813/html/components/com_jumi/views/application/view.html.php(38) : eval()'d code on line 13 Warning: include() [function.include]: Failed opening 'http://bphf2012.org/index.php?option=com_jumi&fileid=10' for inclusion (include_path='.:/usr/local/php5_3/lib/php') in /home/content/13/10377813/html/components/com_jumi/views/application/view.html.php(38) : eval()'d code on line 13 Could anyone please help me how to sort out the issue... Thanks. Link to comment https://forums.phpfreaks.com/topic/274065-include-or-require_once-is-showing-error-while-using-jumi/ Share on other sites More sharing options...
kicken Posted February 5, 2013 Share Posted February 5, 2013 Your server's php.ini is configured to not allow you to include a URL. If the files you want to include are on the same server you should include them using a filesystem path rather than a URL. If you are trying to include an external file you need to either re-configure the server to allow it, or more likely stop using include() and use something else like file_get_contents(). Link to comment https://forums.phpfreaks.com/topic/274065-include-or-require_once-is-showing-error-while-using-jumi/#findComment-1410290 Share on other sites More sharing options...
borhan_safa Posted February 5, 2013 Author Share Posted February 5, 2013 Thanks for the reply. I have changed the function require_once to file_get_contents but its still showing an error something like: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/content/13/10377813/html/components/com_jumi/views/application/view.html.php(38) : eval()'d code on line 13 Could you please give an example on how to use a filesystem path rather than a url.... Thanks in advanced. Link to comment https://forums.phpfreaks.com/topic/274065-include-or-require_once-is-showing-error-while-using-jumi/#findComment-1410295 Share on other sites More sharing options...
borhan_safa Posted February 6, 2013 Author Share Posted February 6, 2013 Alright the error has been fixed after changing the server configuration but I am facing another problem now. When I am running the script, it is showing a blank page. I think I have made some mistakes on my scripts. Could you please check my php scripts which you can find from the following link: https://www.dropbox.com/sh/vof0p4heo4csdn9/dj2NfgcWuE What I did is, I have copied the scripts and pasted on the jumi component with the same name. After that I have assigned link on the menu manager to run. If you want to see how it is displaying please visit my website: http://bphf2012.org/index.php?option=com_jumi&view=application&fileid=3&Itemid=103 Please help me... Thanks. Link to comment https://forums.phpfreaks.com/topic/274065-include-or-require_once-is-showing-error-while-using-jumi/#findComment-1410392 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.