Ask a Question related to PHP Development, Design and Development.
-
Jerry #1
PLEASE HELP: How to create files and folders running my script????
Hi All:
Is there any way I can get my script to be able to create and CHMOD
folders and files???
I always get the following error:
mkdir(TESTDIR): Permission denied in /usr/www/users...
Is there a way I can enable the script to do all that by placing a
..htaccess file which contains some permissive directives?
Thanks
Jerry
Jerry Guest
-
Accessing files/folders inside other application folders
How can I have an asc file from one application read text files in another applications directory? I have multiple applications creating text... -
Create folders
http://www.tutorial-web.com/asp/fso/filesystem.asp sorry, it's not md and cd... you need to use FSO. -
Create folders
create the folder w/ asp... When you call the recordset.addnew code you can do something like <% licensePlate = request.form('licensePlate')... -
shell script copies folders, but not files
meanstoanend00@yahoo.com (jamie) wrote in message news:<b83b8ff8.0308291009.2b8f762f@posting.google.com>... That seems very strange. I just tried... -
Making folders and sub-folders and files NOT read-only
I select a folder. I right click my mouse on that folder and select properties. I uncheck the Read Only checkbox. I click on Apply. I check the... -
James Smith #2
Re: PLEASE HELP: How to create files and folders running my script????
Jerry wrote:
mkdir(TESTDIR, 777); * replace 777 with the correct permissions.>Hi All:
>
>Is there any way I can get my script to be able to create and CHMOD
>folders and files???
>I always get the following error:
>
>mkdir(TESTDIR): Permission denied in /usr/www/users...
>
>Is there a way I can enable the script to do all that by placing a
>.htaccess file which contains some permissive directives?
>
>Thanks
>Jerry
>
>
[url]http://www.php.net/manual/en/function.mkdir.php[/url]
I think your problem would be more to do with the permissions you are trying to create the folder in. If it's Apache on linux, the user "nobody" will need correct permissions, to be able to write to the directory. You will need to do a CHMOD on the directory. .htaccess file will not fix this as pache doesn't even have the right to write.
J.
James Smith Guest
-
Chris Hope #3
Re: PLEASE HELP: How to create files and folders running my script????
Jerry wrote:
You need to change the permissions of the directory that you want to make> Is there any way I can get my script to be able to create and CHMOD
> folders and files???
> I always get the following error:
>
> mkdir(TESTDIR): Permission denied in /usr/www/users...
>
> Is there a way I can enable the script to do all that by placing a
> .htaccess file which contains some permissive directives?
files or directories in to be writeable by all users (ie 0777 or rwxrxwrxw)
--
Chris Hope - The Electric Toolbox - [url]http://www.electrictoolbox.com/[/url]
Chris Hope Guest



Reply With Quote

