PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
Nick22
Forum Newbie
Posts: 11 Joined: Fri Nov 04, 2005 10:57 am
Post
by Nick22 » Sat Nov 05, 2005 1:25 pm
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
ambivalent
Forum Contributor
Posts: 173 Joined: Thu Apr 14, 2005 8:58 pm
Location: Toronto, ON
Post
by ambivalent » Sat Nov 05, 2005 1:29 pm
Code: Select all
echo "http://68.194.205.215:777/index.php?server=Insomnia";
?
Nick22
Forum Newbie
Posts: 11 Joined: Fri Nov 04, 2005 10:57 am
Post
by Nick22 » Sat Nov 05, 2005 1:36 pm
That merely displays it as text I need it to actually execute and display the results.. :-s
John Cartwright
Site Admin
Posts: 11470 Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:
Post
by John Cartwright » Sat Nov 05, 2005 1:38 pm
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
cURL into grabbing the contents of this page
Nick22
Forum Newbie
Posts: 11 Joined: Fri Nov 04, 2005 10:57 am
Post
by Nick22 » Sat Nov 05, 2005 2:04 pm
Theres no other simple method?
Maybe by changing the script?
Charles256
DevNet Resident
Posts: 1375 Joined: Fri Sep 16, 2005 9:06 pm
Post
by Charles256 » Sat Nov 05, 2005 2:23 pm
well if you know the actual page that is included by the command server=insomnia then you could hadrcode thatpage in...
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sat Nov 05, 2005 3:15 pm
emit the result of
file_get_contents() (provided your host allows remote file opens with fopen based functions)
Nick22
Forum Newbie
Posts: 11 Joined: Fri Nov 04, 2005 10:57 am
Post
by Nick22 » Sat Nov 05, 2005 10:22 pm
So that will activate the php script and get its output?
josh
DevNet Master
Posts: 4872 Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida
Post
by josh » Sat Nov 05, 2005 11:26 pm
yes