test_curl_getinfo

Run Settings
LanguagePHP
Language Version
Run Command
<?php // 创建一个cURL句柄 $ch = curl_init('http://www.yahoo.com/'); // 执行 curl_exec($ch); // 检查是否有错误发生 if(!curl_errno($ch)) { $info = curl_getinfo($ch); echo 'Took ' . $info['total_time'] . ' seconds to send a request to ' . $info['url']; } // Close handle curl_close($ch); ?>
Editor Settings
Theme
Key bindings
Full width
Lines