Diego, huh?
i think i used the wrong names for the example, i should have used the typical foo/bar combo. my apologies.
my server's file structure:
/home/www/strip.php
a file on my server.
/home/www/new_site/Collection/CinemaClassicsDVD/dvd_title.php
here's the the link i want to open using fopen with a querystring:
http://www.foo.com/strip.php?file=/new_site/Collection/CinemaClassicsDVD/dvd_title.php?itemID=124
recap.
strip.php has this code:
$file = $_REQUEST['file'];
$read = @fopen($file, "rb");
if(is_readable($file)){
while(!feof($read)){
$str_value .= fread($read, filesize($file));
}
fclose($read);
}
else{
echo "cant get file";
}
// note: my original code didn't have the extra conditional
// statement which include is_readable(); I added that
// so that i could stop seeing those errors :)
if i don't suppress the erros i get this output:
Warning: fopen("new_site/Collection/CinemaClassicsDVD/dvd_title.php?itemID=124", "rb") - No such file or directory in /home/www/print.php on line 66
this is line 66:
$read = fopen($file, "rb");
hope this clears some things up.