我是新来的PHP,我试图创建一个简单的例子来调用我们公司的API。我得到了NetBeans IDE 7.1.2昨天晚上工作(耶),但我似乎无法得到以下代码来显示任何东西。我可以在调试器中运行它。我可以穿过它。我甚至可以没有错误地结束,但curl_exec只返回0.我已经添加了CURLOPT_PROXYPORT,这样我就可以看到流量,但提琴手什么也看不到。我也试图运行这个作为一个PHP命令行(如果有
<?php
// open the current directory
$dhandle = opendir('.');
// define an array to hold the files
$files = array();
if ($dhandle) {
// loop through all of the files
while (false !== ($