本文整理汇总了PHP中UploadFile::remove方法的典型用法代码示例。如果您正苦于以下问题:PHP UploadFile::remove方法的具体用法?PHP UploadFile::remove怎么用?PHP UploadFile::remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UploadFile
的用法示例。
在下文中一共展示了UploadFile::remove方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: browser
//.........这里部分代码省略.........
<div class="form-group has-feedback">
<label for="dbFile" class="col-sm-2 control-label">Wybierz plik z danymi</label>
<div class="col-lg-10">
<div class="input-group">
<span class="input-group-btn">
<span class="btn btn-gray btn-file ">
Browse <input type="file" name="fileInput" accept="*.cvs">
</span>
</span>
<input type="text" class="form-control" disabled id="upload-label" value="" placeholder="Wybierz plik..." />
</div><!-- /input-group -->
</div><!-- /.col-lg-6 -->
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<button type="submite" name="submit" class="btn btn-md btn-gray btn-block container">Wyślij</button>
</div>
</div>
</form>
</div>
</div>
<script src="./js/uploads.js"></script>
';
require_once './include/class.uploadfile.php';
if (isset($_POST['submit']) && ($_POST['submit'] = 1)) {
$file = new UploadFile('./uploads');
$file->startUplod();
require_once './include/class.importtodb.php';
$importCsv = new ImportToDb();
$importCsv->import('mail_data', $file->getFileSaveFolder() . '/' . $file->getFileName());
echo '<script>$(\'#alert-status\').css("display","inherit")</script>';
$file->remove();
}
break;
case 'rozpocznij-kampanie':
echo ' <!-- Page Heading -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
Rozpocznij Kampanie
<small>Rozpocznij Wysyłanie Maili</small>
</h1>
<ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> <a href="./">Panel Główny</a>
</li>
<li class="active">
<i class="fa fa-fw fa-cog"></i> Rozpocznij Kampanie
</li>
</ol>
</div>
</div>
<!-- /.row -->
';
require './include/send-layout.php';
echo '<script src="./js/ajax.send.js"></script>';
if (isset($_POST['send']) && ($_POST['send'] = 1)) {
echo 'odebrano';
}
break;
/* case 'logout':
logout();
break;*/
/* case 'logout':
logout();
break;*/
default:
echo ' <!-- Page Heading -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
404
<small>Nie odnaleziono strony!</small>
</h1>
<ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> <a href="./">Panel Główny</a>
</li>
<li class="active">
<i class="fa fa-fw fa-file""></i> 404
</li>
</ol>
</div>
</div>
<!-- /.row -->
';
break;
}
}