ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> Programming

Error while trying to encode online

Author Message
TrioxX



Joined: 12 Sep 2008
Posts: 2

PostPosted: Fri Sep 12, 2008 11:48 am    Post subject: Error while trying to encode online Reply with quote

Hi,

i want to encode a script with the online encoder but i get this error:

Quote:
Parse error: parse error, expecting `'('' in functions.inc.php on line 126


But how could this be? My script is working and i dont get any errors. Only, if i try to encode it. Furthermore, i can't find any error, if i check my code.

Here's a copy of the line 116-135:

Code:
$thumbs = array();
foreach( $files[$key] as $file ) {
   $name = basename( $file );
   $split = explode('.',$name);
   $thumbs[] = array(
      'name' => $name,
      'score' => rand( 0, 100 ),
      'noext' => $split[0]
   );
}   
   foreach( GridSolver::$settings['classes'] as $gc ) {
      if( !file_exists( 'thumbs/'.$gc['dir'].'/'.$name ) ) {
         createThumb(
            'upload/'.$name,
            'thumbs/'.$gc['dir'].'/'.$name,
            $gc['width'] * GridSolver::$settings['gridSize'] - GridSolver::$settings['borderWidth'],
            $gc['height'] * GridSolver::$settings['gridSize'] - GridSolver::$settings['borderWidth']
         );
      }
   }


Can anybody help me? I need this file encoded but i can't do it :S

Kind regards,
Sascha Heldt
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2757

PostPosted: Fri Sep 12, 2008 8:45 pm    Post subject: Reply with quote

Hi

Your file is using PHP 5 syntax however the online Encoder is PHP 4 only at the moment. Our main products do support PHP 5 and I'd recommend trying an evaluation of those.
_________________
Community Admin
Back to top
View user's profile Send private message
TrioxX



Joined: 12 Sep 2008
Posts: 2

PostPosted: Fri Sep 12, 2008 9:26 pm    Post subject: Reply with quote

I tried it Smile But my evaluation is ended and now my customers are unable to use the script. So, i have two choices:

1. Buy ioncube
2. Encode online

The first choice is too much for me at the moment. The second choice is the fastest and cheaptest way for me. But i try to make my script php4 compatible.

Ty.
Back to top
View user's profile Send private message
JennyJenny



Joined: 18 Sep 2008
Posts: 1

PostPosted: Thu Sep 18, 2008 4:09 pm    Post subject: Reply with quote

TrioxX wrote:
I tried it Smile But my evaluation is ended and now my customers are unable to use the script. So, i have two choices:

1. Buy ioncube
2. Encode online

The first choice is too much for me at the moment. The second choice is the fastest and cheaptest way for me. But i try to make my script php4 compatible.

Ty.


Same thing happened to me. Rewriting for PHP 4 compatibility worked.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> Programming All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum