When used in the conjuction with fread() is it not possible to find the size of a file or page with a link containing a .com?id=whatever. Once the (?) is in there does that affect how filesize works, or doesn't work? And how about fread, is there a limit to the intlength? Will it stop reading at a certain number even if it hasn't reached the end of file?Im not sure about your URL variable question, but you can make sure fread() reads the entire file like...
$handle = fopen("whatever.txt", "r");
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
I'm not sure if there's a limit though.a query string shouldnt make any difference.
the second parameter in fread is the length to read in in bytes.
if you put fread($file, 1024), it will read in 1kb of data.
<!-- m --><a class="postlink" href="http://us3.php.net/manual/en/function.fread.phpbut">http://us3.php.net/manual/en/function.fread.phpbut</a><!-- m --> how will $fread now what the ?id=whatever is? it won't. it shold ignore it and just read the file that is associated with it.
so in your situation it will be index.php or whatever is the index file of that .comthe script thats reading doesnt know what it is, but the website you are getting it from does. it should return the same data just like if you were accessing it from a browser, shouldnt it? either way its getting it through http, so it should yield the same results, correct?well, that could be possible. not sure what I was thinking.
$handle = fopen("whatever.txt", "r");
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
I'm not sure if there's a limit though.a query string shouldnt make any difference.
the second parameter in fread is the length to read in in bytes.
if you put fread($file, 1024), it will read in 1kb of data.
<!-- m --><a class="postlink" href="http://us3.php.net/manual/en/function.fread.phpbut">http://us3.php.net/manual/en/function.fread.phpbut</a><!-- m --> how will $fread now what the ?id=whatever is? it won't. it shold ignore it and just read the file that is associated with it.
so in your situation it will be index.php or whatever is the index file of that .comthe script thats reading doesnt know what it is, but the website you are getting it from does. it should return the same data just like if you were accessing it from a browser, shouldnt it? either way its getting it through http, so it should yield the same results, correct?well, that could be possible. not sure what I was thinking.