-
- CommentAuthorconartistdesigns
- CommentTimeJun 1st 2008
So a while back i started working on a blogging software so to say and i stopped working on it because i couldn't find a solution to a problem. I figured ou the problem but now i have others. I have the registration script almost complete. I was testing it out and this script creates a directory of the persons blog title. so not i have blogbrighter.com/connor and well as others for testing. I wanted to delete them but my server wont let me! I tried changing the permissions so i could delete them but i cant do that either. I dont know what to do. thanks. I have tried this on 2 different servers. -
- CommentAuthorMike Weiss
- CommentTimeJun 1st 2008
You probably aren't the owner. The script might run as root and you might not be logged in under that user. -
- CommentAuthorconartistdesigns
- CommentTimeJun 1st 2008
i can change the permissions for any other folder just not ones created by my php script -
- CommentAuthorfernbap
- CommentTimeJun 1st 2008
because your php script is the owner of those folders. You have to write a php script to delete or change their permissions -
- CommentAuthorconartistdesigns
- CommentTimeJun 1st 2008
thats what i just thought of thanks. so if i include in the script for the directories to be 0777 i will be able to delete them? -
- CommentAuthorfernbap
- CommentTimeJun 1st 2008
yes -
- CommentAuthorconartistdesigns
- CommentTimeJun 1st 2008
what's wrong with this remove script? the directories are: 1, 12, 123, 1234
<?php
$1 = '1';
$12 = '12';
$123 = '123';
$1234 = '1234';
rmdir($1);
rmdir($12);
rmdir($123);
rmdir($1234);
?> -
-
CommentAuthorChristopher
- CommentTimeJun 1st 2008
VariablesBasics
Variables in PHP are represented by a dollar sign followed by the name of the variable. The variable name is case-sensitive.
Variable names follow the same rules as other labels in PHP. A valid variable name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. -
-
- CommentAuthorconartistdesigns
- CommentTimeJun 1st 2008
I got it working already. thanks though everybody
1 to 9 of 9
