Back Home

Open Designs

Community. Driven.

  1.  
    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.
  2.  
    You probably aren't the owner. The script might run as root and you might not be logged in under that user.
  3.  
    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
  4.  
    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
  5.  
    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);
    ?>
  6.  
    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.
  7.  
    I got it working already. thanks though everybody