file_get_contents error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
yaresa
Forum Newbie
Posts: 1
Joined: Sun Jan 10, 2010 1:57 pm

file_get_contents error

Post by yaresa »

hi i have a little problem :)

$adres2 = file_get_contents("http://www.rixoyun.com/kanal_d_oyunlari_oyna.htm");
this is ok
but when i make it
$adres2 = file_get_contents($url);
(i get URL variable with GET function)
it still ok.

But when i write a url with HTTP:// it gives forbidden error.
What must i do?
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: file_get_contents error

Post by social_experiment »

“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
wikedvoodoo
Forum Newbie
Posts: 1
Joined: Tue Jan 12, 2010 10:08 pm

Re: file_get_contents error

Post by wikedvoodoo »

Another good reference for 403 Forbidden errors is http://www.getnetgoing.com/HTTP-403.html
Post Reply