About to check if link exists with PHP?

1 replies
I already know that at least 100 methods to do that but the thing is that I want to check existence of files which might be as big as 100 MBS.

So need help about the whole file and checking existence will be huge waste of bandwidth and time. Any way to solve my problem?
#check #exists #link #php
  • Profile picture of the author KirkMcD
    If you are using php 5, use get_headers:
    PHP: get_headers - Manual
    This will only return the header info about a link. Nothing will be retrieved.
    If you are using php 4, in the notes on the above link is a curl version that you can use.
    {{ DiscussionBoard.errors[1488334].message }}

Trending Topics