Re: file_get_contents gets 404 error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2007. 01. 11, csütörtök keltezéssel 16.55-kor Jochem Maas ezt írta:
> Németh Zoltán wrote:
> > Hi all,
> > 
> > I have some php websites, for example http://www.alterationx.hu/
> > 
> > Now I'm trying to get the site with file_get_contents, and I'm getting
> > this error:
> > 
> > Warning: file_get_contents(http://www.alterationx.hu/): failed to open
> > stream: HTTP request failed! HTTP/1.1 404 Not Found
> 
> try this?:
> 
> file_get_contents("http://www.alterationx.hu/index.php";);
> 
> (it works for me. that said it works for me without the 'index.php' at the end also.)

I tried this also, and get the same error still...

> 
> also check you logs on the site in question to figure out what exactly is going
> on (i.e. what is being requested, if anything).

Yes, I'll contact our system administrator to check the apache logs

Thanks
Zoltán Németh

> 
> > 
> > can anyone tell me why?
> > 
> > The site otherwise is working, and also getting other sites (not php) on
> > the same server with file_get_contents is working.
> > 
> > Thanks in advance
> > Zoltán Németh
> > 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux