Many bots come to this site. We ping all post everyday. You will got indexed fast!
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog inSEO
Get top 10 ranking in Google within few months.
Mix Link Building packages-Monthly $150 -$450 per month

Share
 

 About to check if link exists with PHP?

Go down 
AuthorMessage
preetlilly



Posts : 10
Join date : 2009-12-14

About to check if link exists with PHP? Empty
PostSubject: About to check if link exists with PHP?   About to check if link exists with PHP? EmptyMon Dec 21, 2009 2:30 am

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?
Back to top Go down
View user profile
jasim



Posts : 10
Join date : 2009-12-14

About to check if link exists with PHP? Empty
PostSubject: Re: About to check if link exists with PHP?   About to check if link exists with PHP? EmptyMon Dec 21, 2009 9:48 am

I take it you mean you want to check if a remote file exists via HTTP...

You can use fread or sockets and specify a read length.
Just remember when doing this that you'll need to read the headers for a 404 response.
Back to top Go down
View user profile
 
About to check if link exists with PHP?
Back to top 
Page 1 of 1
 Similar topics
-
» Selection of sub menus in Selenium IDE

Permissions in this forum:You cannot reply to topics in this forum
Webking :: Website Development :: Programming / Scripting / Coding Forum-
Jump to: