I tried file_get_contents, curl, fopen functions on the site http://www.pkt.pl This is the message which i get: Error 403 Forbidden Forbidden Guru Meditation: XID: 2162041449 Varnish cache server
Hi,
I got the contents with no problem using file_get_contents() !
Can you try with another URL ?
chech this page for more info:
http://php.net/manual/en/function.file-get-contents.php
Hello and thx for fast replay, What do you mean by saying another URL ? I try simply:
$site = 'http://www.pkt.pl'; $fetch = file_get_contents($site); echo $fetch; //this is empty
try this:
<?php $homepage = file_get_contents('http://www.example.com/'); echo $homepage; ?>
Yes this works fine and for many other sites also works good, but I mean this particular site
Cant help much 🙁 pkt.pl works for me!
Do you have any proxy ? are you on a company firewall that doesnt allow ?
Error 403 is a "I found, but I cant give you" message
OK thanks i try my script from other hosting probably this is the obstacle