PHP Help!!
- Started
- Last post
- 14 Responses
- yarsrevenge
Does anyone know how to make a directory (on a server) on the fly with PHP?
- fusionpixel0
what do you mean?
- fusionpixel0
yeah, that is what i thought he wanted todo
also you can do a google
- Mimio0
http://www.php.net/manual/en/fun…
You'll probably need the previous link too.
- yarsrevenge0
Ive actually tried this but its not letting me make the directories... maybe it is in my permissions *shrugs*... anyone have past experience like this?
- cosmo0
i couldn't never get it to work either. i tried using this code, scroll down to "Creating and Removing Directories".
- Mimio0
Did you try using your website control panel to set the CHMOD on that files?
- yarsrevenge0
yes... no dados :(
- yarsrevenge0
I keep getting this error when I try to create a dir:
SAFE MODE Restriction in effect. The script whose uid is 651 is not allowed to access / owned by uid 0
Anyone know what's up with this?
- cosmo0
trying giving the file 777 premission.
- yarsrevenge0
yeah... done did that...
... but in all the mess... I got it now. Thanks dudes...
I added$_SERVER['DOCUMENT_ROOT'] to the front ... needed full path
- cosmo0
swwet.
- Mimio0
Turn safemode off in your PHP config. If you can't do it yourself, tell you hosting provider.
- yarsrevenge0
Will do... Thanks Mimio and Co.