Advanced
View Scraps
Categories
Most Viewed
Top Rated
Add Scraps
History
Today in History
Thoughts
Welcome,
Logout
Sign In / Sign Up
Method to search if URL exists in a particular link
by barkkathulla
[
Edit
]
2013-03-01 09:23:19
How to search if URL exists in a particular link
This method is the easiest way to check whether a proper url is having in a particular link.
many of them click the wrong link and choose in complex way.Using the following trick you can do it in a useful way.
$file = 'http://your site/path(any)';
$file_headers = @get_headers($file);
if($file_headers[0] == 'HTTP/1.1 404 Not Found') {
$exists = false;
}
else {
$exists = true;
}
Tagged in:
URL
Domain
link
900
0
0
Previous
Next
You must
LOGIN
to add comments
Posting your comment...
Tags
Apache
Firefox Tweeks
Shortcuts
PHP
Others
CSS
Javascript
DNS
Windows
Websites
Linux
Game programming
Mysql
CVS
HTML
MS Office
JSP/Java
FTP Server
Flash
AJAX
More...
Indian Web Directory
Time Zone Converter
Web Internet Statistics
Live Chatting Online
Comments
expected, smart move:)
Already black money holders account is empty..
The money will never return
Nice sharing..
Thank you...
Good one...
Nice post...
Good sharing.....
Good...
Thanks for nice sharing...