Ask about general coding issues or problems here.
3 posts • Page 1 of 1
Hello. How would I take the name of an uploaded file (variable is $file), and remove the extension (either .8xp or .zip)??? Also, how would I take that new variable, and make a directory with that new name??? Thanks.
there are several way you can do that. an easy way that I do it is to explode the name by '.' and use mkdir() to create a new directory.
Code: Select all
$filename_array = explode('.',$filename);
$directory_name = $filename_array;
Who is online
Users browsing this forum: No registered users and 4 guests