Re: [PHP] Sessions

2001-01-15 Thread Hardy Merrill
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

Re: [PHP] Sessions

2001-01-16 Thread Hardy Merrill
. -- 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

Re: [PHP] date question

2001-01-24 Thread Hardy Merrill
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

Re: [PHP] Date/Time from Unix timestamp

2001-01-24 Thread Hardy Merrill
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]

[PHP] how display msg(5 secs) and then redirect?

2001-01-25 Thread Hardy Merrill
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

Re: [PHP] [newbie]subtracting date

2001-01-25 Thread Hardy Merrill
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

Re: [PHP] Session Code debug help requested

2001-01-31 Thread Hardy Merrill
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

Re: [PHP] Inserting DATE in mySQL!!

2001-03-05 Thread Hardy Merrill
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(

Re: [PHP] delete an element from an array

2001-03-05 Thread Hardy Merrill
=[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],

Re: [PHP] function -- global variables

2001-03-05 Thread Hardy Merrill
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

Re: [PHP] Oracle error messages

2001-03-13 Thread Hardy Merrill
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

Re: [PHP] Getting path of script

2001-03-13 Thread Hardy Merrill
;], $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

Re: [PHP] Problem with VARIABLES

2001-03-16 Thread Hardy Merrill
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

[PHP] PHP w/ Oracle OCI8 - how stable?

2001-03-19 Thread Hardy Merrill
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

Re: [PHP] Sessions help please

2001-03-21 Thread Hardy Merrill
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

[PHP] OCI8 server errors - client

2001-03-21 Thread Hardy Merrill
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]

Re: [PHP] Custom Session Handlers with Oracle?

2001-03-21 Thread Hardy Merrill
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

Re: [PHP] addslashes Question

2001-03-21 Thread Hardy Merrill
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

Re: [PHP] very dumb question, need help

2001-04-02 Thread Hardy Merrill
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

Re: [PHP] register_globals on or off?

2001-04-03 Thread Hardy Merrill
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

[PHP] PHP 4.0.4pl1 HEAD request problem

2001-09-07 Thread Hardy Merrill
(); 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

Re: [PHP] Session-variables

2001-02-05 Thread Hardy Merrill
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

[PHP] mcrypt and encrypted field length

2001-02-26 Thread Hardy Merrill
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

[PHP] include_once

2001-02-28 Thread Hardy Merrill
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

Re: [PHP] include_once

2001-02-28 Thread Hardy Merrill
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

[PHP] ora_error segfaults

2001-02-28 Thread Hardy Merrill
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

Re: [PHP] Calling Functions without all the arguments

2001-04-13 Thread Hardy Merrill
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