php-general Digest 22 Oct 2007 11:00:45 -0000 Issue 5085
Topics (messages 263479 through 263482):
Re: newbie questions
263479 by: Greg Donald
263480 by: Larry Garfield
Re: Is it possible to restart Windows Apache (service) on a PHP script?
263481 by: Louie Miranda
Re: Unsetting a header
263482 by: Richard Heyes
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
On 10/21/07, Ravi <[EMAIL PROTECTED]> wrote:
> Maybe you have a point. I will do performance testing and then decide if
> I should try to optimize to that point.
>
> Yes the logging is just one simple insert into the database.
Does your database support some form of INSERT DELAYED ?
Like MySQL does: http://dev.mysql.com/doc/refman/5.0/en/insert-delayed.html
--
Greg Donald
http://destiney.com/
--- End Message ---
--- Begin Message ---
I will bet you money that there are far better places to optimize your
application than moving a single SQL insert to after the final output.
On Sunday 21 October 2007, Ravi wrote:
> Maybe you have a point. I will do performance testing and then decide if
> I should try to optimize to that point.
>
> Yes the logging is just one simple insert into the database.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson
--- End Message ---
--- Begin Message ---
Thanks for your suggestions.
But, both did not worked.
Louie
On 10/19/07, Philip Thompson <[EMAIL PROTECTED]> wrote:
>
> On 10/19/07, Robert Degen <[EMAIL PROTECTED]> wrote:
> >
> > Why don't you try a
> >
> > passthru('net apache restart')
> >
> > perhabs another parameter order, but I think It won't work.
> > Stopping it might work, but restarting...
> >
> >
> >
> > On Fr, Okt 19, 2007 at 04:32:45 +0800, Louie Miranda wrote:
> > > Is it possible to restart Windows Apache (service) on a PHP script?
> > >
> > > i have installed PHP/Apache on a Windows machine. Added the ext
> > windows32
> > > service.
> > > But could not find any how to or information online.
> > >
> > > Please help!
> > >
> > > --
> > > Louie Miranda ([EMAIL PROTECTED])
> >
>
> This reminds me of the time I was remoting into a machine (using Altiris,
> I
> think) to do some work on it. I then needed to restart it... so I did.
> Well,
> class, what happens when you turn off Mr. Computer?
>
> Not saying that this is the same thing... b/c if you push a "restart"
> command, then it *should* come back up. =/ Sorry, I don't know the exact
> command, but consider using exec().
>
> Good Luck,
> ~Philip
>
> PS... Yay, it's Friday!
>
--
Louie Miranda ([EMAIL PROTECTED])
http://www.axishift.com
Security Is A Series Of Well-Defined Steps
chmod -R 0 / ; and smile :)
--- End Message ---
--- Begin Message ---
Maybe I'm being dense, but why not set it to what you want it to be?
Clearing it is leaving the decision up to the browser which will not
necessarily have the effect you want for all users.
Incidentally, it might not be possible if Apache is setting it. Not sure
if PHP has the ability to override headers being sent by Apache.
The two have different effects. The Expires: header proclaims that the
page is good for x hours/minutes/days etc. Whereas the browser can use
the Last-Modified header to figure the staleness for itself. If its
newer than the copy it has, it needs to download the newer copy.
--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
--- End Message ---