Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/04/2008, 14:47
Avatar de almagropaco_
almagropaco_
 
Fecha de Ingreso: marzo-2008
Ubicación: Mar del Plata
Mensajes: 854
Antigüedad: 17 años
Puntos: 25
que esta mal en este codigo?

Código PHP:
<?php
$pvm 
getdate();
$archivo="libro.txt"#aquí para cambiar la ruta del archivo donde se guardan las entradas
$uusi="<table border=0 width=95% cellspacing=1><tr><td width=30%><b>nombre :</b></td><td width=70%> $nombre </td></tr><tr><td width=30%><b>Fecha : </b></td><td width=70%>$pvm[mday]-$pvm[mon]-$pvm[year]</td></tr><tr><td width=30%><b>E-mail :</b></td><td width=70%><a href='mailto:$email'><font color='000000'>$email</font></a></td></tr><tr><td width=30%><b>Web :</b></td><td width=70%><a href='http://$weburl' target='_blank'><font color='000000'>$nombreweb</font></a></td></tr><tr><td width=30%><b>Comentario :</b></td><td width=70%> $comentario </td></tr></table><hr width=70%>\n\n";
$fp=fopen($archivo"r+");
$vanha=fread($fpfilesize($archivo));
fseek($fp0);
fwrite($fp"${uusi}${vanha}");
fclose($fp);

print 
"<b>Gracias por firmar !</b><br>";
print 
"<a href=index.php>Regresar a principal.</a>";
?>

me tira todos estos errores:


Código PHP:
Warningfopen(libro.txt) [function.fopen]: failed to open streamPermission denied in /home/a9949290/public_html/firmar.php on line 5

Free Web Hosting

PHP Error Message

Warning
fread(): supplied argument is not a valid stream resource in /home/a9949290/public_html/firmar.php on line 6

Free Web Hosting

PHP Error Message

Warning
fseek(): supplied argument is not a valid stream resource in /home/a9949290/public_html/firmar.php on line 7

Free Web Hosting

PHP Error Message

Warning
fwrite(): supplied argument is not a valid stream resource in /home/a9949290/public_html/firmar.php on line 8

Free Web Hosting

PHP Error Message

Warning
fclose(): supplied argument is not a valid stream resource in /home/a9949290/public_html/firmar.php on line 9

Free Web Hosting
Gracias por firmar 
!
Regresar a principal