[SOLVED] eval() issue
Moderator: General Moderators
[SOLVED] eval() issue
Parse error: parse error, unexpected $end in C:\Documents and Settings\dkh4658\Desktop\www\ut\index.php(9) : eval()'d code on line 323
But line 323 is the last line of my code which is </html> because it's my template.. And I've already closed the <?php tag before it so it's printing the template.. I was modifying the way my nav and pages worked with a few if statements and the pages table then I was parsed with that... Any idea's?
But line 323 is the last line of my code which is </html> because it's my template.. And I've already closed the <?php tag before it so it's printing the template.. I was modifying the way my nav and pages worked with a few if statements and the pages table then I was parsed with that... Any idea's?
hi there =]
hi, i'm new here, i think that the problem is that you forgot "}" in the end of the file.
Re: hi there =]
Could be anywhere in the filesticksys wrote:hi, i'm new here, i think that the problem is that you forgot "}" in the end of the file.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Hmm I'm pretty sure that would be the error. Have you counted your {'s and then counted your }'s ?
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
No... I matched them up in my editor.scrotaye wrote:Hmm I'm pretty sure that would be the error. Have you counted your {'s and then counted your }'s ?
http://www.ut-online.org/index.phps
check your eval() statement to see if you're missing a semicolon eval();
Edit: sorry, I didn't see your post above mine
Edit: sorry, I didn't see your post above mine
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
give this a shot
Code: Select all
eval("{$page3['PageSource']};");
// notice the extra ; inside the eval
or
$var = eval("return array({$page3});");
extract($var);
echo $PageSource;
Last edited by s.dot on Thu Aug 18, 2005 3:53 am, edited 1 time in total.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Didn't change anything. =(scrotaye wrote:give this a shot
Code: Select all
eval("{$page3['PageSource']};"); // notice the extra ; inside the eval
I'm really running out of ideas here 
Perhaps try
Perhaps try
Code: Select all
$var = $page3['PageSource'];
eval("\$var");Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.