Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

73 users online



eval()'d code error??

eval()'d code error??

Currently viewing this thread: 1 (0 members and 1 guests)


Chippo

Chippo

Status: Offline!

eval()'d code error??

hi could someone please help me with this error i keep getting

Quote:

Parse error: parse error, expecting `'('' in /home/chippo/public_html/olli/inc/admin/ad_func.php(51) : eval()'d code on line 2


for some reason this only effects one php page. so if someone could help me. it would be very much appreciated

evan

evan

Neverside Newbie
Status: Offline!

Code?

Chippo

Chippo

Status: Offline!

the function being called is...

PHP:

<?php
function template($which)
    {
        global 
$acp;
        
$new "class " $which "{\r";
        
$temp $this->mysql->query("SELECT * FROM `" $acp->ss['sql_prefix'] . "skin_templates` WHERE class = '$which'");
        while(
$t $this->mysql->fetch_row($temp)){
            
$new .= "function " $t['func_name'] . "(" $t['args'] . "){\n";
            
$new .= "global \$acp;\n";
            
$new .= "return <<<EOF\n";
            
$new .= $t['template'] . "\nEOF;\n\r}\n";
        }
        
$new .= "}\n";
        eval(
$new);
        return new 
$which();
    }
?>

and line 51 is

PHP:

<?php
eval($new);
?>

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0078 seconds.