can also use a scheduled(cron on *nix) job to remove sessions
older than ??? minutes.
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
thanks,
Randy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
Brandon Orther [[EMAIL PROTECTED]] wrote:
Does anyone have a place with a little more user friendly tutorial or place
to learn about sessions? The php manual is making me go mad.
Thank you
Which database?
Fang Li [[EMAIL PROTECTED]] wrote:
There is a LiveDate (-MM-DD) field in my table.
1. I want data from last 5 days up to now, and its order should be from
latest;
2. I want data for next month.
Any help would be appreciated.
--
PHP General Mailing List
g a date into a
unix timestamp.
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
How do you display a "you are being redirected to xyz page" page
for some period of time(5 seconds?) and then redirect to another
page without the user having to click on a link or a button?
TIA.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
--
P
ive_days_ago_seconds = mktime (0,0,0,date("m"),date("d")-5,date("Y"));
$date_5_days_ago = date("m-d-Y", $five_days_ago_seconds);
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
Matthew Ley [[EMAIL PROTECTED
echo "Value of session variable \$var_name = $var_name";
that's it.
You only need to do session_destroy() when you actually want
to destroy all the session variables for the current session -
if you do that in every script, then you obviously won't be
carrying over any session v
rror occured. Please go back and book again.");
?
Your value for the variable "sql" isn't enclosed in quotes. BTW, tracking
down problems with a sql query gets easier when you give yourself a more
informative die() message, such as:
or die ("MySQL says: " . mysql_errorno(
=[b111]
key2=[2], value2=[b222]
key2=[3], value2=[b333]
key=[c], value=[Array]
key2=[1], value2=[c111]
key2=[2], value2=[c222]
key2=[3], value2=[c333]
Unset b2 now
key=[a], value=[Array]
key2=[1], value2=[a111]
key2=[2], value2=[a222]
key2=[3], value2=[a333]
key=[b], value=[Array]
key2=[1],
ne 13" is "global $ID, $limite."
What's could be the problem?
Notice my ^'s above - you are already defining $ID in your
function declaration. You can't do that *and* declare $ID as
a global.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallin
nal commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
;], $matches)) {
echo "Found $matches[1]br";
}
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
Jordan Elver [[EMAIL PROTECTED]] wrote:
Hi,
I want to get the path of a script. I know about
HTTP_SERVER_VARS["SCRIPT_FILENAME"] this
Ian, I think what you want is a variable variable - have a look at
http://www.php.net/manual/en/html/language.variables.variable.html
I think you might want something like this:
${$Color$Temp[$f]}
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
I'm thinking of using PHP to talk to an Oracle database with
the OCI8 interface - is PHP's OCI8 interface stable? Anything
unusual I should know about?
I'm using:
Redhat 6.1 Linux
PHP 4.0.4pl1
Oracle 8i 8.1.6
Apache 1.3.14
TIA.
--
Hardy Merrill
Mission Critical Linux, Inc.
http
do session_start();, you
will have access to those previously registered session
variables by just using $UserName and $Password.
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
header ("Location: Http://www.domain.com/members/index.php");
The
l,
or did I do something wrong?
TIA.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
http://php.net/manual/en/ref.session.php
Between those 3 you should be able to get sessions working with
MySQL.
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
Michael Champagne [[EMAIL PROTECTED]] wrote:
Has anyone out there implemented custom sessio
character, and I can't
remember what the 4th one is - look at the manual under
"addslashes"). Then you can INSERT or UPDATE the columns with
those addslash'ed values.
There's many different ways to do this, but this is what works best
for me.
--
Hardy Merrill
Mission Critical
ssion_start();
echo "Value of \$test = $test"; // value should be "myname"
?
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
Jacky [[EMAIL PROTECTED]] wrote:
Hi all
I have been to look at manual about session, in php4, still no
could change:
from: $frmCompanyName
to: $HTTP_GET_VARS["frmCompanyName"]
or
$HTTP_POST_VARS["frmCompanyName"]
depending on your action method.
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
--
PHP
();
ob_end_flush();
?
Here's the response from a HEAD request to that index.php:
--
Connection closed by foreign host.
Is this a bug with PHP 4.0.4pl1?
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
--
PHP General
Look at
http://www.php.net/manual/en/html/ref.session.html
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
spider [[EMAIL PROTECTED]] wrote:
Is it ok to mail questions to this list? If so;
Is there something similar like the "session vari
e the same length?
Should I make the data type some variation of "text" or
"varchar"?
TIA.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROT
r that connect failure, but the new text is *NOT*
appearing in any subsequent connect failures.
Why won't my new text appear in the error? I've tried changing
the "include_once" to "include", and the same thing happened.
I even tried restarting the webserver, but it had no affe
Solved - I was changing a copy of the code that the webserver
was NOT looking at. "include_once" works fine.
Appologies.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
Hardy Merrill [[EMAIL PROTECTED]] wrote:
Redhat 6.1 Linux
PHP 4.0.4pl1
Apa
ry to call ora_error I get a
segfault.
Has anyone else seen this - any solutions?
TIA.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
meter gets a value, even if all the parameters
were not supplied in the call.
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
27 matches
Mail list logo