|
|
|
|
|
|
|
![]() |
#1 |
Certified Nice Person
|
Ownership/Permission issues
Is there a PHP function that allows one to create directories with a script that doesn't make them owned by the server? Or, is there a function that can successfuly delete directories that have been created by a PHP script instead of giving me the "Fuck You - You Suck/Don't Have Permission" error like rmdir?
__________________
Click here to purchase a bridge I'm selling. |
![]() |
![]() |
![]() |
#2 |
You can now put whatever you want in this space :)
|
edit: just noticed the rmdir part...
![]() Code:
<?php // Sets All Permissions chmod("mydirectory", 0777); ?>
__________________
Submit Your Freesites: Last edited by HC-Majick; 2006-07-20 at 05:32 PM.. |
![]() |
![]() |
![]() |
#3 |
Porn Blog Addict
|
![]() useless, I've always found it easier to have PHP use FTP. I've never had much luck any other way. If FTP extensions aren't installed with the version of PHP on your server, have your system admin do that first.
This function can be used to make a directory, the values you need to replace in this are $server, $user, and $pass. The first argument needs to be the absolute path of where you want to create your directory, the second is the name of the new directory. PHP Code:
|
![]() |
![]() |
![]() |
#4 |
Certified Nice Person
|
Thank you Beaver Bob. I'll give that try. Now all I have to do is remember what I was trying to do when I asked the question.
![]()
__________________
Click here to purchase a bridge I'm selling. |
![]() |
![]() |
![]() |
#5 |
Porn Blog Addict
|
hope it helps you out
![]() |
![]() |
![]() |
![]() |
|
|