Jump to content

need help with "include"


wanex

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.