原创 PHP中使用CURL之php curl詳細解析和常見大坑

0. curl是個什麼東西 PHP supports libcurl, a library created by Daniel Stenberg, that allows you to connect and communicate t

原创 PHP 項目Apache 服務器轉到 Nignx服務器的頁面404問題解決

將下面這句代碼寫入到Nignx配置中   location / {        if (!-e $request_filename) {        rewrite  ^(.*)$  /index.php?s=/$1  last;

原创 php curl 以 POST方式(JSON數據) 發送HTTP 請求 //以防止服務端打印POST數據爲空

//客戶端代碼 $url = '接口地址'; $post_data = array( 'key'=> 'value', 'key2'=>'value', 'key3'=>'value',

原创 聚合短信接口

<?php $mobile = '1'; $ma = rand('100000','999999'); $dongtai = urlencode('#code#='.$ma); $curl = cur

原创 商盟支付接口對接

<?php $submitTime = date('YmdHis', time()); $signMsg = array(); $cart_goods = array( 'goods_