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.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.
$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
<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
==================