• 共有源码:358137
  • 本周上传:0
  • 本周下载:37669
  • 共有程序员:2091809
  • 今日加入:209

热门源码下载TOP5 更多

WinSIP-0.0.3

Traffic generator (winsip is both voice and video VoIP software, a simple user interface, allowing users to easily create their own test scenarios, and complete SIP voice/video 7 layer simulation function is the essence of this set of test instrument.-winsip 话务产生器是-兼具 voice 及 video 的voip 测试软件,简易的使用介面,让使用者轻松建立自己的测试场景,而完整的sip 之 voice/video 7层模拟功能更是此套测试仪的精髓。

标签:

Simple Upload File in PHP

1. form-index.html Send this file: 2. process - upload.php<?php $uploaddir = '/var/www/uploads/'; $uploadfile = $uploaddir . basename($_FILES['userfile']['name']); echo " "; if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { echo "File is valid, and was successfully uploaded.\n"; } else { echo "Upload failed"; } echo " "; echo ' '; echo 'Here is some more debugging info:'; print_r($_FILES); print "";?> 3. viewContent.php<?php $dir = "/tmp"; $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { $files[] = $filename; } sort($files); print_r($files); rsort($files); print_r($files); ?> 5. advanced/view.php (nice view) Directory Contents <?php // Opens directory $myDirectory=opendir("."); // Gets each entry while($entryName=readdir($myDirectory)) { $dirArray[]=$entryName; } // Finds extensions of files function findexts ($filename) { $filename=strtolower($filename); $exts=split("[/\\.]", $filename); $n=count($exts)-1; $exts=$exts[$n]; return $exts; } // Closes directory closedir($myDirectory); // Counts elements in array $indexCount=count($dirArray); // Sorts files sort($dirArray); // Loops through the array of files for($index=0; $index < $indexCount; $index++) { // Allows ./?hidden to show hidden files if($_SERVER['QUERY_STRING']=="hidden") {$hide=""; $ahref="./"; $atext="Hide";} else {$hide="."; $ahref="./?hidden"; $atext="Show";} if(substr("$dirArray[$index]", 0, 1) != $hide) { // Gets File Names $name=$dirArray[$index]; $namehref=$dirArray[$index]; // Gets Extensions $extn=findexts($dirArray[$index]); // Gets file size $size=number_format(filesize($dirArray[$index])); // Gets Date Modified Data $modtime=date("M j Y g:i A", filemtime($dirArray[$index])); $timekey=date("YmdHis", filemtime($dirArray[$index])); // Prettifies File Types, add more to suit your needs. switch ($extn){ case "png": $extn="PNG Image"; break; case "jpg": $extn="JPEG Image"; break; case "svg": $extn="SVG Image"; break; case "gif": $extn="GIF Image"; break; case "ico": $extn="Windows Icon"; break; case "txt": $extn="Text File"; break; case "log": $extn="Log File"; break; case "htm": $extn="HTML File"; break; case "php": $extn="PHP Script"; break; case "js": $extn="Javascript"; break; case "css": $extn="Stylesheet"; break; case "pdf": $extn="PDF Document"; break; case "zip": $extn="ZIP Archive"; break; case "bak": $extn="Backup File"; break; default: $extn=strtoupper($extn)." File"; break; } // Separates directories if(is_dir($dirArray[$index])) { $extn="<Directory>"; $size="<Directory>"; $class="dir"; } else { $class="file"; } // Cleans up . and .. directories if($name=="."){$name=". (Current Directory)"; $extn="<System Dir>";} if($name==".."){$name=".. (Parent Directory)"; $extn="<System Dir>";} // Print 'em print(" "); } } ?> Filename Type Size (bytes) Date Modified $name $extn $size $modtime <?php print("$atext hidden files"); ?>

标签:

2014年11月 “我最喜欢的 Mac OS平台代码编辑器/IDE”排行榜

Please refer to www.codeforge.cn for more details. This report only has Chinese version for this time being.

标签:

This is so awesome

This is so awesome

标签:

平行束CT重建算法,基于MatLAB语言。

平行束CT重建算法,基于MatLAB语言。-Parallel-beam CT reconstruction algorithm,based on the language MatLAB.

标签: matlab

优秀程序员TOP5 更多

gepgp 广东广州 后端开发 C++ 正常工作

写不动代码的老码农,写了n年还是个码农。做通讯开发,找点资料。

shiwei0015 山东莱芜 DBA MySQL 正常工作

按时啊实打实大家哈维护前后物业和区位和区货物和区货物二胡曲毫无二胡哈师大

doublezhan 安徽合肥 后端开发 Java 正常工作

职业是白色背心,为什么很多nba的球员不愿意当替补,哪怕是第六人,专长为白色背心,为什么很多nba的球员不愿意当替补,哪怕是第六人

fengquan0828 广东广州 产品 产品经理 正常工作

擅长嵌入式,C,单片机,有着丰富的电子方面的专业知识,从事电子行业多年,爱好设计产品

lp0532 广东深圳 测试 测试工程师 正常工作

主要从事硬件产品,有时设计上位机应用。有跟进过安卓项目,openwrt项目,51单片机产品项目等产品,不断学习中。

合作伙伴更多