eloy

3
UNIVERSIDAD TECNOLÓGICA DEL ESTADO DE ZACATECAS UNIDAD ACADÉMICA DE PINOS TECNOLOGÍAS DE LA INFORMACIÓN Y COMUNICACIÓN Materia DESARROLLO DE APLICACIONES II Tema MANEJO DE ARCHIVOS Nombre completo del Alumno: Jorge Ricardo Morales Martínez, Francisco Herrera Gómez Grado: 4 Grupo: B Nombre del Docente: I.EN Tic Eloy contreras Delira Lugar: Pinos, Zacatecas Fecha de entrega : 08 de Octubre 2013

Upload: jorge-morales-martinez

Post on 18-Jul-2015

726 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Eloy

UNIVERSIDAD TECNOLÓGICA DEL ESTADO DE ZACATECAS UNIDAD ACADÉMICA DE PINOS

TECNOLOGÍAS DE LA INFORMACIÓN Y COMUNICACIÓN

Materia

DESARROLLO DE APLICACIONES II

Tema

MANEJO DE ARCHIVOS

Nombre completo del Alumno: Jorge Ricardo Morales Martínez, Francisco Herrera Gómez

Grado: 4 Grupo: B Nombre del Docente: I.EN Tic Eloy contreras Delira Lugar: Pinos, Zacatecas

Fecha de entrega : 08 de Octubre 2013

Page 2: Eloy

UNIVERSIDAD TECNOLÓGICA DEL ESTADO DE ZACATECAS UNIDAD ACADÉMICA DE PINOS

TECNOLOGÍAS DE LA INFORMACIÓN Y COMUNICACIÓN

Escribir.php

<?php

$text=$_REQUEST ['textarea'];

$fp=fopen("instruccion.txt","a");

fputs ($fp, $text);

echo "$linea </br>";

fclose($fp);

?>

<script>

location.href="leer.php";

</script>

Leer.php

<?php

$fp=fopen("instruccion.txt","r");

while (!feof ($fp)){

$linea=fgets($fp);

echo "$linea <br/>";

}

fclose ($fp);

?>

Formulario.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Page 3: Eloy

UNIVERSIDAD TECNOLÓGICA DEL ESTADO DE ZACATECAS UNIDAD ACADÉMICA DE PINOS

TECNOLOGÍAS DE LA INFORMACIÓN Y COMUNICACIÓN

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Documento sin t&iacute;tulo</title>

</head>

<body>

<form id="form1" name="form1" method="post" action="Escribir.php">

<label>

<textarea name="textarea"></textarea>

</label>

<label>

<input type="submit" name="Submit" value="escribir" />

</label>

</form>

</body>

</html>

Interfaz Del Formulario