Re: [PHP] PHP scalability problem

2009-05-26 Thread Per Jessen
tRace DOliveira wrote: > 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. On

[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 wrote: > I also thought

[PHP] [PHP-DEV] PHP scalability problem

2009-05-26 Thread Eddie Drapkin
... no Apache uses processes, but can also use threads. nginx and lighttpd both use a threaded model. But you seem to have this idea in your head that it's PHP's fault and switching to a threaded webserver / CGI model will solve any noticeable scalability problems, so feel free to ditch PHP for

[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 wrote: > > Do you agree with me that whe

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

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

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" 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 different

Re: [PHP] templating engine options

2009-05-26 Thread Nathan Rixham
Tom Worster wrote: On 5/25/09 8:48 PM, "Nathan Rixham" wrote: Sancar Saran wrote: 0 ) { $content = ''; foreach( $comments as $index => $comment ) : $content. = "".$comment->title.""; endforeach; } ?> Comments index.php ob_start(); require('template.php'); echo ob_get_clean(); I'm stil

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" wrote: XSL Templates are near perfect, built

Re: [PHP] db messed up

2009-05-26 Thread Tom Worster
On 5/26/09 4:11 PM, "Ashley Sheridan" wrote: > I can't find anything that will repair a whole database, only individual > tables. It's odd that you can't even connect to the database at all, :-/ isn't mysql_upgrade --force a script that effectively runs repair table on all your databases and tab

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" wrote: > XSL Templates are near perfect, built for the job, and very powerful - > but time hasn't favoured them well; and until (if

Re: [PHP] templating engine options

2009-05-26 Thread Tom Worster
On 5/25/09 8:48 PM, "Nathan Rixham" wrote: > Sancar Saran wrote: >> > $content = 'No Comments'; >> if(isset($comments) and is_array($comments) and count($comments) > 0 ) { >> $content = ''; >> foreach( $comments as $index => $comment ) : $content. = "".$comment->title.""; endforeach; >> } >> ?> >

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 with https://developer.mozilla.org/en/How_to_Turn_Off_form_Autocompletion Thanks! I found that for xhtml I had to use following DOCTYPE to get it to validate: "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd

[PHP] Re: db messed up

2009-05-26 Thread Shawn McKenzie
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 cannot access a critical database..

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 unsubscribe

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 toda

Re: [PHP] db messed up

2009-05-26 Thread PJ
Ashley Sheridan wrote: > 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 wonder

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

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, y

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 b

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 unsubscribe

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

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

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 wrote: > On Tue, 2009-05-26 at 14:10 -0400, Andrew Ballard wrote: >> On Tue, May 26, 2009 at 1:47 PM, Robert Cummings >> wrote: >> > [snip] Such settings are usually made >> > available to people who know what they're doing and who need specific >

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: attachmen

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

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 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 everyone, even tho

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 Daniel Brown
On Tue, May 26, 2009 at 13:30, 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 thousands upon tho

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

[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 = fo

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

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 sim

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 ht

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 t

Re: [PHP] html and password management

2009-05-26 Thread kranthi
seems more of a firefox question than a PHP question... just replace with https://developer.mozilla.org/en/How_to_Turn_Off_form_Autocompletion -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 but as Nathan suggested it woul

[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 execInBackground($pat

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 work

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

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: > > > $content = 'No Comments'; > > if(isset($comments) and is_array($comments) and count($comments) > 0 ) { > > $content = ''; > > foreach( $comments as $index => $comment ) : $content. = "".$comment->title."";