PHP - Determing existence of remote file?

You have to send HEAD request, in this way only HTTP headers will be returned, and not the whole file.

You have to send HEAD request, in this way only HTTP headers will be returned, and not the whole file curl_setopt(CURLOPT_NOBODY, true).

When you just want to check the existance of the file, you can use curl to make a HEAD Request instead of a GET. This way the webserver will only answer with the header information (including the 200/404/... status code) and not the entire file.

..and if status is 200 it's ok, in case of some 300s code, I will "redirect myself" to new one (for example google.com is moved).... Thank you! You saved my time ;-) Thank you all – Kryštof lar Nov 14 '11 at 18:49.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions