
No me esta corriendo el código php
Publicado por jhoel (4 intervenciones) el 15/04/2016 06:06:17
buenas alguien me podría decir que estoy asiendo mal aquí me esta creando un archivo en la rais en donde se encuentra el index con los datos pero sin nombre solo un 0 y dentro del archivo los datos
este es el código
este es el código
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$path = "/pg/"+$archivo;
if(file_exists($path))
{
$abre = fopen($path, "r");
$total = fread($abre, filesize($path));
fclose($abre);
$abre = fopen($path, "w");
$total = $total + 1;
$grabar = fwrite($abre, $total);
fclose($abre);
}
else
{
$abre = fopen($path, "w");
$total = $total + 1;
$grabar = fwrite($abre, $total);
fclose($abre);
}
Valora esta pregunta


0