首頁教程是php start.php start -d,可是我的/usr/local/php7/bin里面只有php-cgi、php-config、phpdbg、phpsize四個(gè)文件, 根本就沒有php,我直接用/usr/local/php7/bin/php-cgi start.php start -d啟動(dòng)返回
X-Powered-By: PHP/7.1.4
Content-type: text/html; charset=UTF-8
only run in command line mode
照著demo寫的這個(gè)一在瀏覽器打開就是false
<?php
$to_uid = "";
$push_api_url = "http://127.0.0.1:2121/";
$post_data = array(
"type" => "publish",
"content" => "這個(gè)是推送的測試數(shù)據(jù)",
"to" => $to_uid,
);
$ch = curl_init ();
curl_setopt ( $ch, CURLOPT_URL, $push_api_url );
curl_setopt ( $ch, CURLOPT_POST, 1 );
curl_setopt ( $ch, CURLOPT_HEADER, 0 );
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt ( $ch, CURLOPT_POSTFIELDS, $post_data );
curl_setopt ($ch, CURLOPT_HTTPHEADER, array("Expect:"));
$return = curl_exec ( $ch );
curl_close ( $ch );
var_export($return);
求教大佬應(yīng)該怎么辦。。。