php
fanfan_y
linux爱好者,追求代码的完美,强迫症
展开
-
php8 之 命名参数
php8 之 命名参数原创 2020-12-10 19:52:16 · 712 阅读 · 0 评论 -
php8 源码编译安装
php8 源码编译安装1. 下载源码包wget https://www.php.net/distributions/php-8.0.0.tar.gz2. 安装依赖yum -y install autoconf freetype gd libpng libpng-devel libjpeg libxml2 libxml2-devel zlib curl curl-devel net-snmp-devel libjpeg-devel php-ldap openldap-devel openl原创 2020-12-10 19:29:25 · 1327 阅读 · 0 评论 -
原生 JavaScript 封住 ajax
原生 JavaScript 封住 ajaxvar loadData = function (obj) { "use strict"; // obj is null var obj = obj || {}; var type, url, success, error, data, result; type = obj.type || "post"; url = obj.url || ""; success = obj.success || ""原创 2020-11-19 17:25:06 · 161 阅读 · 0 评论 -
php - smarty实现原理
smarty 模板引擎实现原理1. 目录结构libs Smarty.phpapp controller index.php view index.htmlruntime temp2. Smarty.php 类<?php /** * Smarty */class Smarty{ fu...原创 2020-02-27 20:34:45 · 209 阅读 · 0 评论 -
thinkphp6 从无到有的安装之路
此教程在linux下制作(centos8)1. 下载安装 并 修改权限git clone https://gitee.com/liu21st/thinkphp.git tp62.虚拟主机配置vi /opt/lamp/apache24/conf/extra/httpd-vhosts.conf<VirtualHost *:80> ServerName t...原创 2020-02-23 12:09:54 · 835 阅读 · 0 评论 -
php执行shell命令
php执行shell命令php 操作shell函数1. system()$shell = "ls";$shell = "df -Th"; // 查看硬盘空间$shell = "ifconfig"; // 查看网卡配置$shell = "free -m"; // 查看内存使用情况echo "<pre>";system($shell, $s);echo $s;...原创 2020-02-16 18:44:12 · 1037 阅读 · 0 评论