note 21637 rejected from language.variables.predefined by david

From: Date: Sun, 23 Jun 2002 02:22:37 +0000
Subject: note 21637 rejected from language.variables.predefined by david
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-32121@lists.php.net to get a copy of this message
I am trying to find a simple code for printer friendly pages. The one I found doesn't seem to work. Any help will be apreciated. Here is the code. $fd= fread(fopen($HTTP_REFERER, "r"), 100000); if ($fd) { $start= strpos($fd, "<!-- CONTENT -->"); $finish= strpos($fd, "<!-- /CONTENT -->"); $length= $finish-$start; $code=Substr($fd, $start, $length); } The error I get says: Warning: fopen("", "r") - Inappropriate ioctl for device in "/home/blah/blah" Warning: Supplied argument is not a valid File-Handle resource in "/home/blah/blah"

« previous php.notes (#32121) next »