Ver Mensaje Individual
  #5 (permalink)  
Antiguo 25/11/2005, 19:32
freedatos
 
Fecha de Ingreso: abril-2003
Mensajes: 587
Antigüedad: 21 años
Puntos: 5
Lo he echo asi pero no me codifica correctamente:

Código PHP:
function httpp($texto){
   
$texto ereg_replace("[a-zA-Z]+://([.]?[a-zA-Z0-9_/-])*""<a href=\"http://www.okysex.com/out.php?web=".base64_encode('\\0')."\">\\0</a>"$texto);
   
$texto ereg_replace("(^| )(www([.]?[a-zA-Z0-9_/-])*)""\\1<a href=\"http://www.okysex.com/out.php?web=http://".base64_encode('\\2')."\">\\2</a>"$texto);
   return 
$texto;

ALGUIEN ME PUEDE AYUDAR ?
__________________
Si la vida te da la espalda tocale el culo