Código PHP:
<?php
$fichero =$tipo . "/total.txt";
$open= fopen ($fichero,'rw');
$leer= fgets ($open);
$leer += 1;
fwrite ($open,$leer);
fclose ($open);
$file= $tipo.'/'.$leer.".txt";
$plus= fopen($file,'a');
fwrite ($plus,$name);
fwrite ($plus,$tipo);
fwrite ($plus,$idioma);
fwrite ($plus,$des);
fwrite ($plus,$elink);
fwrite ($plus,$apodo);
fclose($plus);
?>
Código PHP:
<?php
chdir ('/'.$tipo);
$fichero ="total.txt";
$open= fopen ($fichero,'rw');
$leer= fgets ($open);
$leer += 1;
fwrite ($open,$leer);
fclose ($open);
$file= $leer.".txt";
$plus= fopen($file,'a');
fwrite ($plus,$name);
fwrite ($plus,$tipo);
fwrite ($plus,$idioma);
fwrite ($plus,$des);
fwrite ($plus,$elink);
fwrite ($plus,$apodo);
fclose($plus);
?>
chdir("/programas");
pero tampoco funciona