View Single Post
Old 8th January 2004, 09:06 AM   #4
Mr. Tech's Avatar

Username: Mr. Tech
Rank: Problem Solver
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
Send a message via MSN to Mr. Tech
Default

Try this code:

Code:
<?php function check($sitesurl) { if (@file($sitesurl)) { $file = "true"; } else { $file = "false"; } return $file; } if (check("http://www.webmaster-resources101.com") == "true") { print "It exists!"; } else { print "It don't exist!"; } ?>
__________________
Please read the Forum Rules

Get rewarded for posting
- free advertising!

.::. [ Webmaster Resources ] .::. [ Web Design ] .::. [ Developer Tutorials ] .::.
Mr. Tech is offline   Reply With Quote