Jump to content

Archived

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

wanex

need help with "include"

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

Share this post


Link to post
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');

Share this post


Link to post
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\" /]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
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>

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

×

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.