[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.....
Re: Create new Directory and index.php when i press button
or a framed redirection will be great...
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.
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.
Re: Create new Directory and index.php when i press button