随笔分类 -  php

1 2 下一页
laravel curl post json
摘要:<?php namespace App\BO; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Log; use \Curl\Curl; class Http { public function __construc 阅读全文
posted @ 2018-03-09 11:22 袁晓平 阅读(2042) 评论(0) 推荐(0)
[PHP] Compile an extension on Windows
摘要:https://wiki.php.net/internals/windows/stepbystepbuildhttp://blog.benoitblanchon.fr/build-php-extension-on-windows/https://wiki.php.net/internals/wind 阅读全文
posted @ 2017-12-20 10:57 袁晓平 阅读(239) 评论(0) 推荐(0)
关于windows下基于php7.0.2下编写的第一个扩展
摘要:网上的教程是比较多的,但是基于php7+windows的教程非常之少,通过几天的摸索及参考很多资料,终于发现如下可以运行。 php7要求使用vc2015,同时安装sdk,我使用的是8.1的windows sdk 8.1,我用的是win10 10586,也可以装10586的 Visual Studio 阅读全文
posted @ 2017-12-20 10:31 袁晓平 阅读(224) 评论(0) 推荐(0)
windows下php使用protobuf
摘要:1、下载protobufc https://github.com/google/protobuf/releases/download/v3.5.0/protoc-3.5.0-win32.zip解压后放d:\protoc,将d:\protoc\bin加入PATH 2、下载使用drslump/Proto 阅读全文
posted @ 2017-12-19 17:43 袁晓平 阅读(1442) 评论(0) 推荐(0)
laravel读取memcached缓存并做条件查询
摘要:public function onlineplayersource() { $res = $_POST['aoData']; $sEcho = 0; $iDisplayStart = 0; // 起始索引 $iDisplayLength = 0;//分页长度 $jsonarray= json_de 阅读全文
posted @ 2017-12-09 15:50 袁晓平 阅读(359) 评论(0) 推荐(0)
php sqlserver及xdebug扩展配置
摘要:;extension=php_bz2.dllextension=php_curl.dll;extension=php_fileinfo.dll;extension=php_ftp.dll;extension=php_gd2.dllextension=php_gettext.dll;extension 阅读全文
posted @ 2017-10-31 10:22 袁晓平 阅读(179) 评论(0) 推荐(0)
laravel连sql server报invalid handle returned问题解决方案
摘要:https://github.com/Microsoft/msphpsql/issues/116 4.1.1驱动下载地址 https://github.com/Microsoft/msphpsql/releases/tag/v4.1.1-Windows 还有一说是 在数据库配置中加入 ‘poolin 阅读全文
posted @ 2017-09-25 11:30 袁晓平 阅读(834) 评论(0) 推荐(0)
laravel + php cgi + nginx在windows平台下的配置
摘要:1.d:\xampp\php\php-cgi.exe -b 127.0.0.1:9000 -c d:\xampp\php\php.ini 2.nginx conf配置如下: #user nobody;worker_processes 1; #error_log logs/error.log;#err 阅读全文
posted @ 2017-08-21 14:03 袁晓平 阅读(556) 评论(0) 推荐(0)
php curl-class post
摘要:use \Curl\Curl; $curl = new Curl();$curl->setHeader('Content-Type', 'application/json');$curl->post('http://yuexingy.top:5100/withdraw/withdraw.php', 阅读全文
posted @ 2017-08-12 22:22 袁晓平 阅读(226) 评论(0) 推荐(0)
php guzzle post async
摘要:use GuzzleHttp\Pool;use GuzzleHttp\Client;//use GuzzleHttp\Psr7\Request;use Psr\Http\Message\ResponseInterface;use GuzzleHttp\Exception\RequestExcepti 阅读全文
posted @ 2017-08-12 22:21 袁晓平 阅读(1860) 评论(0) 推荐(0)
guzzle http异步 post
摘要:use GuzzleHttp\Pool;use GuzzleHttp\Client;//use GuzzleHttp\Psr7\Request;use Psr\Http\Message\ResponseInterface;use GuzzleHttp\Exception\RequestExcepti 阅读全文
posted @ 2017-08-12 22:17 袁晓平 阅读(1604) 评论(0) 推荐(0)
laravel调用sql server存储过程并取得ReturnValue
摘要:alter proc [dbo].[aaa]( @AgencyID int,--代理商ID @AdminID int --结算操作人ID(管理员ID))asbegin select top 5 * from tusers return 5end $dbh = DB::connection()->ge 阅读全文
posted @ 2017-08-09 18:25 袁晓平 阅读(1405) 评论(0) 推荐(0)
laravel blade模板里调用路由方法重定向
摘要:@if (Session::get('user') == NULL) {!!Redirect::to('login')!!} @endif or @if (Session::get('user') == NULL) <script> window.location = 'login'; </scri 阅读全文
posted @ 2017-07-26 11:22 袁晓平 阅读(519) 评论(0) 推荐(0)
Windows平台下PHP7添加Sqlserver扩展
摘要:1、7.0.x 1、7.0.x 7.0.x的扩展下载地址: Microsoft Drivers for PHP for SQL Server https://www.microsoft.com/en-us/download/details.aspx?id=20098 ODBC Driver: Mic 阅读全文
posted @ 2017-07-24 15:22 袁晓平 阅读(470) 评论(0) 推荐(0)
Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PHP 7 and MariaDB (instead of MySQL)
摘要:https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ This tutorial exists for these OS versions Ubuntu 16.04 (X 阅读全文
posted @ 2017-03-24 16:51 袁晓平 阅读(342) 评论(0) 推荐(0)
laravel部署常用命令
摘要:php composer install composer dump-autoload php artisan key:generate .env 及 config/database.php里的数据库服务器地址由127.0.0.1改成localhost要不然运行php artisan migrate 阅读全文
posted @ 2017-02-12 21:01 袁晓平 阅读(404) 评论(0) 推荐(0)
ubuntu16.04 64位server安装php7
摘要:You can do the following: Optionally purge PHP 5: Or directly purge it including configuration files: And finally install PHP 7: Optionally clean up u 阅读全文
posted @ 2016-05-25 15:42 袁晓平 阅读(969) 评论(0) 推荐(0)
cakephp之查询
摘要:find public find( string $type 'first' , array $query array() ) Queries the datasource and returns a result set array. Also used to perform notation f 阅读全文
posted @ 2016-05-18 17:38 袁晓平 阅读(648) 评论(0) 推荐(0)
phpstorm10.0.1和webstorm11注册
摘要:webstorm11 for win 注册时选择“License server”输入“http://15.idea.lanyus.com/”点击“OK” phpstorm10.0.1 for win 注册时选择License server,填http://idea.lanyus.com,然后点击OK 阅读全文
posted @ 2016-05-17 13:06 袁晓平 阅读(4531) 评论(0) 推荐(0)
编译pure-ftpd时提示错误Your MySQL client libraries aren't properly installed
摘要:如果出现类似configure: error: Your MySQL client libraries aren’t properly installed 的错误,请将mysql目录下的 include/mysql下的mysql.h文件以及lib/mysql下的全部文件,连接(直接复制过去或许也可) 阅读全文
posted @ 2016-05-13 18:00 袁晓平 阅读(269) 评论(0) 推荐(0)

1 2 下一页