wanex Posted May 27, 2006 Share Posted May 27, 2006 Hi GuysI am getting error on this <?phpinclude 'http://somesite.com/somefolder/someurl/somefile.cgi?someparameter' ;?>Warning: Failed opening 'http://somesite.com/somefolder/someurl/somefile.cgi?someparameter' for inclusion (include_path='.:/usr/share/pear') in /home/httpd/vhosts/a1group.com/httpdocs/parking/index.php on line 9can anybody helpThanks Quote Link to comment https://forums.phpfreaks.com/topic/10587-need-help-with-include/ Share on other sites More sharing options...
bobleny Posted May 27, 2006 Share Posted May 27, 2006 [!--quoteo(post=377595:date=May 27 2006, 12:02 PM:name=wanex)--][div class=\'quotetop\']QUOTE(wanex @ May 27 2006, 12:02 PM) [snapback]377595[/snapback][/div][div class=\'quotemain\'][!--quotec--]Hi GuysI am getting error on this <?phpinclude 'http://somesite.com/somefolder/someurl/somefile.cgi?someparameter' ;?>Warning: Failed opening 'http://somesite.com/somefolder/someurl/somefile.cgi?someparameter' for inclusion (include_path='.:/usr/share/pear') in /home/httpd/vhosts/a1group.com/httpdocs/parking/index.php on line 9can anybody helpThanks[/quote]Try this include('http://somesite.com/somefolder/someurl/somefile.cgi?someparameter'); Quote Link to comment https://forums.phpfreaks.com/topic/10587-need-help-with-include/#findComment-39479 Share on other sites More sharing options...
wanex Posted May 27, 2006 Author Share Posted May 27, 2006 [!--quoteo(post=377599:date=May 27 2006, 11:10 AM:name=Bob Leny)--][div class=\'quotetop\']QUOTE(Bob Leny @ May 27 2006, 11:10 AM) [snapback]377599[/snapback][/div][div class=\'quotemain\'][!--quotec--]Try this include('http://somesite.com/somefolder/someurl/somefile.cgi?someparameter');[/quote]still same [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /] Quote Link to comment https://forums.phpfreaks.com/topic/10587-need-help-with-include/#findComment-39486 Share on other sites More sharing options...
bobleny Posted May 27, 2006 Share Posted May 27, 2006 well can we see the code for /home/httpd/vhosts/a1group.com/httpdocs/parking/index.php?also, make sure that the file you are trying to include is in the correct location and the URL to that location is correct. Quote Link to comment https://forums.phpfreaks.com/topic/10587-need-help-with-include/#findComment-39487 Share on other sites More sharing options...
wanex Posted May 27, 2006 Author Share Posted May 27, 2006 sure<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Untitled Document</title></head>blahblah<?phpinclude('http://somesite.com/somefolder/someurl/somepage.cgi?someparameter') ;?></body></html> Quote Link to comment https://forums.phpfreaks.com/topic/10587-need-help-with-include/#findComment-39488 Share on other sites More sharing options...
bobleny Posted May 27, 2006 Share Posted May 27, 2006 well, if the file you are trying to include is in the correct location and the URL to that location is correct and it still doesnt work add a <body> tag after the closeing <head> tag and try that though I find it hard to believe this is the problem... So make sure the file you are trying to include is in the correct location and the URL to that location is correct as well. Quote Link to comment https://forums.phpfreaks.com/topic/10587-need-help-with-include/#findComment-39490 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.