包含标签 php articles

linux下查看nginx、apache、mysql、php的编译参数

在linux平台下的应用,最流行的莫过于nginx、apache、mysql、php几个。而这几个常用的应用,在手工编译完以后,在其他一些情况下(如:新增模块),往往想要查看当初都使用了那些参数进行的编译。这时候就可以利用以下方法查看。 1、nginx 1[root@361way ~]# /App/nginx/sbin/nginx -V 2nginx: nginx version: nginx/1.2.6 3nginx: TLS SNI support disabled 4nginx: configure……

Continue reading

php批量扒取网站内容

最近发现了一个“小气”的学习站点。网站内容竟然不让复制,这样搞,怎么让我们考试的时候弄小抄,难不成要一个字一个字的去打不成。所幸的是咱是搞技术的,这点问题还是难不倒的,你不让复制刚好,这下我还懒得麻烦呢。直接搞个脚本把这一课的内容全扒取下来看岂不更方便。 说搞就搞,先是看源代码。不……

Continue reading

php模块的安装

php模块安装的方式 1、静态安装 将先将在安装php之前先将需要安装的程序装上,如ftp、mhash、mcrypt……安装完成后,解压php安装包,执行./configure –with-ftp –with-mhash –wth-mcrypt等等。后面具体跟的参数可以参看./config……

Continue reading

php5.3.10的安装

下面以最新的php-5.3.10为例进行安装。 1wget http://cn.php.net/distributions/php-5.3.10.tar.gz 2tar -zxvf php-5.3.10.tar.gz 3cd php-5.3.10 4./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fpm --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap 上面的具体参数可以使用./configure –help查看 1make ZEND_EXTRA_LIBS='-liconv' 2make test 3make && make install (此处最好分开做,因为make的时候会有报错出现。) 我在上面的make时就报了……

Continue reading

php常用代码学习

PHP常用代码 最近在学习php,看视频的时候记了点。 1、连接MYSQL数据库代码 1<?php 2$connec=mysql_connect("localhost","root","root") or die("不能连接数据库服务器: ".mysql_error()); 3mysql_select_db("liuyanben",$connec) or die ("不能选择数据库: ".mysql_error()); 4mysql_query("set names 'gbk'"); 5?> 2、读取数据库,并实现循环输出 1<?php 2$sql="select * from liuyan order by ly_id desc"; 3$conn=mysql_query($sql,$connec); 4while($rs=mysql_fetch_array($conn)){ 5?> 6循环的内容......... 7<?php 8} 9?> 3、如何实现分页,……

Continue reading

php出现时区警告时的解决方法

PHP Warning: date() [function.date]: It is not safe是什么问题 在用PHP5.3以上的PHP版本时,只要是涉及时间的会报一个”PHP Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘UTC’ for ‘8.0/no DST’ instead in”这样的错。如何解决呢? 实……

Continue reading

php的几种web架构

1) 目前各种服务器HTTP Server对PHP的支持一共有三种: a.通过HTTPServer内置的模块来实现, 例如Apache的mod_php5,类似的Apache内置的mod_perl可以对perl支持; b.通过CGI来实现,这个就好比之前perl的CGI,该种方式的缺点是性能差……

Continue reading

安装Zend Optimizer与eAccelerator

下载Zend Optimizer http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz 1tar -xzvf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz 2cd ZendOptimizer-3.3.9-linux-glibc23-i386 3cd data 4cd 5_1_x_comp 5cp ZendOptimizer.so /usr/lib/php/modules/ 修改配置文件vim /etc/php.ini 加入如下两行 1zend_optimizer.optimization_level=15 #启动多少优化过程 2zend_extension=/usr/lib/php/modules/ZendOptimizer.so 然后重启下httpd服务,用phpinfo()查看,发现了 This program makes use of the Zend Scripting Language Engine: Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies 安装eAccelerator 1wget http://bart.eaccelerator.net/source/0.9.6/eaccelerator-0.9.6.tar.bz2 2#bzip2 -d eaccelerator-0.9.6.tar.bz2 3#tar -xvf eaccelerator-0.9.6.tar 4#cd eaccelerator-0.9.6 5#/usr/bin/phpize 6#./configure –enable-ea……

Continue reading

Latest articles

Categories

Tags

ACL AD AES AI AWS Ansible Atlassian Azure BMC Blockchain Brocade CDH5 CL210 Cobbler Confd C语言 DDOS DISTINCT DNS Duckdb EKS ELK GCP Ghost Git Glusterfs Go Godaddy Grafana HBA HCIE Hotspot HttpWatch IBM IIS IOS InfluxDB Ingress InnoDB JavaScript Jinja2 KVM Keepalived Mplayer MySQLdb Netlify OpenResty PM PostgreSQL QoS RH318 RH442 RHCA RHCE RHEV RSA SRE SecureCRT Statuscode SublimeText2 TC Telecom Tencentcloud VBA aira2 alpine android anpic apache apm apparmor appfog apr apt-get aria2 array atop audit awk awstats axel backdoor backup bamboo bash bat benchmark bigdata bin bind bitwise book bootstrap bsd c1000 cache capistrano catlog centos centos7 chatops chattr check_mk checkinstall cisco clearall clickhouse cloud-desktop cmdb cms collectd comm compress conver corosync cpu crontab crunchbang css curl date decode dell desktop devops df dhcp diff diskpart django docker dos2unix dpkg drupal etcd excel fail2ban fastcgi fdisk fiddler find firewalld flask flvtool ftp function fuser geek gin github gitlab glances golang google gooupadd graphviz gravatra grep grub2 hadoop haproxy hardware heartbeat helm hexdump hhvm history html http/html/web httplogs https huawei huaweicloud hugo icmp iconv ifconfig inotify iopp ipmitool iptables iredmail iscsi isito it-news java jdk jenkins jira join joomla k3s k8s kdump kernel kingate lamp last leetcode lib light-http linux linux高级篇 ln ls lsi lsof lvm lvs mac mail man mark markdown matplotlib maven memcached microservice mimikatz mkdocs mkpasswd mmonit mod_jk mongodb monit monitor mono moodle mosh mount mpm mrtg mtr my.cnf mysql mysqlbinlog mysqld_multi mysqldump mysqlhotcopy nagios nc nethogs nexus nfs nginx nmon nocatlog node.js nrpe ntfs ntop ntp obs ocr open-falcon openbox opencv openldap openssl openstack oracle oswatch paas pacemaker pam pandas parted pcp pcre pdf percona perl pexpect pgrep php php-fpm ping plsql develope postfix powershell prettify proc prometheus puppeteer pushd pwgen pxe pyecharts python python模块 radmin raid rdesktop read redhat redis redmine regex rh134 rhel7 rhel8 rm rman rootkit route rpm rpmforge rrdtool rsync rsyslog safe saltstack samba scapy screen sed selenium selinux seo seq session set shc sheepdog shell shopt sitemap skydns smokeping snffier snmp socket soft sort spider sql sqlserver squid ss ssh sshpass strace strings su sudo suse svn sysbench syslog-ng sysstat systemd t tar tcpcopy tcpdump tech telnet tengine test testlink threads time tmux tomcat touch tr tsar twisted ubuntu udev ulimit unix unixbench user-agent useradd varnish vbs vercel vi vim visudo vmstat vmware vnc voice vpn vscode vsftp vsftpd vue watchdog web webcam webistrano wget wiki windows wol wordpress workshop wsl x-windows xampp xcache xmllint xtrabackup yule yum zabbix zeromq zip zonetime zookeeper 下载工具 云主机 云原生 代理 加密 古意 吐槽 圈里圈外 娱乐 字符串函数 安全 平台架构 意林 推理 提权 故事汇 故障案例 数据结构 每日看点 民国史 生活 科学记录 站长管理工具 算法 管理 网站架构 翻墙 股票 行业 诗韵 负载均衡 远程管理 面试题

Links

Meta