PDA

View Full Version : PHP NooB....question



i3astard
20th February 2007, 11:10 AM
I'm trying to read the KoC battlefield and output it to my screen. Why is it not working?




<html>
<head>

<script>
$fp = fopen("http://www.kingsofchaos.com/battlefield.php?start=0", "r");
while ($page = fread($fp, 100)) {
echo $page;
}
</script>

</head>

<body>

Hello, World!

</body>

</html>



Any help would be greatly appreciated!

snoop
20th February 2007, 11:28 AM
Your hosting provider probably doesn't allow remote fopen because it's a security risk. Also you have an HTML error. You shouldn't have text in the head of a page.

i3astard
20th February 2007, 12:12 PM
put my script in the body?

Since i can't use the fopen...what's the best way to accomplish my goal?

snoop
20th February 2007, 12:23 PM
That script is considered a KoC cheat regardless... what part of do not view the page in anything other than a well known browser do you not understand?

~mini~
20th February 2007, 01:36 PM
the bit were he is taking it for his own personal use and KoC admins can go mess with themselfs cos what are they gonna do to blanka ?

snoop
20th February 2007, 08:34 PM
This is a thread about KoC cheating. It is closed.

Carnage
21st February 2007, 09:06 AM
i'd just like to point out, you are attempting to put php between javascript tags...