Leer texto de un archivo en PHP

Funcion para leer texto de un archivo TXT desde PHP

$texto = nl2br($texto);

echo $texto;
?>

en mi pagina realizo bucles y previamente un explode de \n del $texto para tenerlo en un array.

Leave a comment

No comments yet.

Comments RSS TrackBack Identifier URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

  • QR Code: po5i

    qrcode
  • Twitter Updates

  • RSS Youtube favorites

    • An error has occurred; the feed is probably down. Try again later.
  • RSS last.fm (recent)

    • An error has occurred; the feed is probably down. Try again later.
  • Visitantes

  • Bitácora

  • del.icio.us