08 2019 档案
摘要:1. php函数中static的使用 php中static的定义语句只会被执行一次,但是它的值会被函数记住,直到程序终止 举个栗子: <?php function test(){ //这个语句只会在该程序运行的第一次调用生效,但是这个值在函数执行结束后会被该函数记住, //也就是说下次执行到这个函数
阅读全文
摘要:参考链接1:https://justcoding.iteye.com/blog/1366102/ 参考链接2:https://blog.csdn.net/sinat_26204753/article/details/74178117 我使用的是jquery的$.ajax方式进行jsonp请求,方法如
阅读全文
摘要:我本地是window系统,用的是phpstudy,解决办法:用phpstudy点击其他选项菜单->打开配置文件->选择vhost-ini(或者找到nginx安装目录,打开vhost.conf),在你的站点配置里 location / { index index.html index.htm inde
阅读全文
摘要:原文链接:https://blog.csdn.net/u010505805/article/details/77896776 我的环境里php的目录是/usr/local/php/bin,所以: 第一步:vim /etc/profile(编辑环境变量) 可在最后一行敲入命令export PATH=$
阅读全文
摘要:摘取链接:https://blog.csdn.net/zhanghuiqi205/article/details/89417716 log_format格式变量: $remote_addr #记录访问网站的客户端地址 $remote_user #远程客户端用户名 $time_local #记录访问时
阅读全文
摘要:原文链接:https://blog.csdn.net/rightbeforethesix/article/details/93175086 Linux 安装好的 nginx 在sbin目录下没有nginx命令 nginx的bash命令::没有发现 1、进入 /etc/profile 文件 进行编辑
阅读全文
摘要:这里假设linux,mysql,php,nginx/apache已经装好 1.安装curl扩展(已安装可以跳过) yum -y install curl 2.curl -sS https://getcomposer.org/installer | php 要是提示bash: php: command
阅读全文
摘要:原文链接https://www.cnblogs.com/wujuntian/p/8183952.html,mysql和php下载安装包那里我有做修改,还有nginx安装的第8点有添加报错解决方案,其余未有改动。 一、安装前 1. 更新系统软件: yum update 2. 查看是否已安装wget:
阅读全文