
PHP
KSalomo
这个作者很懒,什么都没留下…
展开
-
php-cgi not found
环境 Ubuntu 20.04 LTS PHP-7.2 phpstorm 问题 phpstorm运行php页面提示php-cgi not found Please ensure that configured PHP Interpreter built as CGI program (–enable-fastcgi was specified) 解决 sudo apt-get install php-cgi原创 2020-05-19 23:52:49 · 1145 阅读 · 0 评论 -
PHP,ThinkPHP5,连接SqlServer数据库
下载 Microsoft Drivers for PHP for SQL Server 并配置 微软官方驱动地址 在window sandbox中执行安装文件(实际上只需要dll文件,所以不在主机安装),并根据php版本和是否Thread Safety取用需要的dll文件,我取用的是【php_pdo_sqlsrv_72_ts_x64.dll】和【php_sqlsrv_72_ts_x64.dll】 两个dll复制到D:\xampp\php\ext并配置php.ini,phpinfo查看,会出现pd原创 2020-05-12 19:08:48 · 1445 阅读 · 0 评论 -
php配置XDebug,用phpstorm调试thinkphp5
判断应该安装XDebug的版本 xdebug官网检测: 根据提示下载并配置 Download php_xdebug-2.9.5-7.2-vc15-x86_64.dll Move the downloaded file to D:\xampp\php\ext Edit D:\xampp\php\php.ini and add the line zend_extension = D:\xampp\php\ext\php_xdebug-2.9.5-7.2-vc15-x86_64.dll Restart原创 2020-05-11 15:39:26 · 1602 阅读 · 0 评论 -
PHP发送邮件
使用PHPMailer https://github.com/PHPMailer/PHPMailer/ 简单模板 <?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'PHPMailer/src/Exception.php'; require 'PHPMailer/s...原创 2020-04-24 15:04:40 · 357 阅读 · 0 评论