Jump to content


Photo

need help with "include"


  • Please log in to reply
5 replies to this topic

#1 wanex

wanex
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 27 May 2006 - 04:02 PM

Hi Guys

I am getting error on this
<?php
include 'http://somesite.com/...i?someparameter' ;
?>


Warning: Failed opening 'http://somesite.com/...i?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

#2 bobleny

bobleny
  • Members
  • PipPipPip
  • Advanced Member
  • 429 posts

Posted 27 May 2006 - 04:10 PM

[!--quoteo(post=377595:date=May 27 2006, 12:02 PM:name=wanex)--][div class=\'quotetop\']QUOTE(wanex @ May 27 2006, 12:02 PM) View Post[/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');
-- www.firemelt.net --
First do me a favor and read this: JavaScript is NOT Java - Then read this: www.php.net - When your done with that, read this Topic
After that, floors open. I and anyone else will be MORE than happy to answer YOUR query! [Topic Solved]
Cheer up, the worst has yet to come...

#3 wanex

wanex
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 27 May 2006 - 04:24 PM

[!--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) View Post[/div][div class=\'quotemain\'][!--quotec--]
Try this

include('http://somesite.com/...i?someparameter');
[/quote]


still same [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /]

#4 bobleny

bobleny
  • Members
  • PipPipPip
  • Advanced Member
  • 429 posts

Posted 27 May 2006 - 04:27 PM

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.
-- www.firemelt.net --
First do me a favor and read this: JavaScript is NOT Java - Then read this: www.php.net - When your done with that, read this Topic
After that, floors open. I and anyone else will be MORE than happy to answer YOUR query! [Topic Solved]
Cheer up, the worst has yet to come...

#5 wanex

wanex
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 27 May 2006 - 04:33 PM

sure

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR.../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/...i?someparameter') ;
?>

</body>
</html>

#6 bobleny

bobleny
  • Members
  • PipPipPip
  • Advanced Member
  • 429 posts

Posted 27 May 2006 - 04:40 PM

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.
-- www.firemelt.net --
First do me a favor and read this: JavaScript is NOT Java - Then read this: www.php.net - When your done with that, read this Topic
After that, floors open. I and anyone else will be MORE than happy to answer YOUR query! [Topic Solved]
Cheer up, the worst has yet to come...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users