I have read the manual at php.net and have also consulted a couple of php books that I own, but cannot seem to get this right. I am attempting to use filesize() to obtain size of a file in bytes. Function is returning text:
filesize(name_of_file.txt)
Can anybody lead me in the right direction?
Close the filename into apostrophes like
$size = filesize('/tmp/filename.txt'); echo $size;
Zdenek
I have filename enclosed in single quotes. filesize function is still returning
"filesize(name_of_whatever_file.txt)"
Are you sure it is a valid file ?
show yer code...
Got it! After much frustration, I finally got it straightened out. Twas a silly oversight on my part that I should not have bothered you all with in the first place. But thanks for all of your help. This is simply the best php forum out there...