[PHP] PHP 4.0.4pl1 HEAD request problem

2001-09-07 Thread Hardy Merrill
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 Mailing List (http://www.php.net/) To unsu

Re: [PHP] Calling Functions without all the arguments

2001-04-13 Thread Hardy Merrill
a default value *IN* the function definition, like: function abc($a='', $b='') // assigns null as parameter defaults that way, every parameter gets a value, even if all the parameters were not supplied in the call. HTH. -- Hardy Merrill Mission Critical Linux, Inc. http:/

Re: [PHP] register_globals on or off?

2001-04-03 Thread Hardy Merrill
egister_globals Off *AND* track_vars On, you 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. h

Re: [PHP] very dumb question, need help

2001-04-02 Thread Hardy Merrill
At the top of every script that will register or use session variables, I do "session_register" - something like this: script_1.php script_2.php HTH. -- Hardy Merrill Mission Critical Linux, Inc. http://www.missioncriticallinux.com Jacky [[EMAIL

Re: [PHP] addslashes Question

2001-03-21 Thread Hardy Merrill
, double quote, NULL 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.

Re: [PHP] Custom Session Handlers with Oracle?

2001-03-21 Thread Hardy Merrill
or reference at 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 impleme

[PHP] OCI8 server errors -> client

2001-03-21 Thread Hardy Merrill
rror? Is this normal, 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] Sessions help please

2001-03-21 Thread Hardy Merrill
Then in the next script, after you 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

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

2001-03-20 Thread Hardy Merrill
ng wrong in the setup? I shouldn't have to restart the webserver after I restart Oracle should I? TIA. -- Hardy Merrill Mission Critical Linux, Inc. http://www.missioncriticallinux.com Neil Kimber [[EMAIL PROTECTED]] wrote: > Nothing unusual. Very robust and stable. > > -Origin

[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 L

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

Re: [PHP] Maintaining Session State Across Clusters

2001-03-13 Thread Hardy Merrill
How about mounting a shared disk on all 4 webservers, and storing your session files on that? The database option is probably best though. HTH. -- Hardy Merrill Mission Critical Linux, Inc. http://www.missioncriticallinux.com Michael Kimsal [[EMAIL PROTECTED]] wrote: > Use a database to st

Re: [PHP] Getting path of script

2001-03-13 Thread Hardy Merrill
How 'bout using a Perl regex with $HTTP_SERVER_VARS["SCRIPT_NAME"] like this: echo "Starting with SCRIPT_NAME=[" . $HTTP_SERVER_VARS["SCRIPT_NAME"] . "]"; if (preg_match("/(\S+)\/\S+$/", $HTTP_SERVER_VARS["SCRIPT_NAME"], $

Re: [PHP] Oracle error messages

2001-03-13 Thread Hardy Merrill
gt; To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional 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/)

Re: [PHP] function --> global variables

2001-03-05 Thread Hardy Merrill
me/httpd/html/fiesc_sessao/checa_senha.php3 on line 13 > > The "line 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 a

Re: [PHP] delete an element from an array

2001-03-05 Thread Hardy Merrill
-- key=[a], value=[Array] key2=[1], value2=[a111] key2=[2], value2=[a222] key2=[3], value2=[a333] key=[b], value=[Array] key2=[1], value2=[b111] key2=[2], value2=[b222] key2=[3], value2=[b333] key=[c], value=[Array] key2=[1], value2=[c111] key2=[2], value2=[c222] key2=[3], value2

Re: [PHP] delete an element from an array

2001-03-05 Thread Hardy Merrill
Have a look at http://www.php.net/manual/en/function.unset.php "unset" may do what you want. HTH. -- Hardy Merrill Mission Critical Linux, Inc. http://www.missioncriticallinux.com kaab kaoutar [[EMAIL PROTECTED]] wrote: > > Hi! > FIRST OF ALL THANKS ! > well d

Re: [PHP] delete an element from an array

2001-03-05 Thread Hardy Merrill
I'm not sure what you mean - are you trying to remove an element from the array while you are *inside* a loop that is iterating through that same array? If the loop is small enough, copy it in so we can all see what you are trying to do. kaab kaoutar [[EMAIL PROTECTED]] wrote: > Hi! > how can i

Re: [PHP] Inserting DATE in mySQL!!

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

[PHP] ora_error segfaults

2001-02-28 Thread Hardy Merrill
e I try 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-m

[PHP] PHP 4.0.4pl1 --with-oracle

2001-02-28 Thread Hardy Merrill
piled with --enable-sigchild, and now I don't see any defunct processes, but the whole webserver still hangs, and now I get a seg fault. Is this a recognized problem/bug, and is there a solution? Would compiling --with-oci8 solve this? TIA. -- Hardy Merrill Mission Critical Linux,

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

[PHP] include_once

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

[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

Re: [PHP] Parsing a string

2001-02-23 Thread Hardy Merrill
Look up the "split" and "explode" functions - they both do basically the same thing. $token_list = split(",", $string_to_parse); HTH. -- Hardy Merrill Mission Critical Linux, Inc. http://www.missioncriticallinux.com Todd Cary [[EMAIL PROTECTED]] wrote: > I h

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 "ses

Re: [PHP] Session Code debug help requested

2001-01-31 Thread Hardy Merrill
, just do 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 carryin

Re: [PHP] [newbie]subtracting date

2001-01-25 Thread Hardy Merrill
; documentation: $five_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

Re: [PHP] date

2001-01-25 Thread Hardy Merrill
dependent on the particular database you write it for - then to migrate to another database would be a major rework. If you use a method like unix timestamp for doing your date math with just standard > or < SQL comparison operators, then your code is much more database indepe

Re: [PHP] Strange problem

2001-01-25 Thread Hardy Merrill
t create a temporary file, and then when the download is done, copy the temporary file to the real file. HTH. -- Hardy Merrill Mission Critical Linux, Inc. http://www.missioncriticallinux.com Jeroen Jochems [[EMAIL PROTECTED]] wrote: > When I try to download a big file (like 5meg) with fopen() I get

[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] Date/Time from Unix timestamp

2001-01-24 Thread Hardy Merrill
e" for converting 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 contac

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 Li

Re: [PHP] Test for Cookies

2001-01-24 Thread Hardy Merrill
n of your php.ini. With register_globals = On and track_vars = On, I can do this: if (sizeof($HTTP_COOKIE_VARS) == 0) { error_log("no cookies!!!"); } or if (empty($HTTP_COOKIE_VARS["my_cookie_1"])) { error_log("my_cookie_1 doesn't exist!&q

Re: [PHP] Sessions

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

Re: [PHP] Sessions

2001-01-15 Thread Hardy Merrill
and give a lifetime to each session. You 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 Maili

Fwd: [PHP] Session Mgmt in MySQL - cleanup

2001-01-11 Thread Hardy Merrill
Trying again - no-one responded 1st time... - Forwarded message from Hardy Merrill <[EMAIL PROTECTED]> - > Date: Wed, 10 Jan 2001 21:01:10 -0500 > From: Hardy Merrill <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: [PHP] Session Mgmt in MySQL - cleanup >

[PHP] Session Mgmt in MySQL - cleanup

2001-01-10 Thread Hardy Merrill
FROM. I don't quite understand how this is working. Is there some documentation somewhere on the "user"(database) functions for a session management in a database, like what each function is expecting, and what each should return, and when each one is called??? TIA. -- Hardy Merril