|
Posted by Rik Wasmus on 09/26/07 15:51
On Wed, 26 Sep 2007 10:11:45 +0200, Smiley <nobody@noplace.com> wrote:
> I'm fooling around with using Eval and trying to manipulate a few =
> things. I
> ran into a couple of weird results. First of all, in one place I used=
=
> the
> following code:
>
> $filestring =3D str_replace("<?", "\n<?\n", $filestring);
> $filestring =3D str_replace("?>", "\n?>\n", $filestring);
Works here...
> Second thing, I'm having trouble getting eval to work with some of the=
=
> code,
> and I have no idea why. It grabs the code to eval from other files, a=
nd =
> I
> can't see any reason why it shouldn't work. This is the error message=
=
> I'm
> getting:
>
> Parse error: parse error, unexpected $ in
> /homepages/htdocs/parrot0123/tester.php(498) : eval()'d code on line 4=
4
>
> I exploded the eval code
Why? The raw data would tell you more.... And there's no possibly removi=
ng =
of 'empty' elements. Also be very aware of HTML rendering: look at the =
source of the output, not how it displays in a browser.
and print_r'd the results, and this is what I
> got:
>
> Array
> (
<SNIP>
Can't say I see any problem so quickly.
-- =
Rik Wasmus
Navigation:
[Reply to this message]
|