Ver Mensaje Individual
  #6 (permalink)  
Antiguo 16/11/2009, 14:31
diego007007
 
Fecha de Ingreso: enero-2009
Ubicación: en la casa
Mensajes: 223
Antigüedad: 16 años
Puntos: 3
Respuesta: poner palabras en inicio de cada linea de un txt

escribi el siguiente codigo, pero no se por que no funciona:
Código PHP:
<html>
<body>
<FORM METHOD="post" ACTION="cop1.php">
<TEXTAREA COLS=70 ROWS=20 NAME="Texto">
</TEXTAREA>
<BR><BR>
<INPUT TYPE="submit"><INPUT TYPE="Reset">
</FORM> 

<?php
$text 
= @$_POST['Texto'];
$lines file("$text");
foreach(
$lines as $line)
{
    echo 
"http://".$line."<br>";
}
?>
</body>
</html>