Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 11th Dec 2009, 04:53 AM   #1
Warrior Member
 
Join Date: 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default
About to check if link exists with PHP?
Share on: 
fb share twitter share gplus share more share

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?

gloryweb is offline  
Unread 11th Dec 2009, 01:26 PM   #2
VIP Warrior
War Room Member
 
Join Date: 2006
Location: , , USA.
Posts: 1,795
Thanks: 70
Thanked 287 Times in 259 Posts
Default
Re: About to check if link exists with PHP?
Share on: 
fb share twitter share gplus share more share

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.
KirkMcD is offline  
Closed Thread


Bookmarks

Tags
check, exists, link, php


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 10:28 AM.