Parse error

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

Post Reply
Nick22
Forum Newbie
Posts: 11
Joined: Fri Nov 04, 2005 10:57 am

Parse error

Post 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
User avatar
ambivalent
Forum Contributor
Posts: 173
Joined: Thu Apr 14, 2005 8:58 pm
Location: Toronto, ON

Post by ambivalent »

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 »

That merely displays it as text I need it to actually execute and display the results.. :-s
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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
Nick22
Forum Newbie
Posts: 11
Joined: Fri Nov 04, 2005 10:57 am

Post by Nick22 »

Theres no other simple method? :P Maybe by changing the script?
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

well if you know the actual page that is included by the command server=insomnia then you could hadrcode thatpage in...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

emit the result of file_get_contents() :roll: (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 »

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 »

yes
Post Reply