• 大小: 0.60M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-29
  • 标签: 摄像头  视频  php  录制  

资源简介

PHP Webcam Video Recorder

资源截图

代码片段和文件信息


//can setup a password below like ‘pass‘ instead of ‘‘ to only allow access like delete_all_uploads.php?password=pass
if ($_GET[‘password‘]!=‘‘) exit;

function deltree($path) {
  if (is_dir($path)) {
  if (version_compare(PHP_VERSION ‘5.0.0‘) < 0) {
$entries = array();
  if ($handle = opendir($path)) {
while (false !== ($file = readdir($handle))) $entries[] = $file;

closedir($handle);
  }
  } else {
$entries = @scandir($path);
if ($entries === false) $entries = array(); // just in case scandir fail...
  }

foreach ($entries as $entry) {
  if ($entry != ‘.‘ && $entry != ‘..‘) {
deltree($path.‘/‘.$entry);
  }
}

return @rmdir($path);
  } else {
  return @unlink($path);
  }
}

function cleanUp($dir $except

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-08-01 07:40  recorder_php\
     文件        1548  2012-05-30 21:57  recorder_php\delete_all_uploads.php
     文件         162  2009-10-27 01:34  recorder_php\finished.php
     文件         916  2012-06-05 23:19  recorder_php\flash_detect.php
     文件        3063  2011-10-05 17:02  recorder_php\flash_detect_min.js
     目录           0  2012-07-08 23:29  recorder_php\flv\
     文件         177  2010-10-30 09:47  recorder_php\flv\info.txt
     文件         731  2009-10-27 01:33  recorder_php\header.php
     文件         147  2010-12-07 15:48  recorder_php\inc.php
     文件         725  2011-07-27 16:17  recorder_php\incsan.php
     文件        3168  2014-03-07 00:58  recorder_php\index.php
     目录           0  2012-07-08 23:30  recorder_php\jwplayer\
     文件         127  2012-02-08 17:32  recorder_php\jwplayer\info.txt
     文件      154488  2012-02-01 13:58  recorder_php\jwplayer\jwplayer.js
     文件         302  2011-10-10 12:40  recorder_php\jwplayer\license.txt
     文件      113385  2012-02-01 13:58  recorder_php\jwplayer\player.swf
     文件        1161  2014-08-01 07:12  recorder_php\r_login.php
     文件         142  2009-11-11 02:00  recorder_php\r_logout.php
     文件         415  2012-03-12 00:43  recorder_php\r_snapshots.php
     文件        1419  2014-03-07 00:21  recorder_php\recorded.php
     文件        1894  2014-03-07 01:06  recorder_php\recorded_videos.php
     目录           0  2012-05-30 21:58  recorder_php\recordings\
     文件        1250  2014-03-07 00:24  recorder_php\settings.php
     目录           0  2014-02-26 18:19  recorder_php\snapshots\
     文件        1352  2009-09-14 23:05  recorder_php\snapshots\no_video.png
     文件        6328  2014-03-07 01:03  recorder_php\streamplay.php
     文件       27114  2013-08-01 07:51  recorder_php\streamplayer.swf
     目录           0  2014-05-22 06:54  recorder_php\strobe\
     文件        1528  2014-05-22 06:45  recorder_php\strobe\Modified-BSD-License.txt
     文件      253300  2011-09-01 01:22  recorder_php\strobe\StrobeMediaPlayback.swf
     目录           0  2012-07-08 23:29  recorder_php\templates\
............此处省略37个文件信息

评论

共有 条评论