PHP 计算页面执行时间 <?php class runtime {     var $StartTime = 0;     var $StopTime = 0;       function get_microtime()     {         list($usec, $sec) = explode(' ', microtime());   & ...
  • 11:54
  • 浏览 (61)
  • 评论 (0)
JavaScript得到当前窗口的所有大小值 2008-1-21 14:09 Monday   var     s   =   "";    s   +=   "\r\n网页可见区域宽:"+   document.body.clientWidth;    s   +=   "\r\n网页可见区域高:&q ...
SELECT * FROM pet WHERE name REGEXP "^.{5}$";
<div id='xxxxx' style="border:1px solid #000000"> </div> <script type="text/javascript"> var settime=60; var i; var showthis; for(i=1;i<=settime;i++) { setTimeout("update("+i+")",i*1000); } function update ...
<?php $img = @imagecreatefromjpeg("images/logo/path.jpg"); if ($img) { $w=imagesx($img); #picture's width $h=imagesy($img); #picture's height ImageDestroy($img); } function image_changsize($w,$h,$image) { $change ...
<?php $queryString="abcd"; #$queryString="123abcde...xyz"; $link = mysql_connect('localhost', 'root', ''); $db_list = mysql_list_dbs($link); echo "<table border=1>"; echo "<tr><th>database</th><th>table</th>< ...
function convert($text) { $text=htmlspecialchars($text); $text=nl2br($text); $text=stripslashes($text); return $text; }
2008-04-07

adsfadsf

function conv($text) { $text=htmlspecialchars($text); $text=nl2br($text); return $text; }
  • 19:49
  • 浏览 (71)
  • 评论 (0)
<?php function readFolder($dir) { #--------$dir must be end with '/' #--------read the filename from $dir by recursion #--------make sure you have the permission to access to $dir #--------time:20080331---author:hu $dirRes=@opendir($dir); while ($fileName=@readdir($dirRes)) { ...
Get Involved * java-net Project * Request a Project * Project Help Wanted Ads * Publicize your Project * Submit Content * Site Help Project tools * Project home * Announcements * Discussion forums * Mailing lists ...