Re: [PHP] Re: newbie questions

2007-10-21 Thread Larry Garfield
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.

Re: [PHP] Re: newbie questions

2007-10-21 Thread Greg Donald
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 do

[PHP] Re: newbie questions

2007-10-21 Thread Ravi
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: newbie questions

2007-10-21 Thread Larry Garfield
On Sunday 21 October 2007, Richard Heyes wrote: > Ravi wrote: > > Richard, unfortunately I cannot end the script. I need something like > > this: > > > > > header('Location: http://www.yahoo.com'); > > // somehow let the browser move to yahoo.com > > // now update the database to store

Re: [PHP] Re: newbie questions

2007-10-21 Thread Richard Heyes
Ravi wrote: Richard, unfortunately I cannot end the script. I need something like this: http://www.yahoo.com'); // somehow let the browser move to yahoo.com // now update the database to store some information about user exit; ?> In that case you might want to look at register_shu

Re: [PHP] Re: newbie questions

2007-10-21 Thread Ravi
Richard, unfortunately I cannot end the script. I need something like this: http://www.yahoo.com'); // somehow let the browser move to yahoo.com // now update the database to store some information about user exit; ?> Richard Heyes wrote: Ravi wrote: That was very very helpful.

Re: [PHP] Re: newbie questions

2007-10-21 Thread Richard Heyes
Ravi wrote: That was very very helpful. Thanks a ton! One more question. For every request, I am sending a redirect back to the user and the browser takes the user to another url. The problem is that the browser is not redirecting until the script finishes. Even if I do flush(), the browser

[PHP] Re: newbie questions

2007-10-21 Thread Ravi
That was very very helpful. Thanks a ton! One more question. For every request, I am sending a redirect back to the user and the browser takes the user to another url. The problem is that the browser is not redirecting until the script finishes. Even if I do flush(), the browser waits til scr

[PHP] Re: newbie questions

2007-10-21 Thread M. Sokolewicz
Ravi wrote: Guys, I am fairly new to PHP. Here are a few questions, if anybody can answer it will help me get started. Thanks I am trying to build a website and I would like to do the following in my scripts 1. I want to return response to the browser and AFTERWARDS make a log entry in to

[PHP] Re: newbie questions

2004-08-29 Thread Torsten Roehr
"Kevin Bridges" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetings php-general, > > I'm just starting out with php ... judging from the posts I've been > reading on this list I'm thinking this question is so basic it might > almost be pathetic! I'm assuming the answers are i