Author |
Message |
TrioxX
Joined: 12 Sep 2008 Posts: 2
|
Posted: Fri Sep 12, 2008 11:48 am Post subject: Error while trying to encode online |
|
|
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 |
|
 |
liaison ionCube Support
Joined: 16 Dec 2004 Posts: 2788
|
Posted: Fri Sep 12, 2008 8:45 pm Post subject: |
|
|
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 |
|
 |
TrioxX
Joined: 12 Sep 2008 Posts: 2
|
Posted: Fri Sep 12, 2008 9:26 pm Post subject: |
|
|
I tried it 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 |
|
 |
JennyJenny
Joined: 18 Sep 2008 Posts: 1
|
Posted: Thu Sep 18, 2008 4:09 pm Post subject: |
|
|
TrioxX wrote: | I tried it 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 |
|
 |
|