Reply to Re: Problems Using Eval

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация