Code: Select all
$file = fopen("./$l/index.php",'x');Code: Select all
$file = fopen("./".$l."/index.php",'x');Moderator: General Moderators
Code: Select all
$file = fopen("./$l/index.php",'x');Code: Select all
$file = fopen("./".$l."/index.php",'x');Whay you dont use fwrite and make "w+" for writing, that function will make your file. If you don't have created directory first use mkdir, after this fwrite.I'm calling the above function, wanting to create a file, that does not exist already.