Forum Moderators: coopster

Message Too Old, No Replies

fetch cgi html page content into php?

         

neoapproach

3:29 pm on Apr 15, 2005 (gmt 0)

10+ Year Member



$site="http://www.miniforum.org/showtopic.fcgi?FID=9";
$open = fopen($site, "r");
$read = fread($open, 15000);
fclose($open);

i try to fetch content from showtopic.fcgi?FID=9
but there's nothing on it

but if you go to the actual web site there're contents

is it something related to HTTP header?

[edited by: jatar_k at 4:17 pm (utc) on April 15, 2005]
[edit reason] no urls thanks [/edit]

IamStang

3:32 am on Apr 16, 2005 (gmt 0)

10+ Year Member



I'm not sure exactly what it is you are trying to accomplish as far as an end result is concerned. But if you are wanting the cgi page to show up "as is", you can do an include
include "http://www.somesite.com/cgi-bin/script.cgi";