http://www.devnetwork.net/forums/viewto ... highlight=
The script needs the $HTTP_REFERER to function properly
Code: Select all
$file = substr($HTTP_REFERER, strrpos($HTTP_REFERER,"/")+1);
$fd= fread(fopen($file, "r"), 100000);< fopen("", "r") - Inappropriate ioctl for device > and < not a valid File-Handle resource >
I have been looking for a workaround but either it is impossible or my knowledge is too limited (the latter is definitely sure).
Any help welcome. If there is no workaround the possibility to lead the visitor to a friendly errorpage with explanation would do as well.
I tried to accomplish the latter by
Code: Select all
if(!$HTTP_REFERER){
Header("Location: http://www.domain.com/error.htm");}Thanks for your attention