The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Okay, my ultimate goal here is when a user submits a form, it's going to put a new index.php file into the specified directory, which would redirect it to a page I defined. Is there any way to do this?
|
|
#2
|
|||
|
|||
|
Yes, it's possible but you need way more information than just what you provided. With what you're trying to do you might be able to use mod_rewrite and just one file. It all depends on what you're trying to do though.
|
|
#3
|
||||
|
||||
|
I seen your post about mkdir so this may be what your after
Code:
$filecontent="Code For File To Insert";
mkdir('/home/path/public_html/'.$username, 0777);
if ($fp = fopen("/home/path/public_html/".$username."/index.php", "w")) {
fwrite($fp, $filecontent);
chmod("/home/path/public_html/".$username."/index.php", 0755);
fclose($fp);
}
|
|
#4
|
||||
|
||||
|
Quote:
|
|
#5
|
||||
|
||||
|
Quote:
|
![]() |
|
|