Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/02/2008, 13:44
Avatar de pato12
pato12
 
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 19 años, 1 mes
Puntos: 101
Re: Como ago esto??

Listo, problema resolvido.
Código PHP:
<? 
  $archivo 
="contador.txt"; 
  
$abre = fopen($archivo, "a+"); 
  
$total = fread($abre, filesize($archivo));
  
$code = $total;
    
fclose($abre); 
    
  
$abre = fopen($archivo, "w"); 
  
$totala = $total + 1; 
  
$grabar = fwrite($abre, $totala); 
  
fclose($abre); 
  
  
$titul = $_POST['titu'];
  
$descripcio = $_POST['des'];
  
$lin = $_POST['lin'];
  
$shtml="<?
\$titulo = '$titul';
\$descripcion = '$descripcio';
\$link = '$lin ';
\$numero = $code;
?>"
; 
  
$sfile="videos/$code.php";
  
$fp=@fopen($sfile,"a+");
  
$result = fwrite($fp,$shtml); 
    
fclose($fp);
    echo 
"El video fue colocado correctamente.";
?>
__________________
Half Music - www.halfmusic.com