You are here: Re: Use of isset () in a string variabel « PHP Programming Language « IT news, forums, messages
Re: Use of isset () in a string variabel

Posted by Colin McKinnon on 05/10/05 11:26

Brian Olivier wrote:

> Hello,
>
> The first option is what I want, but the fact that I can't put code in
> the curlies in a string is what I wanted to know. I was hoping for a
> smart string, but I will program the intelligence outside of the
> string!
>
You seem to be trying to send code from one script to be executed in a
second - is that correct?

If so, look at 'eval' and 'create_function' which will do what you want, but
you should really think long & hard about how to implement this securely.
You certainly don't want to execute any code sent back from a browser.
Better ways of doing this would be:

1) don't do it at all
2) encrypt the code before sending it out to the browser / decrypt and
validate it before executing it
3) don't send it to the browser - store it in a session variable.

HTH

C.

 

Navigation:

[Reply to this 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

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