
Untitled
By: a guest on
May 2nd, 2012 | syntax:
None | size: 0.56 KB | hits: 9 | expires: Never
Function to convert Text URL into HTML URL
$rawhtml = file_get_contents( "site url" );
$pat= '/((http|ftp|https)://[w#$&+,/:;=?@.-]+)[^w#$&+,/:;=?@.-]/i';
preg_match_all($pat,$rawhtml,$matches1);
foreach($matches1[1] as $plinks)
{
$links_array[]=$plinks;
}
$rawhtml = " http://www.filesonic.com/file/2185085531/TEST Voice 640-461 Test Cert Guide.epub
"
http://www.filesonic.com/file/2185085481/TEST Voice (640)+461 Test Cert Guide.pdf
http://www.filesonic.com/file/2185085531/TEST
[^w#$&+,/:;=?@.-]
[w#$&+,/:;=?@. -]+
▵