PHP(全称:PHP:Hypertext Preprocessor,即“PHP:超文本预处理器”)是一种开源的通用计算机脚本语言,尤其适用于网络开发并可嵌入HTML中使用。PHP的语法借鉴吸收C语言、Java和Perl等流行计算机语言的特点,易于一般程序员学习。PHP的主要目标是允许网络开发人员快速编写动态页面,但PHP也被用于其他很多领域。
2020年06月05日
摘要:中文工具包,繁简、拼音等composerrequireyurunsoft/chinese-util
阅读全文Writer @ ybzai 19:21 PHP教程
2020年11月27日
摘要:配置文件php.ini;Onwindows:extension_dir="E:\\php8\\ext"zend_extension=opcache[opcache];DeterminesifZendOPCacheisenabledopcache.enable=1;DeterminesifZendOPCacheisenabledfortheCLIversionof
阅读全文Writer @ ybzai 19:17 PHP教程
2020年03月26日
摘要:查看64位还是32位,uname-a运行命令cat/etc/redhat-release查看系统版本。【关闭防火墙】运行systemctlstatusfirewalld命令查看当前防火墙的状态。如果防火墙的状态参数是inactive,则防火墙为关闭状态。如果防火墙的状态参数是active,则防火墙为开启状态。临时关闭防火墙,运行命令systemctlstopfirewalld永久关闭防火墙,运行命
阅读全文Writer @ ybzai 22:09 文章
2020年03月26日
摘要:下载xdebughttps://xdebug.org/download通过phpinfo()查看自己需要的版本。nts,vc14到底是什么。php.ini配置,添加zend_extension="D:\\phpStudy\\php\\php-7.1.33-nts\\ext\\php_xdebug-2.9.4-7.1-vc14-nts-x86_64.dll"xdebug.remote_enable=1xdeb
阅读全文Writer @ ybzai 21:54 工具
2020年03月22日
摘要:命令行执行,浏览器不行简体转繁体$aa=\'我买了3个鼠标,坏了两个。\';$result=exec("echo{$aa}|opencc-cF:/opencc/s2t.json");echo\'<pre>\';var_dump($result);exit;【或】输出数组exec("echo{$aa}|opencc-cE:\\opencc\\s2t.json",$result);echo\'<p
阅读全文Writer @ ybzai 23:19 工具
2020年03月22日
摘要:if(!function_exists(\'is_email_valid\')){/***[is_email_valid验证邮箱合法]*@param[type]$email[description]*@returnboolean[description]*/functionis_email_valid($email=\'\'){if(preg_match(\'/[_a-zA-Z\\d\\-\\.]+(@[_a-z
阅读全文Writer @ ybzai 23:21 PHP教程
2020年03月22日
摘要:namespacecommon\\helper;/***常用PHP函数方法汇总*FileNameTools.php*@authorsgod*@date2017-08-0315:07:09*@version$Id$*/classTools{/****判断是否微信浏览器内打开*@paramstring$userAget可选参数用户浏览器useAgent头*@returnboolean*/publicst
阅读全文Writer @ ybzai 23:21 PHP教程
2020年03月22日
摘要:namespacecommon;usePHPMailer\\PHPMailer\\PHPMailer;/***composerrequirephpmailer/phpmailer*发送邮箱验证码*/classSendEmail{privatestatic$from_url=\'\';privatestatic$from_name=\'\';privatestatic$host=\'smtp.qq.com\';pr
阅读全文Writer @ ybzai 23:20 PHP教程
2020年03月22日
摘要:functionapiUrl($url,$is_array=false,$is_post=false,$post_data=array()){$data=$is_array?array():\'\';if(!$url){return;}$ch=curl_init();curl_setopt($ch,CURLOPT_URL,$url);curl_setopt($ch,CURLOPT_RETURNTRAN
阅读全文Writer @ ybzai 23:20 PHP教程
2020年03月22日
摘要:composer安装thinkphp5.1composercreate-projecttopthink/thinktp更新框架命令:composerupdatetopthink/frameworkcomposer添加验证码扩展composerrequiretopthink/think-captchathinkphp5文件/图片上传/下载类库,安装composerrequirerol/uploadd
阅读全文Writer @ ybzai 23:22 ThinkPHP教程
2020年03月22日
摘要:用到packagist.org和github网站创建账号github添加项目,tag的更新在releases里面修改不然composer你包的话,就要加上dev-master了第一天的包可能在缓存里,没有在它的数据库了packagist右上角提交两边实时更新,在packagist里找到api令牌放到github设置/集成与服务,写上自己的用户名网址是packagist.org就行了
阅读全文Writer @ ybzai 23:24 工具
2020年03月22日
摘要:php命令添加到path环境变量里面错误:Warning:copy():Unabletofindthewrapper"https"php.ini中把extension=php_openssl.dll前面的“;”删掉就行了在命令行里,依次执行php-r"copy(\'https://install.phpcomposer.com/installer\',\'composer-setup
阅读全文Writer @ ybzai 22:30 工具
2020年03月22日
摘要:在Centos7下搭建Apache+PHP运行环境查看centos版本cat/etc/redhat-release检查是否安装过apacherpm-qa|grephttpd检查是否安装过Mysqlservicemysqldstart清理Mysql痕迹yumremovemysqlrm-f/etc/my.cnf卸载Apache包rpm-qa|grephttpd安装Apacheyum-yinstallh
阅读全文Writer @ ybzai 23:29 文章
2020年03月21日
摘要:phpQuery::newDocumentFile($htmlFile);//之后phpQuery::$documents=array();//或者unset(phpQuery::$documents);while(true){phpQuery::newDocumentFile($htmlFile);//处理网页元素...phpQuery::$documents=array();echomemor
阅读全文Writer @ ybzai 23:32 文章
2020年03月21日
摘要:php56版本部分ajax错误HTTP_RAW_POST_DATAisdeprecated头部错误原因Deprecated:Automaticallypopulating$HTTP_RAW_POST_DATAisdeprecatedandwillberemovedinafutureversion.Toavoidthiswarningset\'always_populate_raw_post_data
阅读全文Writer @ ybzai 22:00 解决