Fopen not working?
Posted: Tue Jun 15, 2010 11:31 am
Alright, so the deal is, I want to read the contents of this page:
http://www.skrivebua.no/index.html?skri ... bnr=581780
And here goes my code:
I get this error:
[text]
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
Object not found!
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
15.06.2010 18:25:13
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 [/text]
The weird thing is, if I use the code on another website, for instance http://www.tibia.com, the site gets displated perfectly. What am I doing wrong?
Thanks in advance!
http://www.skrivebua.no/index.html?skri ... bnr=581780
And here goes my code:
Code: Select all
$fp1 = fopen("http://www.skrivebua.no/index.html?skrivebua.cgi?a=lesbidrag&bnr=581780", "r");
while (feof($fp1) != 1)
$text= $text.stripslashes(fgets($fp1,10000)); str_replace("+", " ", $text);
echo $text;Code: Select all
[text]
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
Object not found!
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
15.06.2010 18:25:13
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 [/text]
The weird thing is, if I use the code on another website, for instance http://www.tibia.com, the site gets displated perfectly. What am I doing wrong?
Thanks in advance!