php-general Digest 10 Nov 2010 19:36:43 -0000 Issue 7031

2010-11-10 Thread php-general-digest-help
php-general Digest 10 Nov 2010 19:36:43 - Issue 7031 Topics (messages 309422 through 309431): Re: Updating a GET variable 309422 by: Tamara Temple 309423 by: Tamara Temple 309427 by: Marc Guay 309428 by: Marc Guay 309429 by: Tamara Temple Re: Chat

Re: [PHP] Updating a GET variable

2010-11-10 Thread Tamara Temple
On Nov 10, 2010, at 8:58 AM, Marc Guay wrote: foreach($_GET as $k = $v) $qs[$k] = URLDecode($v); $qs['lang'] = 'en'; echo 'a href=index.php?'.http_build_query($qa).'Flip/a'; Hi Tamara, Thanks for the tips. Do you see any advantage of this method over using a small POST form besides the

Re: [PHP] Template engines

2010-11-10 Thread tedd
At 11:38 AM -0500 11/9/10, Robert Cummings wrote: On 10-11-09 11:18 AM, tedd wrote: At 10:57 AM -0500 11/9/10, Robert Cummings wrote: On 10-11-09 10:42 AM, tedd wrote: I don't have to try them all, just the most popular. If the most popular doesn't work for me, then I don't need to try any

Re: [PHP] Help with variable variables not being set for a multi-dimensional array

2010-11-10 Thread David Harkness
On Tue, Nov 9, 2010 at 6:55 PM, Daevid Vincent dae...@daevid.com wrote: I've used variable variables before but for some reason I can't figure this snippet out. Why doesn't $ini_file get set (or appended to). AFAIK variable variables can only reference actual variables--not array subscripts

[PHP] php running as module or cgi?

2010-11-10 Thread Al
Briefly, what are the trade offs on a typical shared host? I've done a little research and can't seem to find anything outstanding either way. Seems like as an Apache module is faster. This argument makes sense. CGI is more secure, this argument doesn't seem too persuasive to me. Maybe I'm

Re: [PHP] Updating a GET variable

2010-11-10 Thread Nathan Rixham
Tamara Temple wrote: On Nov 10, 2010, at 8:58 AM, Marc Guay wrote: foreach($_GET as $k = $v) $qs[$k] = URLDecode($v); $qs['lang'] = 'en'; echo 'a href=index.php?'.http_build_query($qa).'Flip/a'; Hi Tamara, Thanks for the tips. Do you see any advantage of this method over using a small

[PHP] Re: Chat

2010-11-10 Thread Nathan Rixham
Dušan Novaković wrote: Hello there, I have to make chat for website that has around 10 000 users (small social network). So before I start, I would like to hear different opinions. Important thing is to have in mind that in one moment you can have over 1 000 users using chat. So, if you have

Re: [PHP] Template engines

2010-11-10 Thread Nathan Rixham
Daniel P. Brown wrote: On Mon, Nov 8, 2010 at 16:41, Hansen, Mike mike.han...@atmel.com wrote: I really like the idea of using a templating engine. Which one do you use? Why? For those that don't use templating engines, why don't you use them? I chose to write two of my own over the

Re: [PHP] Newbie looking for a project

2010-11-10 Thread Nathan Rixham
tedd wrote: At 12:34 PM -0500 11/8/10, Daniel P. Brown wrote: On Mon, Nov 8, 2010 at 06:29, Ashim Kapoor ashimkap...@gmail.com wrote: Writing apps on my own is fun but it's fruit is only for me to benefit from,but yes if nothing else I should do that. Not at all, many others can

[PHP] parse_ini_file() seems to be broken in PHP 5.2.4-2ubuntu5.12

2010-11-10 Thread Daevid Vincent
http://php.net/manual/en/function.parse-ini-file.php Why doesn't PHP parse the 'null', 'true', 'false', etc into their proper equivalents? What's worse is that it does this mangling of my RAW values to be strings and sets them to 1 !!! WTF good does that do me?! Here is my test.ini file:

Re: [PHP] Template engines

2010-11-10 Thread Daniel P. Brown
On Wed, Nov 10, 2010 at 20:59, Nathan Rixham nrix...@gmail.com wrote: I went back to using a pre hypertext processor, seemed like a really powerful templating engine that was v familiar to use :p Pre-hypertext preprocessor? Perl? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud

[PHP] How do I convert the string E_ALL ~E_NOTICE to the decimal equivalent 6135?

2010-11-10 Thread Daevid Vincent
We're trying to move all of our configuration files for our DEV/TEST/PROD and various python scripts and such that all need the same DB connection parameters and pathing information to a common and simple config.ini file they all can share across languages. One snag I ran into is this: [dart]

Re: [PHP] Template engines

2010-11-10 Thread David Robley
Daniel P. Brown wrote: On Wed, Nov 10, 2010 at 20:59, Nathan Rixham nrix...@gmail.com wrote: I went back to using a pre hypertext processor, seemed like a really powerful templating engine that was v familiar to use :p Pre-hypertext preprocessor? Perl? Pre Hypertext Processor - the

Re: [PHP] Template engines

2010-11-10 Thread Robert Cummings
On 10-11-11 02:20 AM, David Robley wrote: Daniel P. Brown wrote: On Wed, Nov 10, 2010 at 20:59, Nathan Rixhamnrix...@gmail.com wrote: I went back to using a pre hypertext processor, seemed like a really powerful templating engine that was v familiar to use :p Pre-hypertext