|
-
Nov 19th, 2005, 05:21 AM
#1
Thread Starter
Addicted Member
[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.....
-
Nov 19th, 2005, 05:23 AM
#2
Thread Starter
Addicted Member
Re: Create new Directory and index.php when i press button
or a framed redirection will be great...
-
Nov 20th, 2005, 06:28 AM
#3
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.
-
Nov 21st, 2005, 06:28 AM
#4
Hyperactive Member
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.
-
Nov 27th, 2005, 05:24 AM
#5
Thread Starter
Addicted Member
Re: Create new Directory and index.php when i press button
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|