Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

failed to open stream: HTTP request failed! HTTP/1.1 503 Service Unavailable

58 views
Skip to first unread message

Amit Prakash Pawar

unread,
Dec 17, 2009, 5:25:23 AM12/17/09
to
Hi,
I am trying to read the content of url.
when manually i put url in browser

link : http://www.mvnforum.com/mvnforum/viewmember?member=pbmissions
it opens.

but using code
[code]
$homepage = file_get_contents('http://www.mvnforum.com/mvnforum/
viewmember?member=pbmissions');
echo $homepage;
[/code]

Warning: file_get_contents(http://www.mvnforum.com/mvnforum/
vie...ber=pbmissions) [function.file-get-contents]: failed to open
stream: HTTP request failed! HTTP/1.1 503 Service Unavailable in C:
\xampp\htdocs\test.php on line 2

What is problem ?
How to solve this?

C. (http://symcbean.blogspot.com/)

unread,
Dec 17, 2009, 6:40:41 AM12/17/09
to
On Dec 17, 10:25 am, Amit Prakash Pawar <amitppawar2...@gmail.com>
wrote:

Probably nothing wrong with your code, but www.mvnforum.com for some
reason does not want to talk to your client. Do you own the code on
that site? If not, have you spoken with the peolpe who do?

C.

Amit Prakash Pawar

unread,
Dec 24, 2009, 2:57:46 AM12/24/09
to
I am just reading the html file

$homepage = file_get_contents('http://www.mvnforum.com/mvnforum/
viewmember?member=pbmissions');
echo $homepage;

Warning: file_get_contents(http://www.mvnforum.com/mvnforum/


vie...ber=pbmissions)
[function.file-get-contents]: failed to open stream: HTTP request
failed!
HTTP/1.1 503 Service Unavailable in C:\\xampp\htdocs\test.php on line
2

What exactly the problem??


On Dec 17, 4:40 pm, "C. (http://symcbean.blogspot.com/)"


<colin.mckin...@gmail.com> wrote:
> On Dec 17, 10:25 am, Amit Prakash Pawar <amitppawar2...@gmail.com>
> wrote:
>
>
>
> > Hi,
> > I am trying to read the content of url.
> > when manually i put url in browser
>
> > link :http://www.mvnforum.com/mvnforum/viewmember?member=pbmissions
> > it opens.
>
> > but using code
> > [code]
> >       $homepage = file_get_contents('http://www.mvnforum.com/mvnforum/
> > viewmember?member=pbmissions');
> >       echo $homepage;
> > [/code]
>
> > Warning: file_get_contents(http://www.mvnforum.com/mvnforum/
> > vie...ber=pbmissions) [function.file-get-contents]: failed to open
> > stream: HTTP request failed! HTTP/1.1 503 Service Unavailable in C:
> > \xampp\htdocs\test.php on line 2
>
> > What is problem ?
> > How to solve this?
>

> Probably nothing wrong with your code, but www.mvnforum.comfor some

Jerry Stuckle

unread,
Dec 24, 2009, 8:31:03 AM12/24/09
to

<Top posting fixed>

As C. said - they've probably blocked script access to their site.

And as C. asked - do you own the site? If not, have you spoken to the
people who do?


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstu...@attglobal.net
==================

0 new messages