Reply to Re: How to make a variable named after the value of another variable?

Your name:

Reply:


Posted by <talthen.z-serwera.o2 on 08/24/05 19:05

"Kimmo Laine" <eternal.erectionN05P@Mgmail.com>
> Why do you write to $_REQUEST in the first place? $_REQUEST is the array
> that holds all the userinputs, so why would you want to write into that?
> And also why would you use variable variables method for this, when a
> simple array reference is much more simple. This makes no sense at all to
> me.

Well... it's an ultra hacking method :P
I have an engine php script and some templates in php script. It is much
easier for me to change the engine, than all the templates.
All of this is working that way:
Engine1 from template1 is generating a website, I click OK and then the date
is send to engine2, which is generating the webpage using template2.
It worked fine, but I had to make new fields available in all templates used
by engine2. So it was much easier to add new $_REQUEST items in the engine2
(rest of $_REQUEST is passed from engine1) :]
It's a bit tricky, but works fine now :)

Regards,
Talthen

[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

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