
lamp
u012677972
这个作者很懒,什么都没留下…
展开
-
Red Hat 安装MySQL
[root@localhost ~]# yum -y install gcc make cmake ncurses-devel libxml2-devel libtool-ltdl-devel gcc-c++ autoconf automake bison zlib-devel[root@localhost ~]# wget http://www.mysql.com/Downloads原创 2015-06-17 15:17:48 · 1111 阅读 · 0 评论 -
RedHat 下的火狐浏览器查看cookie
编辑->首选项->隐私->删除私人cookie原创 2015-07-04 11:15:57 · 454 阅读 · 0 评论 -
重定向用户
header(“Location: http://www.xxx.com");原创 2015-06-23 00:00:55 · 404 阅读 · 0 评论 -
Linux网络相关配置
1.ip地址和子网掩码的配置:#ifconfig eth0 192.168.0.17 netmask 255.255.255.0#ifconfig eth0:1 192.168.0.18 netmask 255.255.255.0原创 2015-06-22 15:14:57 · 349 阅读 · 0 评论 -
使用隐藏字段来保存状态
numguess2.php:$num_to_guess = 42;$num_tries = (isset($_POST["num_tries"])) ? $_POST["num_tries"] + 1 : 1;if (!isset($_POST["guess"])) {$message = "Welcome to the guessing machine!";}转载 2015-06-21 20:43:39 · 479 阅读 · 0 评论 -
在单个页面上组合HTML和PHP代码
numguess.php:$num_to_guess = 42;if (!isset($_POST["guess"])) {$message = "Welcome to the guessing machine!";} else if ($_POST["guess"] > $num_to_guess) {$message = $_POST["guess"]." is原创 2015-06-21 20:17:46 · 664 阅读 · 0 评论 -
使用用户定义数组访问表单输入
formwithselect.html:An HTML form including a SELECT elementName:Select Some Products:Sonic ScrewdriverTricorderORAC AIHAL 2000send.formwithselect.ht原创 2015-06-20 20:22:41 · 370 阅读 · 0 评论 -
创建一个简单的输入表单
A simple HTML formName:Message:以上是simpleform.html的内容echo "Welcome ".$_POST["user"]."!";echo "Your message is:".$_POST["message"]."";?>以上是send_simpleform的内容原创 2015-06-20 11:17:51 · 489 阅读 · 0 评论 -
函数:isset()
函数:isset()变量处理函数库isset判断变量是否已配置。语法: int isset(mixed var);返回值: 整数函数种类: PHP 系统功能内容说明本函数用来测试变量是否已经配置。若变量已存在则返回 true 值。其它情形返转载 2015-06-21 18:49:27 · 787 阅读 · 0 评论 -
对vim配置文件/etc/vimrc进行简单设置
在/etc/vimrc的末尾加入如下几行: syntax on set autoindent set cindent set nu 分别表示: 语法加亮 第二三行表示自动缩进 最后一行是设置行号原创 2015-06-20 10:20:57 · 1081 阅读 · 0 评论 -
Linux 下yum安装php
yum install -y php## 这个只安装PHP## 建议安装运行库及MySQL的支持yum install -y php php-devel php-mysql## 如果你的系统是CentOS 5.6那么上面这条命令安装的是PHP 5.1,要安装 PHP 5.3则执行下面的命令:yum install -y php53 php53-devel php53-mysql转载 2015-06-19 10:15:04 · 631 阅读 · 0 评论 -
Apache 默认的根文档目录
/var/www/html原创 2015-06-19 00:02:08 · 346 阅读 · 0 评论 -
linux下mysql命令大全
linux下mysql命令大全转载 2015-06-19 11:08:03 · 310 阅读 · 0 评论 -
php学习路线
转载 2015-06-19 10:59:15 · 346 阅读 · 0 评论 -
Linu下安装php及测试
85 tar -zxvf php-5.4.41.tar.gz -C /usr/src/ 86 cd /usr/src/php-5.4.41/ 87 ./configure --prefix=/usr/local/php5 --with-mysql=/usr/local/mysql/ --with-gd --with-zlib --enable-mbstring --enabl原创 2015-06-19 10:06:21 · 233 阅读 · 0 评论 -
Virtual Box 下Red Hat 上网
1.一般WiFi下需要桥连方式上网1)设置虚拟机IP与宿主机IP于同一网段,子网掩码一致2)设置DNS,两个比较好的DNS: 8.8.8.8 114.114.114原创 2015-06-18 23:03:48 · 335 阅读 · 0 评论 -
解决redhat自带yum不能用的问题
[root@localhost ~]# yum install libtoolLoaded plugins: rhnplugin, securityThis system is not registered with RHN.RHN support will be disabled.Setting up Install ProcessNothing to d转载 2015-06-17 19:03:40 · 521 阅读 · 0 评论 -
查看某个php函数的简单方法
http://www.php.net/方法名如:htttp://www.php.net/setcookie可以查看setcookie的用法原创 2015-07-04 11:24:09 · 409 阅读 · 0 评论