Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/12/2004, 12:23
Avatar de TheJez
TheJez
 
Fecha de Ingreso: agosto-2004
Ubicación: México - Distrito Federal
Mensajes: 176
Antigüedad: 19 años, 8 meses
Puntos: 0
Ayuda php.ini

Hola, e logrado instalar php en mi iis, pero yo no se php y e buscado varios scripts en la web y al momento de ponerlos en mi servidor me hace errores, por ejemplo hace mucho tiempo tenia mi sitio web almacenado en lycos y ahi utilizaba un script para contar la visitas.

<?php
$ar = "visitas.txt";
$fp = fopen($ar,"r");
$visitas = fgets($fp, 26);
fclose($fp);
$visitas = $visitas+1;
$fp = fopen($ar,"w+");
fwrite($fp, $visitas, 26);
fclose($fp);
?>

el cual me funcionaba perfectamente, pero ahora en mi servidor con php me hace el siguiente error

Warning: fopen(visitas.txt): failed to open stream: Permission denied in d:\inetpub\wwwroot\visitas.php on line 21

Warning: fwrite(): supplied argument is not a valid stream resource in d:\inetpub\wwwroot\visitas.php on line 22

Warning: fclose(): supplied argument is not a valid stream resource in d:\inetpub\wwwroot\visitas.php on line 23
1

y pues no a funcionado ningun script en php mas que uno para mostrar la ip y otro para mostrar la fecha, porfavor nesecito ayuda :S