lectura de ficheros en php

0

Por admin | para la categoría de php | noticia del 16-06-2009

Php como muchos otros lenguajes permite la lectura de ficheros, con muchas similitudes a c++

Código de fichero lecturafichero.html este formulario se conecta a un script de php encargado de leer el fichero,. los name del formulario son las las variables que se van a pasar por método post al script de php para recogerlas
mediante $_post['variable']

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 
<style type="text/css">
 
  .formulario { width:600px; margin-left:auto; margin-right:auto; }
 
  h1 { text-align:center; }
 
  .botones { margin-left:100px; margin-top:50px; }
 
</style>
 
<body>
 
 <div class="formulario">
 
 <h1> Formulario Fichero </h1>
 <form action="lecturafichero.php" method="post">
 
 <label>Nombre fichero Texto</label>
 
 <input type="text" name="fichero" value="" size="20" />
 
 <div class="botones">
 <input type="submit" value="enviar"/>
 
 &nbsp;
 
 <input type="reset" value="borrar" />
 
 </div>
 
 </form>
 
 </div>
 
</body>

Continúa leyendo … »