php http:// dynamic text area ->/?
Posted: Sun Feb 22, 2004 2:32 pm
hey ,
im using this code for a chat program (flash interface) can someone help with the httP;//,https://,and ftp . i would like to know how to make it so they dont have to type in the http:// it would just recognise it ..
sorry .i am just starting with php and dont really know much ,im a flash MX man !
thanks for the input
code i am using below works just fine .but i would like to accomplish what i adressed above
cheers
im using this code for a chat program (flash interface) can someone help with the httP;//,https://,and ftp . i would like to know how to make it so they dont have to type in the http:// it would just recognise it ..
sorry .i am just starting with php and dont really know much ,im a flash MX man !
thanks for the input
code i am using below works just fine .but i would like to accomplish what i adressed above
cheers
Code: Select all
$msg = eregi_replace( "(http|https|ftp)://([[]/\n+-=%&:_.~?]+[#[]+]*)","<b><a href="\\1://\\2" target="_blank">\\1://\\2</a></b><br>", $msg);