I want to get content from lazada page using php, one of easy method is file_get_contents, however when i run the code lazada server was block it.
using php file_get_contents
$a = file_get_contents("https://www.lazada.com.my/catalog/?q=huawei+p30"); echo htmlspecialchars($a, ENT_QUOTES, 'UTF-8');
Expected result is html content result of huawei p30. Instead Lazada has block it.
Aucun commentaire:
Enregistrer un commentaire