php 948

#PHP
php日期处理代码

<?php echo "<pre>"; echo date("Y-m-d",strtotime("now&quo…

2015-09-12 774

#PHP
PHP邮件操作类

<?php class smtp { var $smtp_port; var $time_out; var $host_name; var $log_file; var $r…

2015-09-09 797

#PHP
PHP操作文件类

本类为文件操作类,实现了文件的建立,写入,删除,修改,复制,移动,创建目录,删除目录 <?php /** *本类为文件操作类,实现了文件的建立,写入,删除,修改,复制,移动,…

2015-09-09 481

#PHP
用php过滤表单提交中的危险html代码

PHP过滤提交表单的html代码里可能有被利用引入外部危险内容的代码。例如,有些时候用户提交表单中含有html内容,但这可能造成显示页面布局混乱,需要过滤掉。 function u…

2015-09-09 352

#PHP
可以ping端口的php函数

<?php /* * @author xujiajay * @date 2010-10-7 * @email xujiaphp@gmail.com * @function 可…

2015-09-09 789

#PHP
PHP下载断点续传

<?php /* * PHP下载断点续传 */ function dl_file_resume($file){ //检测文件是否存在 if (!is_file($file))…

2015-09-09 661

#PHP
php的AES加密解密

php代码,php很多东西都是提供好的,直接用函数,但是php目前所知填充模式只有ZeroPadding,于是其他语言就只能跟着它来了: <?php $privateKey …

2015-09-05 564

#PHP
PHP 获取指定URl页面中所有链接

//获取指定URL页面中所有链接 function get_url_href($url){ $html = file_get_contents($url); $dom = new …

2015-09-05 929

#PHP
php接口数据加密、解密、验证签名

<?php /** * 数据加密,解密,验证签名 * @edit http://www.lai18.com * @date 2015-07-08 **/ //header('…

2015-09-05 310

#PHP
PHP PDO操作MYSQL封装类

<?php /** * auther soulence * 调用数据类文件 * modify 2015/06/12 */ class DBConnect { private …

2015-09-05 926

#PHP
利用PHP实现MySQL表数据的简单分页

PHP实现MySQL表数据的简单分页 <?php $conn=mysql_connect("127.0.0.1","root",'12…

2015-09-04 133

#PHP
PHPExcel导出mysql数据库数据

数据库代码(数据库配置文件自行完成) <?php /*db.php*/ require dirname(__FILE__)."/dbconfig.php"…

2015-09-02 357
1 18 19 20 21 22 79