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
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
... 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
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
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
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
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
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
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
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
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
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;
>> }
>> ?>
>
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
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..
[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
[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
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
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
> >
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
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
[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
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
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
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
>
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
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.
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
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:
>> ---
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
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:
>
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
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
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
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
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
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
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
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
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
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) {
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
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."";
42 matches
Mail list logo