CentOS-7-64bit 配置Apache + MySQL + PHP
一、配置防火墙,开启80端口、3306端口 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: #停止firewall服务 systemctl stop firewalld.service #禁止firewall开机启动 systemctl disable firewalld.service 2、安装iptable […]
一、配置防火墙,开启80端口、3306端口 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: #停止firewall服务 systemctl stop firewalld.service #禁止firewall开机启动 systemctl disable firewalld.service 2、安装iptable […]
<?php //–调用方法/demo.php?url=http://v.youku.com/v_show/id_XMzkyODA2NTEy.html echo getYoukuFlv(_GET[‘url’]); function getYoukuFlv(url){ preg_match(“#id_(.*?)\.html#”,url, […]
1.下载Wamp软件,一步一步安装,完成相关操作。 浏览器地址栏中输入http://localhost或者http://127.0.0.1 ,页面出现 it works 即为安装成功 2.我们可以到官网上下载PHP的IDE—Eclipse,下载时区分好操作系统的位数,否则会出现安装错误。 3.安装好Eclipse之后就要配置调式环境了。其实,Eclipse本身就有zend […]
实现的时post和get方法工具类 <?php /* * http request tool */ /* * get method */ namespace Home\Controller; class HttpUtils{ function get(url,param=array()){ if(!is_array(param)){ throw new Exception(&# […]
$json = Xml2Json($xml_data); echo $json; <?php // XML2Json 主程式 /// XML2JsonSub 遞迴需要用的子程式 /// Xml2Array – 由 php.net 抓來的 Xml Parse(此 class 可 parse 出 tag 中的屬性) /* // example: rss = […]
1、 启动VSFTP服务器 A:cenos下运行:yum install vsftpd B. 登录Linux主机后,运行命令:”service vsftpd start” C. 要让FTP每次开机自动启动,运行命令: “chkconfig –level 35 vsftpd on” 2、设置FTP权限 A. 编辑VSFTP配置文件,运行命令:”vi /etc/vsftpd/vsft […]
例如你的原路径是 http://localhost/test/index.php/index/add那么现在的地址是 http://localhost/test/index/add如何去掉index.php呢?1.httpd.conf配置文件中加载了mod_rewrite.so模块 //在APACHE里面去配置#LoadModule rewrite_module modules/mod_rewr […]
例如你的原路径是 http://localhost/test/index.php/index/add那么现在的地址是 http://localhost/test/index/add如何去掉index.php呢?1.httpd.conf配置文件中加载了mod_rewrite.so模块 //在APACHE里面去配置#LoadModule rewrite_module modules/mod_rewr […]
1. Wechat-PHP-SDK 微信公众平台 PHP 开发包,细化各项接口操作,支持链式调用。 Github托管地址:dodgepudding/wechat-php-sdk 2. 微信公众平台 PHP SDK 简单的微信公众平台 PHP SDK ,通过调用相应的接口,使你可以轻松地开发微信 App 。 Github托管地址:netputer/wechat-php-sdk 3. Wechat-p […]
How to install Nginx on Windows http://www.nginxtips.com/how-to-install-nginx-in-windows/ nginx: download:windows版本–http://nginx.org/en/download.html 下载windows的nginx压缩包,解压运行(nginx.exe)。 端 […]
近期评论