Hi,
I have an eval(...) and sometimes, (not often), i get an error.
I can catch the error quite easily,
if( FALSE === eval($code ))
{
// output the code
echo ( htmlentities($c ode );
}
That does give me the error and the code but how can i get the code to be
nicely lined up, or even have line numbers in front?
Just to make it easier to debug.
Many thanks
Sims.
I have an eval(...) and sometimes, (not often), i get an error.
I can catch the error quite easily,
if( FALSE === eval($code ))
{
// output the code
echo ( htmlentities($c ode );
}
That does give me the error and the code but how can i get the code to be
nicely lined up, or even have line numbers in front?
Just to make it easier to debug.
Many thanks
Sims.
Comment