Results 1 to 5 of 5

Thread: [RESOLVED] Create new Directory and index.php when i press button

  1. #1

    Thread Starter
    Addicted Member mfurqan's Avatar
    Join Date
    Oct 2005
    Location
    Pakistan
    Posts
    176

    Resolved [RESOLVED] Create new Directory and index.php when i press button

    is it possible ?

    user enter his dir name name in forum and press button system will create a Directory ( not a subdomain ) as user typed and then index.php file in it with a little javascript redirection.....
    Muhammad Furqan Attari.

  2. #2

    Thread Starter
    Addicted Member mfurqan's Avatar
    Join Date
    Oct 2005
    Location
    Pakistan
    Posts
    176

    Re: Create new Directory and index.php when i press button

    or a framed redirection will be great...
    Muhammad Furqan Attari.

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Create new Directory and index.php when i press button

    It is possible, but you need a lot of permissions set on the server side, such as the permission to create directories and files. Unless you have control over the server, you ain't gonna get it.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  4. #4
    Hyperactive Member PlaGuE's Avatar
    Join Date
    Jun 2005
    Location
    in ur mind.
    Posts
    445

    Re: Create new Directory and index.php when i press button

    mkdir("/path/to/my/dir", 0700);
    http://ca3.php.net/manual/en/function.mkdir.php


    and.

    $file = 'example.txt';
    $newfile = 'example.txt.bak';

    if (!copy($file, $newfile)) {
    echo "failed to copy $file...\n";
    }
    http://ca3.php.net/manual/en/function.copy.php

    the rest is ... up to you.
    Without balance, there could only be chaos.
    Without chaos, there could be no balance.
    I live with karma. Eat with destiny. Dream of life without shackles....
    Yet. If life had no consequences, life could not exist, nor could it flourish.


    If at first you dont succeed.You're screwed.

    C++/Java NOOB.

    I aint a professional at PHP, but if i can help i will.

  5. #5

    Thread Starter
    Addicted Member mfurqan's Avatar
    Join Date
    Oct 2005
    Location
    Pakistan
    Posts
    176

    Re: Create new Directory and index.php when i press button

    thanks guyz....
    Muhammad Furqan Attari.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width