本文整理汇总了PHP中FileHandler::prepare_user_folder方法的典型用法代码示例。如果您正苦于以下问题:PHP FileHandler::prepare_user_folder方法的具体用法?PHP FileHandler::prepare_user_folder怎么用?PHP FileHandler::prepare_user_folder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FileHandler
的用法示例。
在下文中一共展示了FileHandler::prepare_user_folder方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: FileHandler
} else {
$current .= "Files added, but no with POST!!\n";
file_put_contents($file, $current);
}
*/
/*$current .= "Total files uploaded " . count($_FILES) . "\n";
file_put_contents($file, $current);
$tmpstr = print_r($_FILES, true);
$current .= "Test filename " . $tmpstr . "\n";
file_put_contents($file, $current);
*/
include_once "config.php";
include_once "filehandler.class.php";
// Step 1: Prepare first the structure of folders
$filehandler = new FileHandler($ses_id);
$folder_status = $filehandler->prepare_user_folder();
//$current .= $folder_status . "\n";
//file_put_contents($file, $current);
if ($folder_status == "OK") {
$result = "";
$temp = explode(".", $_FILES["morphology"]["name"]);
$path_parts = pathinfo($_FILES["morphology"]["name"]);
$extension = end($temp);
/*
$current .= "Extension is " . $extension . "\n";
file_put_contents($file, $current);
$current .= "Path parts are " . $path_parts . "\n";
file_put_contents($file, $current);
$current .= "File error " . $_FILES["morphology"]["error"] . "\n";
file_put_contents($file, $current);
$current .= "Total files uploaded " . count($_FILES["morphology"]) . "\n";