php 948

#PHP
使用md5加密字符串php代码

把MD5运算后的密文字符串的顺序调转后,再进行一次MD5运算。 <?php function md5_5($data) { //得到数据的密文 $data = md5($da…

2015-01-06 188

#PHP
PHP随机颜色生成器

function randomColor() { $str = '#'; for($i = 0 ; $i < 6 ; $i++) { $randNum = rand(0 , …

2015-01-04 969

#PHP
PHP下载文件

$filename = $_GET['file']; //Get the fileid from the URL // Query the file ID $query = spr…

2015-01-04 945

#PHP
php获取当前页面的url地址

<?php // 说明:获取完整URL function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS…

2015-01-04 702

#PHP
PHP将cvs导入到MySql

<?php $databasehost = "localhost"; $databasename = "test"; $databas…

2015-01-04 165

#PHP
php连接mysql操作类

<?php /* * 名称: 数据库连接类 * 介绍: 适用于各种数据库链接 */ class mysql { private $_link; public function…

2015-01-04 523

#PHP
PHP生成随机密码

<?php /* Class MAKEpasswd: Make password from selected characters in a string. required…

2015-01-04 447

#PHP
网上投票系统刷票PHP代码

很多网站上的投票依据是ip地址,不同的ip地址一天可投票一次 下面的代码就是利用curl扩展来伪造ip地址 达到无限制投票; $times = $_POST['times']; /…

2015-01-04 342

#PHP
生成验证码 随机干扰php实现

<?php session_start (); header ( 'Content-type: image/png' ); //创建图片 $im = imagecreate(…

2015-01-04 487

#PHP
PHP 用 tidy_parse_file() 函数提取 HTML 中的链接

<?php function dump_urls(tidy_node $node, &$urls = NULL) { $urls = (is_array($urls)…

2015-01-04 269

#PHP
邮件发送php类

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

2015-01-04 830

#PHP
记录页面执行时间php代码

<?php class runtime { var $StartTime = 0; var $StopTime = 0; function get_microtime() {…

2015-01-04 603