/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function is_valid_url($url) { if (!$url) { return false; } if ($path == '') { $path = '/'; } { if (PHP_VERSION >= 5) { } else { if (!$fp) { return false; } Host: $url[host] "); } } return false; } ?> <?php if (is_valid_url('http://www.secondversion.com')) { do_something(); } ?>
URL: http://www.bytemycode.com/snippets/snippet/657/
Comments
