代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
PHP
】
压缩成ZIP类
作者:
Dezai.CN
/ 发布于
2011/6/11
/
891
<div>DELIMITER $ <span style="color: rgb(153,51,51); font-weight: bold">DROP FUNCTION</span> IF <span style="color: rgb(153,51,51); font-weight: bold">EXISTS</span> zip_deg2rad$ <span style="color: rgb(153,51,51); font-weight: bold">DROP FUNCTION</span> IF <span style="color: rgb(153,51,51); font-weight: bold">EXISTS</span> zip_gcd$ <span style="color: rgb(153,51,51); font-weight: bold">DROP FUNCTION</span> IF <span style="color: rgb(153,51,51); font-weight: bold">EXISTS</span> zip_distance$ <span style="color: rgb(153,51,51); font-weight: bold">DROP PROCEDURE</span> IF <span style="color: rgb(153,51,51); font-weight: bold">EXISTS</span> zip_radius$ <span style="color: rgb(153,51,51); font-weight: bold">CREATE FUNCTION</span> zip_deg2rad<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(153,51,51); font-weight: bold">DEGREES</span> <span style="color: rgb(170,153,51); font-weight: bold">DOUBLE</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(153,51,51); font-weight: bold">RETURNS</span> <span style="color: rgb(170,153,51); font-weight: bold">DOUBLE</span> <span style="color: rgb(153,51,51); font-weight: bold">BEGIN</span> RETURN <span style="color: rgb(153,51,51); font-weight: bold">DEGREES</span> / <span style="color: rgb(102,204,102)">(</span><span style="color: rgb(204,102,204)">180</span> / <span style="color: rgb(153,51,51); font-weight: bold">PI</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span><span style="color: rgb(204,102,204)">+0.000000000000000</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(153,51,51); font-weight: bold">END</span>$ <span style="color: rgb(153,51,51); font-weight: bold">CREATE FUNCTION</span> zip_gcd<span style="color: rgb(102,204,102)">(</span>type <span style="color: rgb(170,153,51); font-weight: bold">ENUM</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(255,0,0)">'M'</span>, <span style="color: rgb(255,0,0)">'N'</span>, <span style="color: rgb(255,0,0)">'K'</span><span style="color: rgb(102,204,102)">)</span>, src_lat <span style="color: rgb(170,153,51); font-weight: bold">DOUBLE</span>, src_long <span style="color: rgb(170,153,51); font-weight: bold">DOUBLE</span>, dst_lat <span style="color: rgb(170,153,51); font-weight: bold">DOUBLE</span>, dst_long <span style="color: rgb(170,153,51); font-weight: bold">DOUBLE</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(153,51,51); font-weight: bold">RETURNS</span> <span style="color: rgb(170,153,51); font-weight: bold">DOUBLE</span> <span style="color: rgb(153,51,51); font-weight: bold">BEGIN</span> <span style="color: rgb(153,51,51); font-weight: bold">DECLARE</span> temp <span style="color: rgb(170,153,51); font-weight: bold">DOUBLE</span>; <span style="color: rgb(153,51,51); font-weight: bold">DECLARE</span> STATUTE_MILES <span style="color: rgb(170,153,51); font-weight: bold">DECIMAL</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(204,102,204)">5</span>,<span style="color: rgb(204,102,204)">1</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(153,51,51); font-weight: bold">DECLARE</span> NAUTICAL_MILES <span style="color: rgb(170,153,51); font-weight: bold">DECIMAL</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(204,102,204)">9</span>,<span style="color: rgb(204,102,204)">5</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(153,51,51); font-weight: bold">DECLARE</span> KILOMETERS <span style="color: rgb(170,153,51); font-weight: bold">DECIMAL</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(204,102,204)">5</span>,<span style="color: rgb(204,102,204)">1</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(153,51,51); font-weight: bold">SET</span> STATUTE_MILES = <span style="color: rgb(204,102,204)">3963.0</span>; <span style="color: rgb(153,51,51); font-weight: bold">SET</span> NAUTICAL_MILES = <span style="color: rgb(204,102,204)">3437.74677</span>; <span style="color: rgb(153,51,51); font-weight: bold">SET</span> KILOMETERS = <span style="color: rgb(204,102,204)">6378.7</span>; <span style="color: rgb(153,51,51); font-weight: bold">SET</span> src_lat = zip_deg2rad<span style="color: rgb(102,204,102)">(</span>src_lat<span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(153,51,51); font-weight: bold">SET</span> src_long = zip_deg2rad<span style="color: rgb(102,204,102)">(</span>src_long<span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(153,51,51); font-weight: bold">SET</span> dst_lat = zip_deg2rad<span style="color: rgb(102,204,102)">(</span>dst_lat<span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(153,51,51); font-weight: bold">SET</span> dst_long = zip_deg2rad<span style="color: rgb(102,204,102)">(</span>dst_long<span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(153,51,51); font-weight: bold">SET</span> temp = <span style="color: rgb(153,51,51); font-weight: bold">ACOS</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(153,51,51); font-weight: bold">SIN</span><span style="color: rgb(102,204,102)">(</span>src_lat<span style="color: rgb(102,204,102)">)</span> * <span style="color: rgb(153,51,51); font-weight: bold">SIN</span><span style="color: rgb(102,204,102)">(</span>dst_lat<span style="color: rgb(102,204,102)">)</span> + <span style="color: rgb(153,51,51); font-weight: bold">COS</span><span style="color: rgb(102,204,102)">(</span>src_lat<span style="color: rgb(102,204,102)">)</span> * <span style="color: rgb(153,51,51); font-weight: bold">COS</span><span style="color: rgb(102,204,102)">(</span>dst_lat<span style="color: rgb(102,204,102)">)</span> * <span style="color: rgb(153,51,51); font-weight: bold">COS</span><span style="color: rgb(102,204,102)">(</span>dst_long - src_long<span style="color: rgb(102,204,102)">)</span><span style="color: rgb(102,204,102)">)</span>; IF type = <span style="color: rgb(255,0,0)">"M"</span> <span style="color: rgb(153,51,51); font-weight: bold">THEN</span> <span style="color: rgb(153,51,51); font-weight: bold">SET</span> temp = STATUTE_MILES * temp; <span style="color: rgb(153,51,51); font-weight: bold">END</span> IF; IF type = <span style="color: rgb(255,0,0)">"N"</span> <span style="color: rgb(153,51,51); font-weight: bold">THEN</span> <span style="color: rgb(153,51,51); font-weight: bold">SET</span> temp = NAUTICAL_MILES * temp; <span style="color: rgb(153,51,51); font-weight: bold">END</span> IF; IF type = <span style="color: rgb(255,0,0)">"K"</span> <span style="color: rgb(153,51,51); font-weight: bold">THEN</span> <span style="color: rgb(153,51,51); font-weight: bold">SET</span> temp = KILOMETERS * temp; <span style="color: rgb(153,51,51); font-weight: bold">END</span> IF; RETURN temp; <span style="color: rgb(153,51,51); font-weight: bold">END</span>$ <span style="color: rgb(153,51,51); font-weight: bold">CREATE FUNCTION</span> zip_distance<span style="color: rgb(102,204,102)">(</span>type <span style="color: rgb(170,153,51); font-weight: bold">ENUM</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(255,0,0)">'M'</span>, <span style="color: rgb(255,0,0)">'N'</span>, <span style="color: rgb(255,0,0)">'K'</span><span style="color: rgb(102,204,102)">)</span>, zip_start <span style="color: rgb(170,153,51); font-weight: bold">VARCHAR</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(204,102,204)">5</span><span style="color: rgb(102,204,102)">)</span>, zip_finish <span style="color: rgb(170,153,51); font-weight: bold">VARCHAR</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(204,102,204)">5</span><span style="color: rgb(102,204,102)">)</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(153,51,51); font-weight: bold">RETURNS</span> <span style="color: rgb(170,153,51); font-weight: bold">DOUBLE</span> <span style="color: rgb(153,51,51); font-weight: bold">BEGIN</span> <span style="color: rgb(153,51,51); font-weight: bold">DECLARE</span> distance <span style="color: rgb(170,153,51); font-weight: bold">DOUBLE</span>; <span style="color: rgb(153,51,51); font-weight: bold">DECLARE</span> start_lat <span style="color: rgb(170,153,51); font-weight: bold">DOUBLE</span>; <span style="color: rgb(153,51,51); font-weight: bold">DECLARE</span> start_long <span style="color: rgb(170,153,51); font-weight: bold">DOUBLE</span>; <span style="color: rgb(153,51,51); font-weight: bold">DECLARE</span> finish_lat <span style="color: rgb(170,153,51); font-weight: bold">DOUBLE</span>; <span style="color: rgb(153,51,51); font-weight: bold">DECLARE</span> finish_long <span style="color: rgb(170,153,51); font-weight: bold">DOUBLE</span>; <span style="color: rgb(153,51,51); font-weight: bold">SELECT</span> latitude, longitude <span style="color: rgb(153,51,51); font-weight: bold">INTO</span> start_lat, start_long <span style="color: rgb(153,51,51); font-weight: bold">FROM</span> zipcodes <span style="color: rgb(153,51,51); font-weight: bold">WHERE</span> zip = zip_start; <span style="color: rgb(153,51,51); font-weight: bold">SELECT</span> latitude, longitude <span style="color: rgb(153,51,51); font-weight: bold">INTO</span> finish_lat, finish_long <span style="color: rgb(153,51,51); font-weight: bold">FROM</span> zipcodes <span style="color: rgb(153,51,51); font-weight: bold">WHERE</span> zip = zip_finish; <span style="color: rgb(153,51,51); font-weight: bold">SELECT</span> zip_gcd<span style="color: rgb(102,204,102)">(</span>type, start_lat, start_long, finish_lat, finish_long<span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(153,51,51); font-weight: bold">INTO</span> distance; RETURN distance; <span style="color: rgb(153,51,51); font-weight: bold">END</span>$ <span style="color: rgb(153,51,51); font-weight: bold">CREATE PROCEDURE</span> zip_radius<span style="color: rgb(102,204,102)">(</span>IN type <span style="color: rgb(170,153,51); font-weight: bold">ENUM</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(255,0,0)">'M'</span>, <span style="color: rgb(255,0,0)">'N'</span>, <span style="color: rgb(255,0,0)">'K'</span><span style="color: rgb(102,204,102)">)</span>, IN zip_start <span style="color: rgb(170,153,51); font-weight: bold">VARCHAR</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(204,102,204)">5</span><span style="color: rgb(102,204,102)">)</span>, IN radius <span style="color: rgb(170,153,51); font-weight: bold">INT</span>, prec <span style="color: rgb(170,153,51); font-weight: bold">INT</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(153,51,51); font-weight: bold">BEGIN</span> <span style="color: rgb(153,51,51); font-weight: bold">DECLARE</span> src_lat <span style="color: rgb(170,153,51); font-weight: bold">DOUBLE</span>; <span style="color: rgb(153,51,51); font-weight: bold">DECLARE</span> src_long <span style="color: rgb(170,153,51); font-weight: bold">DOUBLE</span>; <span style="color: rgb(153,51,51); font-weight: bold">SELECT</span> latitude, longitude <span style="color: rgb(153,51,51); font-weight: bold">INTO</span> src_lat, src_long <span style="color: rgb(153,51,51); font-weight: bold">FROM</span> zipcodes <span style="color: rgb(153,51,51); font-weight: bold">WHERE</span> zip = zip_start; <span style="color: rgb(153,51,51); font-weight: bold">SELECT</span> zip, city, state, county, <span style="color: rgb(153,51,51); font-weight: bold">ROUND</span><span style="color: rgb(102,204,102)">(</span>zip_gcd<span style="color: rgb(102,204,102)">(</span>type, src_lat, src_long, latitude, longitude<span style="color: rgb(102,204,102)">)</span>, prec<span style="color: rgb(102,204,102)">)</span> AS `distance` <span style="color: rgb(153,51,51); font-weight: bold">FROM</span> zipcodes <span style="color: rgb(153,51,51); font-weight: bold">WHERE</span> zip != zip_start AND <span style="color: rgb(102,204,102)">(</span><span style="color: rgb(153,51,51); font-weight: bold">POW</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(204,102,204)">69.1</span> * <span style="color: rgb(102,204,102)">(</span>longitude - src_long<span style="color: rgb(102,204,102)">)</span> * <span style="color: rgb(153,51,51); font-weight: bold">COS</span><span style="color: rgb(102,204,102)">(</span>src_lat / <span style="color: rgb(204,102,204)">57.3</span><span style="color: rgb(102,204,102)">)</span><span style="color: rgb(102,204,102)">)</span>, <span style="color: rgb(204,102,204)">2</span><span style="color: rgb(102,204,102)">)</span> + <span style="color: rgb(153,51,51); font-weight: bold">POW</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(204,102,204)">69.1</span> * <span style="color: rgb(102,204,102)">(</span>latitude - src_lat<span style="color: rgb(102,204,102)">)</span><span style="color: rgb(102,204,102)">)</span>, <span style="color: rgb(204,102,204)">2</span><span style="color: rgb(102,204,102)">)</span><span style="color: rgb(102,204,102)">)</span> <= <span style="color: rgb(102,204,102)">(</span>radius * radius<span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(153,51,51); font-weight: bold">ORDER</span> <span style="color: rgb(153,51,51); font-weight: bold">BY</span> `distance` ASC; <span style="color: rgb(153,51,51); font-weight: bold">END</span>$ DELIMITER ; <div style="font-family: monospace" class="php"> <span style="color: rgb(0,0,0); font-weight: bold"><?php</span> <span style="color: rgb(0,0,255)">$mysqli</span> = mysqli_connect<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(255,0,0)">'localhost'</span>, <span style="color: rgb(255,0,0)">'dbuser'</span>, <span style="color: rgb(255,0,0)">'dbpass'</span>, <span style="color: rgb(255,0,0)">'zipcodes'</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(177,177,0)">if</span> <span style="color: rgb(102,204,102)">(</span>mysqli_connect_errno<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <a href="http://www.php.net/printf" target="_blank"><span style="color: rgb(0,0,102)">printf</span></a><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(255,0,0)">"Connection failed: %s<span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span>, mysqli_connect_error<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span><span style="color: rgb(102,204,102)">)</span>; <a href="http://www.php.net/exit" target="_blank"><span style="color: rgb(0,0,102)">exit</span></a>; <span style="color: rgb(102,204,102)">}</span> <span style="color: rgb(0,0,255)">$sql</span> = <span style="color: rgb(255,0,0)">"CALL zip_radius('M', 28273, 5, 0)"</span>; <span style="color: rgb(177,177,0)">if</span> <span style="color: rgb(102,204,102)">(</span>!<span style="color: rgb(0,0,255)">$mysqli</span>-><span style="color: rgb(0,102,0)">real_query</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$sql</span><span style="color: rgb(102,204,102)">)</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <a href="http://www.php.net/printf" target="_blank"><span style="color: rgb(0,0,102)">printf</span></a><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(255,0,0)">"Invalid query: %s<span style="color: rgb(0,0,153); font-weight: bold">\n</span>Whole query: %s<span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span>, <span style="color: rgb(0,0,255)">$mysqli</span>-><span style="color: rgb(0,102,0)">error</span>, <span style="color: rgb(0,0,255)">$sql</span><span style="color: rgb(102,204,102)">)</span>; <a href="http://www.php.net/exit" target="_blank"><span style="color: rgb(0,0,102)">exit</span></a>; <span style="color: rgb(102,204,102)">}</span> <span style="color: rgb(177,177,0)">if</span> <span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$result</span> = <span style="color: rgb(0,0,255)">$mysqli</span>-><span style="color: rgb(0,102,0)">store_result</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(177,177,0)">while</span> <span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$record</span> = <span style="color: rgb(0,0,255)">$result</span>-><span style="color: rgb(0,102,0)">fetch_assoc</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(0,0,255)">$records</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$record</span>; <span style="color: rgb(102,204,102)">}</span> <span style="color: rgb(0,0,255)">$result</span>-><span style="color: rgb(0,102,0)">close</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(102,204,102)">}</span> <span style="color: rgb(0,0,255)">$mysqli</span>-><span style="color: rgb(0,102,0)">close</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span>; <a href="http://www.php.net/print_r" target="_blank"><span style="color: rgb(0,0,102)">print_r</span></a><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$records</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(0,0,0); font-weight: bold">?></span> </div> <div style="font-family: monospace" class="c"> Array <span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(102,204,102)">[</span><span style="color: rgb(204,102,204)">0</span><span style="color: rgb(102,204,102)">]</span> => Array <span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(102,204,102)">[</span>zip<span style="color: rgb(102,204,102)">]</span> => <span style="color: rgb(204,102,204)">28217</span> <span style="color: rgb(102,204,102)">[</span>city<span style="color: rgb(102,204,102)">]</span> => CHARLOTTE <span style="color: rgb(102,204,102)">[</span>state<span style="color: rgb(102,204,102)">]</span> => NC <span style="color: rgb(102,204,102)">[</span>county<span style="color: rgb(102,204,102)">]</span> => MECKLENBURG <span style="color: rgb(102,204,102)">[</span>distance<span style="color: rgb(102,204,102)">]</span> => <span style="color: rgb(204,102,204)">2</span> <span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">[</span><span style="color: rgb(204,102,204)">1</span><span style="color: rgb(102,204,102)">]</span> => Array <span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(102,204,102)">[</span>zip<span style="color: rgb(102,204,102)">]</span> => <span style="color: rgb(204,102,204)">28134</span> <span style="color: rgb(102,204,102)">[</span>city<span style="color: rgb(102,204,102)">]</span> => PINEVILLE <span style="color: rgb(102,204,102)">[</span>state<span style="color: rgb(102,204,102)">]</span> => NC <span style="color: rgb(102,204,102)">[</span>county<span style="color: rgb(102,204,102)">]</span> => MECKLENBURG <span style="color: rgb(102,204,102)">[</span>distance<span style="color: rgb(102,204,102)">]</span> => <span style="color: rgb(204,102,204)">4</span> <span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">[</span><span style="color: rgb(204,102,204)">2</span><span style="color: rgb(102,204,102)">]</span> => Array <span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(102,204,102)">[</span>zip<span style="color: rgb(102,204,102)">]</span> => <span style="color: rgb(204,102,204)">29716</span> <span style="color: rgb(102,204,102)">[</span>city<span style="color: rgb(102,204,102)">]</span> => FORT MILL <span style="color: rgb(102,204,102)">[</span>state<span style="color: rgb(102,204,102)">]</span> => SC <span style="color: rgb(102,204,102)">[</span>county<span style="color: rgb(102,204,102)">]</span> => YORK <span style="color: rgb(102,204,102)">[</span>distance<span style="color: rgb(102,204,102)">]</span> => <span style="color: rgb(204,102,204)">5</span> <span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">[</span><span style="color: rgb(204,102,204)">3</span><span style="color: rgb(102,204,102)">]</span> => Array <span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(102,204,102)">[</span>zip<span style="color: rgb(102,204,102)">]</span> => <span style="color: rgb(204,102,204)">28210</span> <span style="color: rgb(102,204,102)">[</span>city<span style="color: rgb(102,204,102)">]</span> => CHARLOTTE <span style="color: rgb(102,204,102)">[</span>state<span style="color: rgb(102,204,102)">]</span> => NC <span style="color: rgb(102,204,102)">[</span>county<span style="color: rgb(102,204,102)">]</span> => MECKLENBURG <span style="color: rgb(102,204,102)">[</span>distance<span style="color: rgb(102,204,102)">]</span> => <span style="color: rgb(204,102,204)">5</span> <span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">)</span> </div> </div>
试试其它关键字
压缩成ZIP类
同语言下
.
用net匹配并替换iOS标准的emoji表情符号
.
处理带Emoji表情的的字符串
.
获取微信昵称时 过滤特殊字符
.
通过判断上传文件的头字符来判断文件的类型
.
模拟百度URL加密解密算法
.
以太坊检查地址是否合法
.
实现crontab解析类
.
获取每个月的开始和结束时间
.
图片上传工具类
.
APP手机应用信息采集
可能有用的
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
Dezai.CN
贡献的其它代码
(
4037
)
.
多线程Socket服务器模块
.
生成随机密码
.
清除浮动样式
.
弹出窗口居中
.
抓取url的函数
.
使用base HTTP验证
.
div模拟iframe嵌入效果
.
通过header转向的方法
.
Session操作类
.
执行sqlite输入插入操作后获得自动编号的ID
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3