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 ...
- 11:47
- 浏览 (141)
- 评论 (0)
- 分类: 总结 of mine
SELECT * FROM pet WHERE name REGEXP "^.{5}$";
- 11:44
- 浏览 (64)
- 评论 (0)
- 分类: 总结 of mine
<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 ...
- 11:42
- 浏览 (78)
- 评论 (0)
- 分类: 总结 of mine
<?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 ...
- 11:38
- 浏览 (97)
- 评论 (2)
- 分类: 总结 of mine
<?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>< ...
- 11:32
- 浏览 (95)
- 评论 (0)
- 分类: 总结 of mine
function convert($text)
{
$text=htmlspecialchars($text);
$text=nl2br($text);
$text=stripslashes($text);
return $text;
}
- 19:51
- 浏览 (212)
- 评论 (1)
- 分类: 总结 of mine
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))
{
...
- 21:09
- 浏览 (86)
- 评论 (0)
- 分类: 总结 of mine
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
...
- 浏览: 4453 次
- 性别:

- 来自: 江南

- 详细资料
搜索本博客
最新评论
-
按指定大小缩小图片(俺用 ...
:hu:
-- by spamer -
按指定大小缩小图片(俺用 ...
<BR><table border=1><tr><td> ...
-- by spamer -
转换html特殊字符。。。\n ...
good article
-- by spamer






评论排行榜