Mike,
Thanks for the super clear explanation.
This brings up a question. In order to decide whether to use
cookies or SID the built-in sessions must be testing to see if
the user's browser will accept the session cookies. How do
they do that?
By sending it out and checking to see whether
Ford, Mike writes:
> You can also set up php.ini and use the built-in sessions with
> http://php.net/session_start so that PHP will take care of this for
> you.
That is what I was intending to do. How do I find out if
whether or not the session cookie was accepted using the
built-in sessio
Richard Lynch writes:
How does one check to see if the user's browser accepts
session cookies?
Apparently I should have said cookie and left off the 's' as
that is what I had in mind.
Send one cookie, see if it comes back, and if it does, tie
everything to that cookie.
OK. So how do I se
Hello,
How does one check to see if the user's browser accepts
session cookies?
Best,
Craig
--
- Virtual Phonecards - Instant Pin by Email -
- Large Selection - Great Rates-
- http://speedypin.com/?aff
Jim Lucas writes:
Is there some way I can set a shorter limit?
http://us.php.net/manual/en/function.stream-set-timeout.php
As far as I can tell I can only use that if I have a stream
resource available. Presumably file_get_contents() creates
and uses a stream but its resource is not accessi
Hello,
I am trying to find a simple way to test to see if a web site
is up or not. I tried using
$file = file_get_contents("http://www.example.com/page.html";);
but when the site is down it takes too long and seems to time out
terminating the script rather than returning a false I can test.
I
Robert Cummings writes:
Bleh, you can solve this with at most 2 queries.
Thanks. That is a bit different than what I was thinking
about but it might work for my purposes. Thanks also to all
the other people who made suggestions.
It appears to me that ther are 3 distinct approaches.
1) Ge
Jim Moseby writes:
However, altho I know that by making the random number big enough
the likelyhood of collisions can be made vanishingly small, I was
actually concerned with eliminating the possibility of collisions
altogether by checking to see if the number had been used before.
I just do
Rabih Tayyem writes:
PS: I don't take credit for the code as it is a modified version of
a code I found long time back (this same code is running on one of
my applications for months without any problem)..
Thanks. I'll find use for that!
However, altho I know that by making the random num
Stut writes:
[EMAIL PROTECTED] wrote:
I want to add a random unique ID to a Mysql table. Collisions
are unlikely but possible so to handle those cases I'd like to
regenerate the random ID until there is no collision and only
then add my row. Any suggestions for a newbie as to the right
way to
Hello,
I want to add a random unique ID to a Mysql table. Collisions
are unlikely but possible so to handle those cases I'd like to
regenerate the random ID until there is no collision and only
then add my row. Any suggestions for a newbie as to the right
way to go about doing this?
Best,
Richard Lynch writes:
On Sun, March 11, 2007 1:15 pm, [EMAIL PROTECTED] wrote:
Can anyone suggest why the connection might be refused?
My first guess would be that you have a firewall blocking the
connection.
PHP can't poke holes in your firewall for you.
Since it is in the so-called "u
Hello,
I have been trying to get the stream functions to work in PHP. While
undoubtedly my problems are due to ignorance I'd appreciate anything
helpful anyone would care to say that might alleviate that ignorance.
Basically, I have just been trying to get the examples given in the
manual to wo
13 matches
Mail list logo