2009六月19

去爱吧,象没有受过伤一样–Alfred D’Souza

喜欢这首诗

2009六月18

设置网页文字等元素在flash层上 [转载]

flash在网页中位置

2009六月16

Using Action Helpers in Zend Framework

When you have some functionality that needs to be shared across multiple controllers, one method is to use action helpers. Action helpers are very powerful and contain hooks to automatically run when you need them too, but you can ignore all that if you don’t need it. The first thing you need to do is decide where to put them. The latest default project structure document recommends using...[查看全部]

2009六月16

File uploads with Zend_Form_Element_File

Now that Zend Framework 1.7 has been released, I thought I’d take a look at the built in file upload element, Zend_Form_Element_File, and see how it can be used. This is how to use it in its most basic form. I decided to use the same set of form elements as before in order to make things easy. Let’s start with the form: The form We extend Zend_Form and store it in the application/...[查看全部]

2009六月15

How to implement COMET with PHP

Comet is a programming technique that enables web servers to send data to the client without having any need for the client to request it. This technique will produce more responsive applications than classic AJAX. In classic AJAX applications, web browser (client) cannot be notified in real time that the server data model has changed. The user must create a request (for example by clicking on ...[查看全部]

2009六月15

APACHE PHP 头信息修改

为了安全要将Apache及 PHP 的版本隐藏防止XXX人无聊时xxx ,可以用以下方法: Apache: 开启 httpd.conf,加入以下两行: ServerTokens ProductOnly ServerSignature Off PHP: 隐藏 PHP 版本就是隐藏 “X-Powered-By: PHP/5.1.2-1+b1″ 这个,开启 php.ini,加入: expose_php = Off 完成以上两个设定后,重新启动 Apache 即可。 另外,讲几个最基本的php的安全设置 禁用某些危险函数 disable_functions = system,exec,sh...[查看全部]

2009六月15

MYSQL查询技巧

MYSQL查询技巧 [插入时唯一索引冲突则变为更新] mysql的insert语句有一个比较少见的可选子句: ON DUPLICATE KEY UPDATE col_name=expr, … 用法是: INSERT INTO table (a,b,c) VALUES (1,2,3) ? ON DUPLICATE KEY UPDATE c=c+1; 例如,如果列a被定义为UNIQUE,并且包含值1,则执行以上语句与下面的结果一样 UPDATE table SET c=c+1 WHERE a=1 即插入时使唯一键冲突,则会执行update语句,where条件为该冲突的键值 [同时删除两...[查看全部]

2009六月15

PHP实现长连接

长连接,webim,php聊天

2009五月31

CentOS 5.3上安装Apache+php+Mysql+phpMyAdmin

?1、系统下载 CentOS 开发社区已发布了新的 5.3 版本。CentOS 5.3 基于 Red Hat Enterpris Linux 5.3.0,其中包括 Kernel 2.6.18、Apache 2.2、PHP 5.1.6、MySQL 5.0、PostgreSQL 8、GNOME 2.16、KDE 3.5、OpenOffice.org 2.3、Firefox 3.0、Evolution 2.12 等等。此外,CentOS 5.3 更新了美工设计,并根据用户的请求恢复了 Contrib 仓库。 CentOS 5.3 支持 i386 及 x86_64 架构,其 ISO 映像可从以下地址获取。isoredirect.cen...[查看全部]

2009五月22

一个不错的print_r :dbug

【本文由zeevin.com于2009.5.21翻译,转载请保留连接!】 在用php开发网站时我们经常会用print_r()输入内容用来查看或者显示信息,传统print_r输出的数据格式总不是那么显而易见和方便的,dbug可以给你提供和一个更直观的数据体验,你可以把它看做对print_r的重写。 使用方法: include_once("dBug.php"); $variable = array( “first”=>”1″, “second”, “third”=>array( ...[查看全部]

2009五月22

PHP写的ftp服务器

php ftp服务器 原创翻译

2009五月19

CNZZ貌似被人挂马

未分类 1 Comment

cnzz