越简单越好!
php 下载文件
发表于 2006-08-16 12:37    

从网上看看了一些php下载文件的资料,改了改,写了这么个函数.

查看详情已有1796次阅读  |  0次点赞  |  0个评论
centos5.4下apache_php_mysql_vsftp安装
发表于 2010-05-05 13:27    

1. 开启防火墙端口:/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT/sbin/iptables -I INPUT -p tcp --dport 22822 -j ACCEPT/sbin/iptables -I INPUT -p tcp --dport 2121 -j ACCEPT/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT/etc/rc.d/init.d/iptables save/etc/init.d/iptables restart查看...

查看详情已有2204次阅读  |  0次点赞  |  0个评论
yardvps下CentOS5.7配置apache+php+mysql+vsftp笔记
发表于 2011-12-21 22:33    

yardvps CentOS5.7配置apache+php+mysql+vsftp笔记

 

1. 增加用户关闭root用户登陆

#useradd bevin

#passwd bevin

#vim /etc/ssh/sshd_config

把#PermitRootLogin 改成 PermitRootLogin no

 

#vim /etc/redhat-release

查看版本C...

查看详情已有2064次阅读  |  0次点赞  |  0个评论
如何使用session
发表于 2006-08-16 16:02    

凡是与session有关的,之前必须调用函数session_start();为session付值很简单,如:

<?phpSession_start();$Name = "这是一个Session例子";Session_Register("Name");//注意,不要写成:Session_Register("[color=red]$Name[/color]");Echo $_SESSION["Name"];//之后$...

查看详情已有1784次阅读  |  0次点赞  |  0个评论
GET和POST处理
发表于 2006-10-23 16:42    
 while (list ($key, $val) = each ($_GET)) {     $$key = $val; }  while (list ($key, $val) = each ($_POST)) {    $$key = $val; }
查看详情已有1525次阅读  |  0次点赞  |  0个评论
IIS+PHP+MYSQL配置功略
发表于 2006-08-04 16:16    

   PHP的执行效率是有目共睹的,这也是我喜欢它的原因之一,和它称为绝妙搭档的Mysql以及Apache想融合,不能不惊叹其效率了。PHP更新也很快,这里列举了目前最新版本PHP4.3.2RC4(几乎没有BUG了,估计写完这篇不久后正式版就出了),和最新版本的Mysql4.0.13的安装过程。

查看详情已有1762次阅读  |  0次点赞  |  0个评论
去除带<>的HTML
发表于 2006-12-01 17:09    

function delhtml($content){ $content = eregi_replace("<html>.+</head>","", $content); $content = preg_replace("/<.+?>/i","", $content); return $content; } $oneurl = "http://www.chenapp.com"; $content = file_get_contents($oneurl); echo delhtml($content);

查看详情已有1593次阅读  |  0次点赞  |  0个评论
讲解关于centos配置apache+php安装
发表于 2010-04-29 13:30    

首先;下载软件;apache下载地址http://apache.mirror.phpchina.com/httpd/httpd-2.2.9.tar.gzphp下载地址:http://cn.php.net/distributions/php-5.2.6.tar.gzmysql下载地址:http://mysql.ntu.edu.tw/Downloads/MySQL-5.0/mysql-5.0.51a-linux-i686-glibc23.tar.gz

首先[root@localhost ]# wg...

查看详情已有2113次阅读  |  0次点赞  |  0个评论
阿里云ECS-CentOS7.0配置nginx+php+mysql笔记
发表于 2015-05-21 15:02    
阿里云ECS-CentOS7.0配置nginx+php+mysql笔记
查看详情已有1979次阅读  |  0次点赞  |  0个评论
Freebsd安装nginx和php
发表于 2010-09-19 11:52    

1. 安装phpcd /usr/ports/lang/php5make config 这里记得选上fast-cgimake install clean

完成后,记得拷贝php的配置文件:cp /usr/local/etc/php.ini-recommended /usr/local/etc/php.ini

安装扩展cd /usr/ports/lang/php5-extensions/make install clean

2. 安装nginxcd /usr/ports/www/nginxma...

查看详情已有1878次阅读  |  0次点赞  |  0个评论
返回顶部 ^