php-general Digest 26 May 2009 14:54:50 -0000 Issue 6142

2009-05-26 Thread php-general-digest-help
php-general Digest 26 May 2009 14:54:50 - Issue 6142 Topics (messages 293151 through 293159): Re: templating engine options 293151 by: Sancar Saran 293152 by: Andrea Giammarchi 293154 by: Nathan Rixham 293159 by: tedd Background Process 293153 by:

Re: [PHP] templating engine options

2009-05-26 Thread Sancar Saran
On Tuesday 26 May 2009 03:48:41 am Nathan Rixham wrote: Sancar Saran wrote: ?php $content = 'No Comments'; if(isset($comments) and is_array($comments) and count($comments) 0 ) { $content = ''; foreach( $comments as $index = $comment ) : $content. = a href='.

RE: [PHP] templating engine options

2009-05-26 Thread Andrea Giammarchi
Finally somebody mentioned XSL Transformations. Time is relative because as you need time to learn an API to produce quickly only after a while, thanks to knowledge and confidence, XSL is the same with the advantage that you transform a data structure, rather than work over raw programming

[PHP] Background Process

2009-05-26 Thread shahrzad khorrami
Hi, I have two php scripts, first one must pass arguments to second(the php script that will take more time to process for example inserting 100 records to db, data come from first script). I search around web and find below function: function execInBackground($path, $exe, $additional) {

Re: [PHP] templating engine options

2009-05-26 Thread Nathan Rixham
Andrea Giammarchi wrote: Finally somebody mentioned XSL Transformations. Time is relative because as you need time to learn an API to produce quickly only after a while, thanks to knowledge and confidence, XSL is the same with the advantage that you transform a data structure, rather than

[PHP] Re: Background Process

2009-05-26 Thread Nathan Rixham
shahrzad khorrami wrote: Hi, I have two php scripts, first one must pass arguments to second(the php script that will take more time to process for example inserting 100 records to db, data come from first script). I search around web and find below function: function

Re: [PHP] Re: Background Process

2009-05-26 Thread kranthi
popen will allow you to read/write data to a file but not execute the php code. i am assuming that you want to execute the php script like include/require does.. if that is the case system() will serve your purposebut this requires php to be installed as a CLI ?php $res =

Re: [PHP] html and password management

2009-05-26 Thread kranthi
seems more of a firefox question than a PHP question... just replace form id=formemail method=post action=UserPrefs with form id=formemail method=post action=UserPrefs autocomplete=off https://developer.mozilla.org/en/How_to_Turn_Off_form_Autocompletion -- PHP General Mailing List

RE: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-26 Thread Ford, Mike
On 22 May 2009 20:41, Dee Ayy advised: That's what I had in my first post. What are the rest of your headers? This is what is now deployed and I consider this issue resolved, but allowing spaces in the filename across IE, FF, and Safari browsers would be the real solution. Haven't tried

Re: [PHP] templating engine options

2009-05-26 Thread tedd
At 12:46 PM -0400 5/25/09, Robert Cummings wrote: I'm going to leave this discussion here since it's eating up too much of my time :) Cheers, Rob. Rob: It's always been my experience to listen when you talk. -- so -- when you find some time AND have the inclination, could you prepare a

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-26 Thread Dee Ayy
Ashley, Don't scare me like that. I know I'm losing my eye sight, but a copy-paste-diff shows your header(Content-Disposition: attachment; filename=\$filename\); differs from my original post's header(Content-Disposition: attachment; filename=\$name\); by only the text file. This method (with

Re: [PHP] templating engine options

2009-05-26 Thread tedd
At 8:13 PM +0100 5/25/09, Stuart wrote: I too have had an off-list discussion with Nathan on this topic, and a productive one at that. -Stuart Great! Now you guys are having a three-some without me. :-) While I wasn't getting it, I was trying. Cheers, tedd -- --- http://sperling.com

[PHP] Why does PHP have such a pain in the a$$ configuration file?

2009-05-26 Thread hessiess
Something that seriously annoys me about PHP is the fact that it has a configuration file which can *completely* change the behaviour of the language. Take the following for example: -- function parse_to_variable($tplname, $array = array()) { $fh =

Re: [PHP] Why does PHP have such a pain in the a$$ configuration file?

2009-05-26 Thread Robert Cummings
On Tue, 2009-05-26 at 18:30 +0100, hessi...@hessiess.com wrote: Something that seriously annoys me about PHP is the fact that it has a configuration file which can *completely* change the behaviour of the language. Take the following for example: --

Re: [PHP] Why does PHP have such a pain in the a$$ configuration file?

2009-05-26 Thread Daniel Brown
On Tue, May 26, 2009 at 13:30, hessi...@hessiess.com wrote: Something that seriously annoys me about PHP is the fact that it has a configuration file which can *completely* change the behaviour of the language. We are very, very sorry that we've created an extensible language that pleases

Re: [PHP] Why does PHP have such a pain in the a$$ configurationfile?

2009-05-26 Thread Shawn McKenzie
Robert Cummings wrote: On Tue, 2009-05-26 at 18:30 +0100, hessi...@hessiess.com wrote: Something that seriously annoys me about PHP is the fact that it has a configuration file which can *completely* change the behaviour of the language. Take the following for example:

Re: [PHP] Why does PHP have such a pain in the a$$ configuration file?

2009-05-26 Thread Andrew Ballard
On Tue, May 26, 2009 at 1:47 PM, Robert Cummings rob...@interjinn.com wrote: [snip] Such settings are usually made available to people who know what they're doing and who need specific functionality. Cheers, Rob. Not *quite* right. The problem is that such settings are made available to

Re: [PHP] Why does PHP have such a pain in the a$$ configuration file?

2009-05-26 Thread Robert Cummings
On Tue, 2009-05-26 at 14:10 -0400, Andrew Ballard wrote: On Tue, May 26, 2009 at 1:47 PM, Robert Cummings rob...@interjinn.com wrote: [snip] Such settings are usually made available to people who know what they're doing and who need specific functionality. Cheers, Rob. Not *quite*

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-26 Thread Ashley Sheridan
On Tue, 2009-05-26 at 10:09 -0500, Dee Ayy wrote: Ashley, Don't scare me like that. I know I'm losing my eye sight, but a copy-paste-diff shows your header(Content-Disposition: attachment; filename=\$filename\); differs from my original post's header(Content-Disposition: attachment;

Re: [PHP] Why does PHP have such a pain in the a$$ configuration file?

2009-05-26 Thread Andrew Ballard
On Tue, May 26, 2009 at 2:18 PM, Robert Cummings rob...@interjinn.com wrote: On Tue, 2009-05-26 at 14:10 -0400, Andrew Ballard wrote: On Tue, May 26, 2009 at 1:47 PM, Robert Cummings rob...@interjinn.com wrote: [snip] Such settings are usually made available to people who know what they're

[PHP] db messed up

2009-05-26 Thread PJ
I am probably not doing this right, but where else can I turn (don't answer that!)... this morning my wonderful local conEdison decided they were going to waste my day by shutting off the power exactly as I was booting up my server. Hence, I cannot access a critical database... fortunately, I can

Re: [PHP] db messed up

2009-05-26 Thread Ashley Sheridan
On Tue, 2009-05-26 at 15:37 -0400, PJ wrote: I am probably not doing this right, but where else can I turn (don't answer that!)... this morning my wonderful local conEdison decided they were going to waste my day by shutting off the power exactly as I was booting up my server. Hence, I

RE: [PHP] db messed up

2009-05-26 Thread Jay Blanchard
[snip] ...this morning my wonderful local conEdison ... [/snip] [snip] ... Hydro Quebec just f***ed my server just as I was booting... [/snip] I see that you asked this on the MySQL list which would be the correct place to do this. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] db messed up

2009-05-26 Thread PJ
Ashley Sheridan wrote: On Tue, 2009-05-26 at 15:37 -0400, PJ wrote: I am probably not doing this right, but where else can I turn (don't answer that!)... this morning my wonderful local conEdison decided they were going to waste my day by shutting off the power exactly as I was booting up

Re: [PHP] db messed up

2009-05-26 Thread PJ
Jay Blanchard wrote: [snip] ...this morning my wonderful local conEdison ... [/snip] [snip] ... Hydro Quebec just f***ed my server just as I was booting... [/snip] I see that you asked this on the MySQL list which would be the correct place to do this. As you are aware, you have

Re: [PHP] db messed up

2009-05-26 Thread Ashley Sheridan
On Tue, 2009-05-26 at 15:53 -0400, PJ wrote: Ashley Sheridan wrote: On Tue, 2009-05-26 at 15:37 -0400, PJ wrote: I am probably not doing this right, but where else can I turn (don't answer that!)... this morning my wonderful local conEdison decided they were going to waste my day

RE: [PHP] db messed up

2009-05-26 Thread Jay Blanchard
[snip] As you are aware, you have nothing to offer, for if you did, you would have posted it on the MySQL list. So why are you butting in? I know what I am doing and where to look for help... obviously, the other list isn't as knowledgable as is this one. :-P [/snip] Oh a little testy

RE: [PHP] db messed up

2009-05-26 Thread Jay Blanchard
[snip] phpMyAdmin closes when trying to access that db and asks for a login. [/snip] Can you connect to the MySQL server from the command line and see the database? If so your likely problem is a config file issue with phpmyadmin? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] html and password management

2009-05-26 Thread Michael A. Peters
kranthi wrote: seems more of a firefox question than a PHP question... just replace form id=formemail method=post action=UserPrefs with form id=formemail method=post action=UserPrefs autocomplete=off https://developer.mozilla.org/en/How_to_Turn_Off_form_Autocompletion Thanks! I found that

Re: [PHP] templating engine options

2009-05-26 Thread Tom Worster
On 5/25/09 8:48 PM, Nathan Rixham nrix...@gmail.com wrote: Sancar Saran wrote: ?php $content = 'No Comments'; if(isset($comments) and is_array($comments) and count($comments) 0 ) { $content = ''; foreach( $comments as $index = $comment ) : $content. = a href='.

Re: [PHP] templating engine options

2009-05-26 Thread Tom Worster
thanks for taking the trouble to write your requirements. it made interesting reading. i've questions on three points below... On 5/25/09 6:44 PM, Nathan Rixham nrix...@gmail.com wrote: XSL Templates are near perfect, built for the job, and very powerful - but time hasn't favoured them well;

Re: [PHP] templating engine options

2009-05-26 Thread Nathan Rixham
Tom Worster wrote: thanks for taking the trouble to write your requirements. it made interesting reading. and thanks for taking the time to read it! it was a big one. i've questions on three points below... On 5/25/09 6:44 PM, Nathan Rixham nrix...@gmail.com wrote: XSL Templates are near

Re: [PHP] templating engine options

2009-05-26 Thread Nathan Rixham
Tom Worster wrote: On 5/25/09 8:48 PM, Nathan Rixham nrix...@gmail.com wrote: Sancar Saran wrote: ?php $content = 'No Comments'; if(isset($comments) and is_array($comments) and count($comments) 0 ) { $content = ''; foreach( $comments as $index = $comment ) : $content. = a href='.

Re: [PHP] templating engine options

2009-05-26 Thread Tom Worster
thanks for the pointers on xsl. i'll take a look. On 5/26/09 6:05 PM, Nathan Rixham nrix...@gmail.com wrote: it seems you're saying that there would be some kind of an intermediate level of data representation that a script can be invoked to produce from which different templates can produce

[PHP] Re: [PHP-DEV] PHP scalability problem

2009-05-26 Thread Eddie Drapkin
Processes are only spawned in shitty webserver processing models that high performing webservers don't even have. If you'll read my first link, php is rarely the client-side bottleneck (which is all that matters). And do some research, on a page that hits the database for me, the query is

[PHP] PHP scalability problem

2009-05-26 Thread tRace DOliveira
What I am trying to achieve is to have the server do less processing. Like I said PHP is a server side scripting language and each time a request is made a process is spawned and processes are heavy weight as compared to a thread which is a light weight process. So I want to take away much

[PHP] Re: [PHP-DEV] PHP scalability problem

2009-05-26 Thread Eddie Drapkin
I seriously doubt it. PHP is a better language in almost all regards and is much much more popular. A lot of people make that decision every day and I'd say most of them choose PHP. Why ask that, though? On Tue, May 26, 2009 at 11:36 PM, tRace DOliveira married...@yahoo.comwrote: Do you

[PHP] [PHP-DEV] PHP scalability problem

2009-05-26 Thread Eddie Drapkin
If you think that's a problem, then yes. Look into nginx. But honestly, you're not going to notice a speed improvement at all (maybe if you were serving 2000 loads/sec you would, but only then if it's on a small box). On Tue, May 26, 2009 at 11:52 PM, tRace DOliveira