Jump to content

Recommended Posts

Hi Guys

I am getting error on this
<?php
include '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 9

can anybody help

Thanks
Link to comment
https://forums.phpfreaks.com/topic/10587-need-help-with-include/
Share on other sites

[!--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 Guys

I am getting error on this
<?php
include '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 9

can anybody help

Thanks
[/quote]

Try this

include('http://somesite.com/somefolder/someurl/somefile.cgi?someparameter');
Link to comment
https://forums.phpfreaks.com/topic/10587-need-help-with-include/#findComment-39479
Share on other sites

[!--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\" /]
Link to comment
https://forums.phpfreaks.com/topic/10587-need-help-with-include/#findComment-39486
Share on other sites

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
<?php
include('http://somesite.com/somefolder/someurl/somepage.cgi?someparameter') ;
?>

</body>
</html>
Link to comment
https://forums.phpfreaks.com/topic/10587-need-help-with-include/#findComment-39488
Share on other sites

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.
Link to comment
https://forums.phpfreaks.com/topic/10587-need-help-with-include/#findComment-39490
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.