hi again
This is what I use in a script of mine.
Now, can also be https:// ( secure serverpage )
so we may add a test for this, too
<?php
$page = 'string to be tested';
// test for link: www. OR http:// OR WWW. OR HTTP://
if( stristr($page, 'www.') || stristr($page, 'http://' ) ){
// is a link or domain name
}
?>
http://php.net/stristr ( insensitive to UPPER/lower case )
http://php.net/strstr
( uses UPPER/lower match case, so search for 'http://' will not find 'HTTP://' )
.