当前域中的CURL返回127.0.0.1

时间:2017-10-13 18:36:49

标签: php ubuntu

我有这个PHP代码,使用CURL从网站获取IP地址:

SELECT  "cars"."review".* 
FROM "cars"."review"
WHERE 
EXISTS (SELECT * FROM cars.cars_tags 
        WHERE cars.cars_tags.car_id = cars.review.cars_id 
        AND cars.cars_tags.tag_id = '91782e95-8c5d-4254-82ab-b11a21306c18')
AND
EXISTS (SELECT * FROM cars.cars_tags 
        WHERE cars.cars_tags.car_id = cars.review.cars_id 
        AND cars.cars_tags.tag_id = '9031cec30-df27-471e-858d-53c3d9657c8a')
ORDER BY "cars"."review"."score" DESC LIMIT 100

当我将另一个网站与我的网站不同时,它会正确返回网址,但从我通知我的网域的那一刻起,它会返回$ip = curl_getinfo($ch, CURLINFO_PRIMARY_IP);

我该如何解决这个问题?它在服务器上吗?

0 个答案:

没有答案