php ËõÂÔͼº¯Êý
function getThumbs($filename,$savepath,$d_w,$d_h,$b,$img_name)
{
if($b)
{
$photourl = $savepath."/".$img_name;
}else
{
$photourl = $savepath;
}
$width = $d_w;
$height= $d_h;
list($width_orig, $height_orig,$image_type) = getimagesize($filename);
$extends = $image_type == 1 ? "gif" : "jpg";
$x = 0;$y = 0;
if($d_w==$d_h)
{
if ($width && ($width_orig < $height_orig))
{
$height = ($width / $width_orig) * $height_orig;
$y = round(($height-$d_h)/2);
} else
{
$width = ($height / $height_orig) * $width_orig;
$x = round(($width-$d_w)/2);
}
}else
{
if($d_h>$d_w)
{
$width = ($height / $height_orig) * $width_orig;
// $x = round(($width-$d_w)/2);
}else
{
$height = ($wi
Ïà¹ØÎĵµ£º
ÔÎijö×Ô£º http://www.hly1980.cn/archives/118.html
ÐèÒª·ÖÎöÈÕ־ʱtailÃüÁî¿ÉÊdz£ÐèÒªÓõ½µÄ£¬¿ÉϧphpÄÚ²¢Ã»ÓÐÌṩÀàËƵķ½·¨£¬ËùÒÔ×Ô¼ºÊµÏÖÁËÒ»¸ö¡£
µ÷Ó÷½Ê½Îªtail($filename, $rows)£¬Ã¿´ÎĬÈ϶ÁÈ¡1024×Ö½Ú×÷Ϊ»º³å£¬·µ»Ø×Ö·û´®Êý×飬ÎļþβµÄÐп¿Ç°£¨ÕâÀïµÄÐÐΪºÍtailÓÐËùÇø±ð£¬Èç¹ûÐèÒªÒÔÔÐò·µ»ØµÄÇë×ÔÐе÷ÓÃarr ......
1.È¡µÃµ±Ç°ÄÚ´æʹÓôóС£ºmemory_get_usage()
2.¼ÆËãÖ´ÐÐʱ¼ä£ºmicrotime(true)
3.ÉèÖÃscriptÖ´ÐÐʱ¼äÏÞÖÆset_time_limit
4.ÉèÖÃÄÚ´æÏÞÖÆini_set("memory_limit","256M");
3.´ÓÔ¶³ÌÏÂÔØÎļþµÄÁ½¸ö·½·¨£º
$contents=file_get_contents("http://www.govtrack.us/data/us/gis/zip4dist-prefix.t ......
×î½ü¹¤×÷ÖÐÓöµ½Ò»¸öÍ·ÌÛµÄÎÊÌâ:phpÖе÷ÓÃÒ»¸ö´æ´¢¹ý³Ì(Òª¸´ÖÆN¶àÊý¾ÝµÄ.),ÓÉÓڴ˹ý³ÌÖ´ÐÐʱ¼äºÜ³¤.µ¼ÖÂphp×ÜÊdz¬Ê±´íÎó:
Service Temporarily Unavailable
The
server is temporarily unable to service your request due to maintenance downtime
or capacity problems
.
Please
try
again
later
.
ÎÊÌ ......
×òÌì»Ø¼ÒÀ´£¬½ñÌì´ÖÂÔ¿´ÁËһϡ¶´óµÀPHP¡·£¬ÊéºÜϸ£¬C++µÄÒ²ÊÇ´ó¸Å¿´ÁËһϣ¬×ÜÖ®£¬ÊÕ»ñ²»´ó£¬Ò²ÐíµÚÒ»ÌìµÄÔµ¹Ê°É¡£
±ØÐëÅųý¸ÉÈÅ£¬ËÀÐÄÌ£µØµÄѧϰÁË£¬¸ßЧµÄÍê³Éº®¼ÙµÄÈÎÎñ£¬PHPºÍC++»ù±¾¹¦£¬VC++£¬MFC£¬¿ÉÄܵĻ°£¬·ÖÎöÒ»ÏÂDizcussÒ²ÊDz»´íµÄ£¬Ñø³ÉÁ¼ºÃµÄ±à³Ì·ç¸ñºÍÏ°¹ß¡£Ï°ëÄ꣬ ......