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
Hi Nathan,
Thanks for taking the time to reply.
Yes, this is a shared server. Each (UNIX) user's home directory is thier
domain name i.e. /home/usersdomainnamehere.com and thier http root is www
i.e. /home/usersdomainnamehere.com/www
I am running apache 2. and mod_php. Most servers are
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
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
damn hotmail blows
But if the database supports it, what about using a view that is made up of the
two tables?
Could that be a possibility?
Bastien
From: [EMAIL PROTECTED] To:
php-general@lists.php.net Date: Sat, 20 Oct 2007 21:39:03 -0400
Richard, unfortunately I cannot end the script. I need something like this:
?php
header('Location: 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:
Possibly... I've never read about MySQL views, so I can't refute it :)
The problem at hand is solved, but thanks. Might have to give views a
glance in TFM.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ravi wrote:
Richard, unfortunately I cannot end the script. I need something like this:
?php
header('Location: 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
Does anyone know of a way to unset a header? I have an Expires: header
that I believe Apache is setting, and I don't want it. Thanks.
--
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
--
PHP
On Sat, 2007-10-20 at 18:45 -0700, Instruct ICC wrote:
One idea that has always been REALLY popular around here... stuff your
image in a database. *MUHAWHAWHAWHAWHAW* *Ducks from the flying rocks*.
Cheers,
Rob.
--
Rob:
That's really not a bad idea, but in this
Try this never gives me a problem. I use it to keep proxy servers from
caching.
?
header(HTTP/1.1 200 OK);
header(Status: 200 OK);
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); //
Date in the past
header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); // always
modified
Try this never gives me a problem. I use it to keep proxy servers from
caching.
?
header(HTTP/1.1 200 OK);
header(Status: 200 OK);
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); //
Date in the past
header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT);// always
On Sunday 21 October 2007, Richard Heyes wrote:
Ravi wrote:
Richard, unfortunately I cannot end the script. I need something like
this:
?php
header('Location: http://www.yahoo.com');
// somehow let the browser move to yahoo.com
// now update the database to store some
Let me reiterate, I want this page to get cached, but not based on an
Expires: header. Rather a Last-Modified header.
Have you tried setting the value to FALSE, NULL, or something else? I
recall having read something along those lines. I'll see if I can find
it again, meanwhile you could
[EMAIL PROTECTED] wrote:
Try this never gives me a problem. I use it to keep proxy servers from
caching.
But I want the page to be cached...
--
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
Have you tried setting the value to FALSE, NULL, or something else?
Yes, nada I'm afraid.
--
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
--
PHP General Mailing List
Richard Heyes wrote:
[EMAIL PROTECTED] wrote:
Try this never gives me a problem. I use it to keep proxy servers from
caching.
But I want the page to be cached...
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
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
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:
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.
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.
21 matches
Mail list logo