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 Rixham 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

Re: [PHP] Template engines

2010-11-10 Thread David Robley
Daniel P. Brown wrote: > On Wed, Nov 10, 2010 at 20:59, Nathan Rixham 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 acronym

[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] rel

Re: [PHP] Template engines

2010-11-10 Thread Daniel P. Brown
On Wed, Nov 10, 2010 at 20:59, Nathan Rixham 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? -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (8

[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] 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 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 benefit from it as well. T

Re: [PHP] Template engines

2010-11-10 Thread Nathan Rixham
Daniel P. Brown wrote: On Mon, Nov 8, 2010 at 16:41, Hansen, Mike 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 years: one procedural, one

[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 tim

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 'Flip'; Hi Tamara, Thanks for the tips. Do you see any advantage of this method over using a small POST form besides the styling problems I'll run

[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 mi

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 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 or other non-var

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 ot

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 'Flip'; Hi Tamara, Thanks for the tips. Do you see any advantage of this method over using a small POST form besides the styling problems I'll run into trying to make t

Re: [PHP] Updating a GET variable

2010-11-10 Thread Marc Guay
> foreach($_GET as $k => $v) $qs[$k] = URLDecode($v); > $qs['lang'] = 'en'; > echo 'Flip'; Hi Tamara, Thanks for the tips. Do you see any advantage of this method over using a small POST form besides the styling problems I'll run into trying to make the submit button look like an achor? Marc -

Re: [PHP] Updating a GET variable

2010-11-10 Thread Marc Guay
> Session_start(); > $_SESSION['language'] = "en"; > You can set the session variable to the current get or maintain the original > passed. I think you may have misunderstood. The problem is holding onto the existing GET variables in the URL while manipulating or adding one of them... and doing

Re: [PHP] Chat

2010-11-10 Thread Warren Windvogel
On 10/11/2010 13:11, Ken Guest wrote: On Tue, 2010-11-09 at 16:51 +0100, 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

Re: [PHP] Chat

2010-11-10 Thread Ken Guest
> On Tue, 2010-11-09 at 16:51 +0100, 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 y