比如:
======================
$handler=curl_init("http//www.nps.cn/");
$out = curl_exec($handler);
echo $out;
curl_close($handler);
======================
执行后可以正常显示出www.nps.cn的内容而:
======================
$handler=curl_init("https://www.nps.cn/");
$out = curl_exec($handler);
echo $out;
echo strlen($out);
curl_close($handler);
======================
访问则是空
======================
$handler=curl_init("http//www.nps.cn/");
$out = curl_exec($handler);
echo $out;
curl_close($handler);
======================
执行后可以正常显示出www.nps.cn的内容而:
======================
$handler=curl_init("https://www.nps.cn/");
$out = curl_exec($handler);
echo $out;
echo strlen($out);
curl_close($handler);
======================
访问则是空
解决方案 »
- 老师们吗!
- 我用mbstring扩展时的问题~~~怎么办??
- 刚学php,感觉session没有想象中的那么好,请大家进来谈谈!
- 使用crul抓取内容的时候。
- 请教,您的会话已过期 请重新登陆?
- 小的刚刚学php因个人能力有限,特向php高手求一段代码。
- 帮忙解决一下PHP操作字符串的问题!!
- 用 form 來偉 textarea 中的中文,用 _POST[] 讀出來是亂碼,要怎麼處理這個問題???
- 求将图象上传至mysql的上传,存贮,输出,全部原程序极详细说明急!最好是立刻能用!
- 求教:最近我们要做一个网页,我以前没做过,应该学些什么?
- 各位在山东的PHP用者,请问你们的一些情况,调查用!
- php base64与java(android)base64 有误差 求解决方案
fOpen in PHP 5 can't send file i guees there is a bug in it. test with PHP 5.0.0b3 in WIN Platform
And PHP 4.3 work great in all conection. test with PHP 4.3.5RC2 in WIN Platform
i havent test it in other PHP Version.但是你说的和文字作者说的好像又不一致了哦