Page 1 of 1

Parse error

Posted: Sat Nov 05, 2005 1:25 pm
by Nick22
I am trying to echo the results:

Code: Select all

<? echo http://68.194.205.215:777/index.php?server=Insomnia; ?>
It tells me:

Parse error: parse error, unexpected ':', expecting ',' or ';' in C:\Abyss Web Server\htdocs\index.php on line 89


Is there a way around this?

Thank you

Posted: Sat Nov 05, 2005 1:29 pm
by ambivalent

Code: Select all

echo "http://68.194.205.215:777/index.php?server=Insomnia";
?

Posted: Sat Nov 05, 2005 1:36 pm
by Nick22
That merely displays it as text I need it to actually execute and display the results.. :-s

Posted: Sat Nov 05, 2005 1:38 pm
by John Cartwright
include()

edit, your not going to be able to use include in this instance since the query string cannot be processed through include()..
Perhaps look into cURLinto grabbing the contents of this page

Posted: Sat Nov 05, 2005 2:04 pm
by Nick22
Theres no other simple method? :P Maybe by changing the script?

Posted: Sat Nov 05, 2005 2:23 pm
by Charles256
well if you know the actual page that is included by the command server=insomnia then you could hadrcode thatpage in...

Posted: Sat Nov 05, 2005 3:15 pm
by feyd
emit the result of file_get_contents() :roll: (provided your host allows remote file opens with fopen based functions)

Posted: Sat Nov 05, 2005 10:22 pm
by Nick22
So that will activate the php script and get its output?

Posted: Sat Nov 05, 2005 11:26 pm
by josh
yes