Autor Zpráva
Trixer
Profil
Umi PHP udelat na servru slozku ? Nikde sem to nenasel :(
WanTo
Profil
Jistě. Funkce mkdir("název_složky").
Trixer
Profil
Dik to se moc hodi:) asi sem to prehlid hledal sem neco jako createdir a vono je to make :)
Leo
Profil
Samozrejme k tomu musi mit vas PHP skript patricne opravneni. Leo
Retal
Profil
V případě, že je na serveru zapnutý safe mod, nebudeš mít možnost manipulovat s obsahem adresáře.

Beware that when in safe mode, mkdir creates folders with apache's UID, though the files you create in them are of your script's UID (usually the same as your FTP uid).

What this means is that if you create a folder, you won't be able to remove it, nor to remove any of the files you've created in it (because those operations require the UID to be the same).

Ideally mkdir should create the folder with the script's UID, but this has already been discussed and will not be fixed in the near future.

In the meantime, I would advice NOT to user mkdir in safe mode, as you may end up with folders you can't remove/use.


Viz.
Toto téma je uzamčeno. Odpověď nelze zaslat.

0