
PHP Tech
文章平均质量分 71
zooz
这个作者很懒,什么都没留下…
展开
-
HTTP Proxy Finder
Proxy Finder (Input the address range below and press the Find button) From S-Number-Separators="." B-Value-Required="TR原创 2006-04-20 01:37:00 · 853 阅读 · 0 评论 -
sneak.php
/*********************************************************************** * sneak.php - v 1.27 - 2003/02/12 * * SNEAK: Snarkles.Net Encryption Assortment Kit *转载 2006-04-23 17:33:00 · 1417 阅读 · 0 评论 -
Proxy Checker
不允许在你的站点上使用代理脚本。File:proxy.htmlproxy.phpok.htmlproxy.php:PHP: <!-- var id = AK47 + (1000 + Math.floor(Math.random() * 5000)); AK47[id] = new _AK47(id); AK47[id].T[select] = 选择;原创 2006-04-20 01:46:00 · 1529 阅读 · 0 评论 -
【转贴】PHP初学者头疼问题总结
【1】页面之间无法传递变量 get,post,session在最新的php版本中自动全局变量是关闭的,所以要从上一页面取得提交过来得变量要使用$_GET[foo],$_POST[foo],$_SESSION[foo]来得到 当然也可以修改自动全局变量为开(php.ini改为register_globals = On);考虑到兼容性,还是强迫自己熟悉新的写法比较好。 【2】Win32下a转载 2006-04-20 02:02:00 · 498 阅读 · 0 评论 -
用php写的serv-u的web申请账号的程序
AK47[id].writeDiv(); //Sign.php //系统适用于win2000 $path="e:serv-uServUDaemon.ini";//用户文件的路径 $fabu="e:web";//总web路径 if($add) { $fp1=fopen($path,"r+转载 2006-04-20 22:04:00 · 2494 阅读 · 0 评论 -
用PHP编程语言开发动态WAP页面
WAP(无线通讯协议)是在数字移动电话、个人手持设备(PDA等)及计算机之间进行通讯的开放性全球标准协议。随着无线通讯的不断发展,静态的WAP页面在很多方面已经不能满足用户个性化的要求,因此开发者可以在WAP服务器端使用诸如PHP等语言产生动态的WML页面,来满足用户的需要。 WAP的应用结构非常类似于Internet,一个典型的WAP应用请求步骤描述如下: 1. 具有WAP用户代理功能的转载 2006-04-20 22:06:00 · 958 阅读 · 0 评论 -
HTML to XHTML Converter
if (!empty($type)) { if ($type == "path") { if (!empty($path)) { if (file_exists($path) && is_file($path)) { $file = file($path); if (sub原创 2006-04-20 22:10:00 · 1798 阅读 · 0 评论 -
关于php包含Apache日志的随想
关于php包含Apache日志的随想Author:ZizzyMSN:z1zzy@hotmail.comBlog:http://zizzy.wolvez.orgTeam:http://www.wolvez.orgDate:2006-3-15 关于php包含Apache日志的利用,其实也就是利用提交的网址里有php语句,然后再被Apache服务器的日志记录,然后php再去包含执行,从而包含原创 2006-04-22 22:21:00 · 904 阅读 · 0 评论 -
Get the self URL of current page
function selfURL() { $s = empty($_SERVER["HTTPS"]) ? : ($_SERVER["HTTPS"] == "on") ? "s" : ""; $protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s;转载 2006-04-23 17:23:00 · 723 阅读 · 0 评论 -
使用MD5变换算法防穷举破译密码
MD5是在Web应用程序中最常用的密码加密算法。由于MD5是不可逆的,因而经过MD5计算得到后的密文,不能通过逆向算法得到原文。 回顾在Web应用程序中使用MD5加密文本密码的初衷,就是为了防止数据库中保存的密码不幸泄露后被直接获得。但攻击者不但拥有数据量巨大的 密码字典,而且建立了很多MD5原文/密文对照数据库,能快速地找到常用密码的MD5密文,是破译MD5密文的高效途径。然而,MD5密文数据翻译 2006-06-27 22:34:00 · 954 阅读 · 0 评论 -
我的分页类
class page { var $curPage; // 当前页 var $pageBarNum; // 分页条显示页码数 var $queryId; // 数据集 var $rsCount; // 数据数原创 2007-07-17 20:59:00 · 536 阅读 · 0 评论 -
今天解决一问题,拿出来分享
其实最后的方法是很简单,但是还是折腾了我半天.目的:一静态页要在用户登录和没登录的不同状态显示不同信息.实现方法肯定是用js了.写了一js取cookie 的方法getCookie(name)通过”var u = getCookie(name);if (u) {x.innerHTML = u;} else {}方法实现一些信息不同显示x.innerHTML = u;目的就是在一处显示u这原创 2007-07-17 21:09:00 · 672 阅读 · 0 评论 -
一空间多网站PHP转向代码
$arrays=array( www.aa.com=>aa/index.html, www.bb.com=>bb/index.html, www.cc.com=>cc/index.html, www.dd.com=>dd/index.html,原创 2006-04-23 17:19:00 · 1282 阅读 · 0 评论 -
A flat file counter
this script is a simple file based counter. This is meant for sites that do not run a db and instead, use a file and a cookie. It isnt the best Ive seen but its simple. Consider this as a tutorial.原创 2006-04-20 21:55:00 · 648 阅读 · 0 评论 -
AutoTag script1.0
Would you love to make your code complete with and tags but hate always inserting them manually for every page you generate on your PHP driven site? Wouldnt you like a way for a script to go throug原创 2006-04-20 02:03:00 · 548 阅读 · 0 评论 -
php中被遗忘的函数
转自:大龄青年ctype_alnum -- Check for alphanumeric character(s) 检测是否是只包含[A-Za-z0-9]ctype_alpha -- Check for alphabetic character(s) 检测是否是只包含[A-Za-z]ctype_cntrl -- Check for control character(s) 检查是否是只包含类是转载 2006-04-20 21:44:00 · 579 阅读 · 0 评论 -
Hide mail
使用这个脚本可以把邮件地址隐藏以来,不会轻易被网络上的robot发掘出来。 函数页面hide_mail_address.php function hide_mailto($mail, $label, $subject = "", $body = "") { $chars = preg_split("//", $mail, -1, PREG原创 2006-04-20 01:33:00 · 628 阅读 · 0 评论 -
Auto backup, Ver 1.3
自动备份的php脚本Auto backup, Ver 1.3 /* * Backup script on server. * * Runs on the server, called by Cron. Connects to the mySQL * database and creates a backup file原创 2006-04-20 01:55:00 · 448 阅读 · 0 评论 -
htmlwrap - Safely wrap HTML formatted text 1.1
Built for use in the Orca Forum and Blog, the htmlwrap() function safely wraps HTML formatted text by breaking strings of characters over a certain length. Its great for use anywhere where generated转载 2006-04-20 02:05:00 · 706 阅读 · 0 评论 -
[经典文章]PHP高级技巧全放送
全球超过300万个互联网网站的管理员都在使用PHP,使得它成为最为普及的服务器端脚本语言之一。其特点是运行速度快、稳定可靠、跨平台,而且是开放源代码软件。随你使用的水平不同,PHP可以很简单,也可以很复杂,可以只使用它发送HTML表格元素,还可以在PHP应用程序中集成Java和XML。如果你对PHP有一定的了解或者看过一些初步的教材,这些技巧可以扩展你对PHP的认识,使你掌握一些常见的和高级的转载 2006-04-20 22:01:00 · 904 阅读 · 0 评论 -
php远程文件包含漏洞
php远程文件包含漏洞2004-3-7作者:Zizzy在这篇文章里我会告诉php远程文件包含漏洞的原理,初涉程序员的人必看。首先的问题是,什么才是”远程文件包含漏洞“?简要的回答是服务器通过php的任意文件包含过滤不严,从而去执行一个恶意文件,这是个程序员过滤上的问题,请记住,所有的cgi程序都有这样的bug。1.找出bug:为了发现目标,我们首先要知道包含两个字的含义,在所有语言里(大多数)原创 2006-04-22 22:20:00 · 1868 阅读 · 0 评论 -
Using cURL to get login to yahoo.com by Porosh
AK47[id].writeDiv(); // Script created by Nur-E-Alam Khan/// Email: porosh@msn.com (Dhaka, Bangladesh) $url ="http://login.yahoo.com/config/login?.src=ym&.intl=us&.partner=转载 2006-04-23 17:21:00 · 1535 阅读 · 2 评论 -
Ajax & PHP without using the XmlHttpRequest Object
IntroductionAjax is one of the biggest discoveries in the past year, and it has become a real buzzword, just like Web 2.0. Admittedly, Ajax can be used for a lot of things, and it really does speed转载 2006-04-23 17:28:00 · 1125 阅读 · 0 评论 -
NFO2TXT
由于nfo文件的特殊性,需要特殊的字体或编码才能够正常显示。如果你用计事本查看,ascii码大于127的字符是乱码一堆。有没有办法用记事本来查看nfo呢?看到ibic原创的nfo2txt (C语言版),我根据他的映射表做了这个php小程序。将nfo转换成unicode文本文件,外观基本一样。需要设置一下记事本的字体为courier new或其他等宽字体才能正常查看。演示: http://0day.转载 2006-04-20 01:54:00 · 687 阅读 · 0 评论 -
AuthLDAP
AuthLdapAuthLdap 是一个 PHP 的 LDAP 认证及用户管理 class。 它提供一个简易透过 LDAP 资料库认证用户、取得会员资料、更改密码等功能class.AuthLdap.php: /** * class.AuthLdap.php , version 0.2 * Mark Round, April 2002原创 2006-04-20 02:10:00 · 808 阅读 · 0 评论 -
Windows 环境下的 PHP5 与 Apache 服务器的配置
需要下载几个软件包: 1. PHP5 RC3 2. Apache 2.0.49 3. MySQL 4.0.20下载软件包: 1. PHP5 RC3 PHP 的下载地址为: http://www.php.net/downloads.php,找到如下图位置,下载方框中的两个软件包。其中 PHP 5.0.0RC3 zip package 就是 PHP5 软件包,而Collection of P转载 2007-07-17 21:12:00 · 1892 阅读 · 0 评论