help with 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
bruceg
Forum Contributor
Posts: 174
Joined: Wed Mar 16, 2005 11:07 am
Location: Morrisville, NC
Contact:

help with parse error

Post by bruceg »

I am getting the following error on line 1

"Parse error: parse error, unexpected T_DOUBLE_ARROW in /hsphere/local/home/bruceg/inspired-evolution.com/isearch2/admin/index.php(2) : eval()'d code(1) : eval()'d code on line 1"

I have downloaded some code off of hotscripts and upload directly from the download, so not sure what could be causing the error.

Any here are the first few lines of the code for the /isearch2/admin/index page

Code: Select all

<?php

$OOO0O0O00=__FILE__;$O00O00O00=__LINE__;$OO00O0000=151204;
eval((base64_decode('JE8wMDBPME8wMD1mb3BlbigkT09PME8wTzAwLCdyYicpO3doaWxlKC0tJE8wME8wME8wMClmZ2V0cygkTzAwME8wTzAwLDEwMjQpO2ZnZXRzKCRPMDAwTzBPMDAsNDA5Nik7JE9PMDBPMDBPMD0oYmFzZTY0X2RlY29kZShzdHJ0cihmcmVhZCgkTzAwME8wTzAwLDM3MiksJ2RUNXhxM1JnRWNoa2FVeksySXdmYlhHV3VDc0Y4cEhNUEppbGVZTG9WUzk0dkJyTzYwTnRtUW4rRHlBWmoxNy89JywnQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLycpKSk7ZXZhbCgkT08wME8wME8wKTs=')));return;?>
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

the code that's in the encoded data... it's being run through eval() ... it has the error..
bruceg
Forum Contributor
Posts: 174
Joined: Wed Mar 16, 2005 11:07 am
Location: Morrisville, NC
Contact:

Post by bruceg »

how do I determine where the error is coming from b/c their are hudrens if no thousands of lines of code. being run through
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

it says right there.. line 1 of the eval'd code..

Code: Select all

$O000O0O00=fopen($OOO0O0O00,'rb');while(--$O00O00O00)fgets($O000O0O00,1024);fgets($O000O0O00,4096);$OO00O00O0=(base64_decode(strtr(fread($O000O0O00,372),'dT5xq3RgEchkaUzK2IwfbXGWuCsF8pHMPJileYLoVS94vBrO60NtmQn+DyAZj17/=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/')));eval($OO00O00O0);
is the eval'd code.. unfortunately, it is all one line, but you can break that apart into separate lines pretty easily and figure it out from there....
bruceg
Forum Contributor
Posts: 174
Joined: Wed Mar 16, 2005 11:07 am
Location: Morrisville, NC
Contact:

Post by bruceg »

it would probably help if I knew what to look for. Is T_DOUBLE_ARROW generally anything in particular?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

http://php.net/tokens

Since the eval'd code is loading a file and evaling that, you need to look into what's being run in there too...
Post Reply