• 共有源码:358137
  • 本周上传:0
  • 本周下载:37021
  • 共有程序员:2053326
  • 今日加入:715

热门源码下载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.

标签:

蚁群算法基本原理,改进蚁群算法等的详尽资料,很全面!

蚁群算法基本原理,改进蚁群算法等的详尽资料,很全面!-The basic principles of ant colony algorithm to improve the ant colony algorithm, such as detailed information, very comprehensive!

标签:

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

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

标签: matlab

优秀程序员TOP5 更多

mlmxs 自由职业者

c#,JS,新手,其它都不会,比较初级,目前学习中,学习C#三年,自学,英文差

iptvphone 北京 移动开发 Android 正常工作

android framework/app开发 android 从手机做起,现在做车机

武汉天宇信息系统有限公司 系统工程师 湖北武汉 后端开发 Java 正常工作

从事Java开发多年,对技术比较赶兴趣,会一直做软件方面的工作

gaoying19890406 北京 移动开发 HTML5 正常工作

我的职业是北京科技公司的程序员,主要从事手机游戏代码的研发,也会参与游戏软件程序的调试。

北京数浩科技有限公司 软件开发工程师 河南郑州 DBA Oracle 正常工作

毕业后,本人从事Oracle数据库方面工作。从事银行相关业务。

合作伙伴更多