Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
July 15, 2006, 7:42 pm
rate this thread
I've been struggling with this for hours over a few days.
I just can't find a solution.
I've tried fsocket, file, fopen.
But all seem to have problems.
I'm trying to quickly validate whether a file exists.
It could be a big file, maybe 200mb.
fopen and file, try to read the whole file.
fsockets with fputs($gh, "HEAD $hpath HTTP/1.0\n\n");
Doesn't like files in sub directories.
Can anyone help me?
I'd be grateful for code snippits as I've tried modifying lots of code
I found on forums and newsgroups without success.
Re: Is URL for a big file valid? (sorry put bif first time)
The newlines should be replaced with CRLF (\r\n\r\n), but besides that, this
should work fine.
It's possible that you are using windows-style slashes (\some\dir), in which
case you sould replace them with forward slashes (/some/dir).
You could also use GET and just read the first line to get the status code
and disconnect immediate after it.
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum