FGET nightmare (newbie)

From: Date: Sat, 02 Dec 2000 11:08:44 +0000
Subject: FGET nightmare (newbie)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28354@lists.php.net to get a copy of this message
Still in the proccess of learning PHP, as an exercise (My buddy here in charge of Security here, denied me access to the a particular Ubb during working hours, LOL ! So, basicaly, I want to POST something and send him the link to it, hehehe ) I figured I'd do this : From an external server (www.mycgiserver.com, the host runs PHP4) I am building a page that will read the data from that UBB' HMTL page (Example: http://www.thesiteiwant.com/ubb/Forum4/HTML/000966.html). I want my page to parse the data than re-write it on another one (not on the blocked domain...). So, going from the tutorials, I gathered this much... /******************/ /*enter URL via a form*/ /******************/ /* THEN */ $filename = "http://www.thesiteiwant.com/ubb/Forum1/HTML/006570.html"; $fd = fopen ($filename, "r"); $contents = fread ($fd, filesize ($filename)); echo $fd ; echo $contents; fclose ($fd); /******************************/ /* End of Code */ /*******************************/ $contents should give me the Raw HTML code, or am I realy missing the point again? <g> ------------------ Al

« previous php.general (#28354) next »