Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/07/2011, 07:15
Avatar de repara2
repara2
 
Fecha de Ingreso: septiembre-2010
Ubicación: München
Mensajes: 2.445
Antigüedad: 13 años, 7 meses
Puntos: 331
Respuesta: Problemas con la creacion de una carpeta

Por un lado:

Código PHP:
Ver original
  1. <?php  
  2.  
  3. ini_set("display_errors", 1);
  4. ##############################################################  
  5. ## makedir - andrew heebner - [email protected] - 10/03/1999 ##  
  6. ## ##  
  7. ## name this file - tests.php3 ##  
  8. ##############################################################  
  9.  
  10. // start main makedir function  
  11. if ($makedir == "makedir") {  
  12. $content = "$direct";  
  13. $dirmake = mkdir("$content", 0777);  
  14.  
  15. // display link to directory after making it  
  16. print "<center>\n";  
  17. print "<a href=\"$content\">click here to view your new directory</a>\n";  
  18. print "</center>\n";  
  19.  
  20. }  
  21.  
  22. // main form to input information  
  23. print "<form action=\"tests.php?action=direct\">\n";  
  24. print "<input type=\"text\" name=\"direct\" size=\"15\">\n";  
  25. print "<br>\n";  
  26. print "<input type=\"submit\" name=\"makedir\" value=\"makedir\">\n";  
  27. print "</form>\n";  
  28.  
  29. ?>

Por el otro, en tu cliente FTP, botón de la derecha sobre el directorio que estés trabajando, permisos... comprueba que son 777 o lo que sea que hayas indicado tú.
Lo más probable es que el proceso que ejecuta PHP no tiene permisos para esta operación.
Salu2
__________________
Fere libenter homines, id quod volunt, credunt.