易截截图软件、单文件、免安装、纯绿色、仅160KB

【待修改】validator表单验证类PHP版本

<?php
/*****************
名称:validator For PHP v1.0.0
日期:2006-12-7
作者:西楼冷月
网址:www.xilou.net | www.chinaCMS.org
描述:数据检验类,用在表单验证上
规则:无
*****************/
/*php自身的检测函数
*bool is_numeric ( mixed var)
*bool is_bool ( mixed var)
*bool is_null ( mixed var)
*bool is_float ( mixed var)
*bool is_int ( mixed var)
*bool is_string ( mixed var)
*bool is_object ( mixed var)
*bool is_array ( mixed var)
*bool is_scalar ( mixed var)
*string gettype ( mixed var)
*/
/*新添加的检测函数
isDate()     日期检查
isTime()     时间检查
isInt()      整数检查
isNum()      数字检查
isEmail()    邮件检查
isUrl()      url检查
isPost()     邮政编码检查
isPhone()    电话号码检查
isMobile()   移动电话检查
isLen()      长度检查
isIdCard()   身份证检查
isEnglish() 英文检查
isGB2312()   简体中文检查
isIP()       IP检查
isQQ()       QQ检查
checkFileType() 文件后缀名检查
*/
class Validator{
function Validator(){
   //echo "test";
}
    /*
*方法:bool isDate($str,$format="")
*作用:检验日期的合法性
*说明:默认的合法日期格式是以"-"分割的"年-月-日"
*         当参数$format设置格式时则按照这个格式检验
*例子:isDate("2006-12-1");isDate("2006-12-1","Y-m-d h:i:s")
*/
function isDate($str,$format=""){
   if($format==""){
    $str=explode("-",$str);
    return @checkdate($str[1],$str[2],$str[0]);
   }else{
    //按规定的格式检验
            $unixTime=strtotime($str);//转为时间戳
            $checkDate= date


相关文档:

php初学者

我也是一ASP转PHP的初学者,我这里有一好的网站拿来与大家一起分享,希望大家会喜欢!
http://www.w3school.com.cn/
也还有一些好的视频也拿来与大家一起分享!
http://hi.baidu.com/ylinuxs/blog/item/4433d3354a58fed1a2cc2b26.html ......

Redhat下 Apache, php, mysql的默认安装路径

apache:
如果采用RPM包安装,安装路径应在 /etc/httpd目录下
apache配置文件:/etc/httpd/conf/httpd.conf
Apache模块路径:/usr/sbin/apachectl
web目录:/var/www/html
如果采用源代码安装,一般默认安装在/usr/local/apache2目录下
php:
如果采用RPM包安装,安装路径应在 /etc/目录下
php的配置文件:/etc/php.ini ......

PHP写的MD5破解与加密程序

程序代码
<!--p
  if(isset($_POST['md5'])){ //判断$md5是否已设置,如果设置了则执行以下代码。
  if(!is_numeric($_POST['time'])){ //如果没获取到time的值则将time的值设置为30
    $_POST['time'] = 30;
      }
    set_time_limit($_P ......

PHP——计数器1


项目结构如上
创建counter.txt文件
创建counter1.php文件
初始化counter.txt文件中的内容
输入“0”
counter1.php文件代码
<?php
$fp = fopen("counter.txt","r");

if ($str1==false){
$str1 = 0;
}
$str1 = fgets($fp,10);
$str1++;
fclose($fp);

$fp = ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号