碰到诸如
Notice: Use of undefined constant CURLOPT_PROTOCOLS - assumed 'CURLOPT_PROTOCOLS' in /home/john/public_html/test/test.php on line 9 Notice: Use of undefined constant CURLPROTO_SFTP - assumed 'CURLPROTO_SFTP' in /home/john/public_html/test/test.php on line 9
这类 Use of undefined constant CURLOPT_* 错误的时候。
打开 php.ini 中 php_curl 的拓展,然后重启服务器,即可。
Advertisements