php-windows Digest 13 Apr 2007 13:54:19 -0000 Issue 3192
Topics (messages 27683 through 27686):
Re: cache control at client
27683 by: bedul
27684 by: Mikael Grön
Re: [PHP-DB] IE6 & PHP
27685 by: bedul
Re: So why do I need session?
27686 by: Armando
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 ---
i have some problem like u said. and i always fake the url by give
$url.="?".time();
soo it will reload.. and change to new page when refresh
----- Original Message -----
From: "Alf Stockton" <[EMAIL PROTECTED]>
To: "php windows" <[EMAIL PROTECTED]>
Sent: Thursday, April 12, 2007 10:50 PM
Subject: Re: [PHP-WIN] cache control at client
> Mikael Grön wrote:
> > What I generally use for no-cache is this:
> > <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
> >
> > Also, to force it to work correctly, I've seen people do stuff like
this:
> >
> > <HTML>
> > <HEAD>
> > <TITLE> Pragma No-cache </TITLE>
> > </HEAD>
> > <BODY>
> > This is an example of where to place the second header section<br>
> > so that the "Pragama, No-Cache" metatag will work as it is supposed
to.<br>
> > </BODY>
> > <HEAD> <!-- Note the second header tag -->
> > <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
> > </HEAD>
> > </HTML>
> >
> > Supposedly there are problems with the pragma no-cache method, which can
> > be solved by adding an extra head-tag with the pragma meta setting,
> > after the </body>
> > I've never tried that though.
> Interesting that this is exactly what is said at
> http://www.htmlgoodies.com/beyond/reference/article.php/3472881
> but with a bit more detail.
> Thank you Mikael
>
>
> --
> Regards,
> Alf Stockton www.stockton.co.za
>
> Suspicion always haunts the guilty mind.
> -- Wm. Shakespeare
> My email disclaimer is available at www.stockton.co.za/disclaimer.html
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Even more interesting is that it's exactly what's said here:
http://support.microsoft.com/kb/222064
Why write stuff that's already written? :)
Mike
Alf Stockton skrev:
Mikael Grön wrote:
What I generally use for no-cache is this:
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
Also, to force it to work correctly, I've seen people do stuff like
this:
<HTML>
<HEAD>
<TITLE> Pragma No-cache </TITLE>
</HEAD>
<BODY>
This is an example of where to place the second header section<br>
so that the "Pragama, No-Cache" metatag will work as it is supposed
to.<br>
</BODY>
<HEAD> <!-- Note the second header tag -->
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
</HEAD>
</HTML>
Supposedly there are problems with the pragma no-cache method, which
can be solved by adding an extra head-tag with the pragma meta
setting, after the </body>
I've never tried that though.
Interesting that this is exactly what is said at
http://www.htmlgoodies.com/beyond/reference/article.php/3472881
but with a bit more detail.
Thank you Mikael
--- End Message ---
--- Begin Message ---
your script only work on netscape but it fail on ie6
----- Original Message -----
From: "elk dolk" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 13, 2007 1:41 PM
Subject: [PHP-DB] IE6 & PHP
> Hi all,
> I have a bunch of thumbnail images that link to larger versions of the
images and want to line them up in rows across the screen , using CSS I put
them into a separate DIV. To get them to line up horizontally across the
window I use CSS to FLOAT each DIV to the left, CSS looks like this:
> div.float {
> float: left;
> }
> and the HTML :
> <div class="float"><img src"image.jpg".../><br /></div>
> Firefox and Netscape show the thumbnails in rows like this:
>
> [] [] [] []
> [] [] [] []
> [] [] [] []
>
> but in IE6 there is a problem , the first row is O.K. but the second ant
the third rows are not O.K. it looks like this:
> [] [] [] []
> [] []
> [] []
> []
> [] [] []
i believe it matter of size.. i mean about..the hor size.. probalby the 6
have different size or strange size that make the 7 pic are gone bellow..
one more think.. you should post on php-win not db
>
> please comment
>
> ---------------------------------
> No need to miss a message. Get email on-the-go
> with Yahoo! Mail for Mobile. Get started.
--- End Message ---
--- Begin Message ---
That's a bit of a half-truth... cookies do disappear if you don't
specify a time to livem. When I use cookies to store miscellaneous data
(for security I use session naturally) I typically do not specify a time
to live so when the user closes the browser, the cookie dies. Cheers.
Armando
Mikael Grön wrote:
You can, only it's not as secure. It's easier to edit cookies since
they're not stored on the server. Also cookies don't disappear when you
close the browser, which is standard on other pages with login systems.
Your users will expect to be logged out when closing the browser.
Mike
sam rumaizan skrev:
It is a general question.
Why can't I use cookie instead?
Mikael Grön <[EMAIL PROTECTED]> wrote:
Are you asking someone specifically, or is this a general question?
Here's an example of when sessions are useful:
You have a login area on your website on which users who have
registered can log in to access special content. Only, you want such a
high security on your website so that people shouldn't be able to
simply browse to the hidden files, nor should a user still be logged
in when his friend uses his computer and starts a fresh browser.
Here's where sessions are perfect! You store the userId or similar
information in the session and start every secret page with the question:
if (!isset($_SESSION['userId']) ||
!CoolCheckUserValidityFunction($_SESSION['userId'])):
header("Location: login.php");
exit;
else:
$GLOBALS[USER] = new User($_SESSION['userId']);
endif;
of course you should not do that check in login.php... :P
Mike
PS: That $GLOBALS[USER] and the User class part is my own stuff..
Dunno if anyone else does stuff like that.. :P
sam rumaizan skrev:
You use a session to store values that are required over the course
of a single visit, and a cookie to store more persistent data that is
used over multiple visits. Session: when you close the browser the
session gets flushed. Which means the browser will not recognize the
user next time he/she browse the page unlike cookie.
So why do I need session? OR maybe I didn’t understand session
---------------------------------
Looking for earth-friendly autos? Browse Top Cars by "Green Rating"
at Yahoo! Autos' Green Center.
---------------------------------
The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.
--- End Message ---