我正在尝试通过 cURL 获取动态 php 页面的内容
网络上的回应似乎
James Bond
Male, 20 Apr 1991
Email: james@gmail.com
Mobile: 09394949494
Website: www.google.com
Address: Swat
但是当我使用 cURL 获取这个 url
curl 给了我这个
Female,
Email:
Mobile:
Website:
Address:
我正在使用此代码:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://localhost/cv/formats/1.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$my_html = curl_exec($ch);
echo $my_html;
curl_close($ch);