RE: [PHP] Session and SID

2002-03-19 Thread Johnson, Kirk
SID is set on the first request. It is only set on subsequent requests if cookies are disabled on the client. So, disable cookies in your browser, and then see what happens. Kirk -Original Message- From: Chris Kay [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 6:16 AM To:

FW: [PHP] Netscape Vs. IE

2002-03-11 Thread Johnson, Kirk
-Original Message- From: Richard S. Crawford [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 8:30 AM To: Vlad Kulchitski Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Netscape Vs. IE This can be done without CSS, actually. Try: td background=imagefile Not all browsers

RE: [PHP] 'undef' as an argument value

2002-03-11 Thread Johnson, Kirk
http://www.php.net/manual/en/function.func-num-args.php will return the number of arguments passed to the function. Kirk -Original Message- From: Rodent of Unusual Size [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 2:25 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] 'undef'

RE: [PHP] FORM RELATED QUESTION - I

2002-03-05 Thread Johnson, Kirk
Append '[]' to the field name, e.g., order[] = 10 order[] = 20 Then process the submitted field as an array. Kirk -Original Message- From: karthikeyan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:18 AM To: Jason Wong Cc: [EMAIL PROTECTED] Subject: Re: [PHP] FORM

RE: [PHP] HTTP Post to another server

2002-03-03 Thread Johnson, Kirk
Search the archive on PostToHost, or see this link: http://www.zend.com/zend/spotlight/mimocsumissions.php#Heading6 Kirk -Original Message- From: Quentin Bennett [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 3:19 PM To: [EMAIL PROTECTED] Subject: [PHP] HTTP Post to

RE: [PHP] session/cookies

2002-03-01 Thread Johnson, Kirk
Start by adding a session_start() to the 2nd file, then see what happens. Kirk Hi again, I am doing a simple example of cookies and my server seems to get frozen. Basically, what I do is: file01.php: ? session_start(); seession_register(sess_var); sess_var = Hello; ?

RE: [PHP] Help needed with Sessions

2002-02-26 Thread Johnson, Kirk
Start here: http://www.php.net/manual/en/ref.session.php You will need to call session_start() to initiate the session. You will also need to register the variables you want in the session with session_register(). Good luck! Kirk -Original Message- From: WG4- Cook, Janet

RE: [PHP] is there an in qualifier in PHP?

2002-02-26 Thread Johnson, Kirk
http://www.php.net/manual/en/function.in-array.php Kirk -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 9:34 AM To: PHP Subject: [PHP] is there an in qualifier in PHP? I have a problem with some code (posted below), which I think

RE: [PHP] encryption and HTTP

2002-02-23 Thread Johnson, Kirk
The PHPLIB auth class has some code to do this. You might want to look there for ideas. If I recall correctly, they sent a hidden random string along with the form that was different on each request. They then did an md5 hash of the post data concatenated with the random string. Kirk

RE: [PHP] sending form values in http header?

2002-02-21 Thread Johnson, Kirk
In the method line, the URL being POST'd to is form2.php, not form.php. Is that the correct file name, or should that be form.php? Kirk -Original Message- From: marcbey [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 5:47 AM To: [EMAIL PROTECTED] Subject: [PHP] sending

RE: [PHP] Timing Sessions Out

2002-02-20 Thread Johnson, Kirk
Right you are, seconds. -Original Message- At 03:21 PM 2/19/2002 Tuesday, Johnson, Kirk wrote: See session.gc_maxlifetime in php.ini. Kirk I assume that the value given is in seconds. Correct?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] array session variable problem (register_global=off)

2002-02-20 Thread Johnson, Kirk
The code in the first file is correct if register_globals is on. Since it is off, remove the call to session_register() and just assign values directly to $_SESSION, e.g., $_SESSION[name['first']] = 'First Name'; Kirk -Original Message- From: Harry Yu [mailto:[EMAIL PROTECTED]]

RE: [PHP] Hyperlinks vs Buttons

2002-02-20 Thread Johnson, Kirk
Another way would be to create an image of the text, then use the input type=image form element as a submit button. Kirk -Original Message- Is there a way to regular hyperlinked text to submit a form? For example, rather than having a button that says [Login], I just want

RE: [PHP] array session variable problem (register_global=off)

2002-02-20 Thread Johnson, Kirk
Doh! I meant this: $_SESSION['name']['first'] = 'First Name'; -Original Message- From: Harry Yu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 4:52 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] array session variable problem (register_global=off) Thanks for your

RE: [PHP] Timing Sessions Out

2002-02-19 Thread Johnson, Kirk
See session.gc_maxlifetime in php.ini. Kirk -Original Message- From: Phillip S. Baker [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 4:10 PM To: PHP Email List Subject: [PHP] Timing Sessions Out Hey Gents and Ladies, I read that sessions can be set to timeout

RE: [PHP] VERY novice question!

2002-02-14 Thread Johnson, Kirk
Just go with your instincts, you got 'em ;) , AND for and ||, OR for or. The symbols are at one precendece level higher than the words, I believe. Kirk -Original Message- From: brendan conroy [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 10:47 AM To: [EMAIL

RE: [PHP] empty session files stacking up in /tmp on solaris

2002-02-13 Thread Johnson, Kirk
Set the session.gc_probability to a positive value between 1 and 100. This setting is the proportion of page requests on which the session file garbage collection routine is launched, e.g., if you set it to 1, then on 1 out of every 100 page requests the garbage collection routine will delete old

RE: [PHP] Filling Forms with $variables

2002-02-13 Thread Johnson, Kirk
Enclose the value in quotes, like so: input type=text name=name value=?echo $name;? The browser can't know that Steven Walker is all one string unless it is quoted. It thinks the 2nd part of the name after the space is the next attribute, unless it is quoted, i.e., it is seeing value=Steven

RE: [PHP] How do I send a POST request?

2002-02-12 Thread Johnson, Kirk
See PostToHost in the archives: http://marc.theaimsgroup.com/?l=php-generalm=92353052714384w=2 Kirk -Original Message- From: LaserJetter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 12:15 PM To: [EMAIL PROTECTED] Subject: [PHP] How do I send a POST request? I'm

RE: [PHP] session_id()

2002-02-12 Thread Johnson, Kirk
SID is defined on the *first* page request. It is only defined on later requests *if* cookies are disabled in the browser. Kirk -Original Message- From: Pax [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 1:54 PM To: [EMAIL PROTECTED] Subject: [PHP] session_id() I

RE: [PHP] testing for cookies on the server side (again, still can't get my head around it)

2002-02-05 Thread Johnson, Kirk
So what's the flow of code to test for cookies on the server side? I'm pretty sure that the only way is to set a cookie, then test for it. That is pretty much it. On the first page request to your application, if PHP encounters a session_start() in your code, it will return a cookie named

RE: [PHP] Re: Changes in Sessions (PHP Versions)

2002-02-05 Thread Johnson, Kirk
This suggests that register_globals was set to 'off' in the first case and 'on' in the second case. The lines below are perfect examples of how to change the code when changing the register_globals setting in php.ini. Kirk -Original Message- From: Travis Simpson [mailto:[EMAIL

RE: [PHP] HowTo Send HTTP POST from Within Scrip

2002-02-05 Thread Johnson, Kirk
Search the archives on PostToHost, or also go here: http://www.zend.com/zend/spotlight/mimocsumissions.php#Heading6 http://marc.theaimsgroup.com/?l=php-generalm=92353052714384w=2 I think if you also search on UPS you will find discussion of this exact problem. Good luck! Kirk -Original

RE: [PHP] Parse error

2002-02-04 Thread Johnson, Kirk
Check for a missing line or block terminator just above line 19. Kirk -Original Message- From: Ron Clark [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 11:32 AM To: [EMAIL PROTECTED] Subject: [PHP] Parse error I am getting the following error trin to use the

RE: [PHP] get the clicked submit image

2002-01-30 Thread Johnson, Kirk
http://www.php.net/manual/en/faq.html.php#AEN76234 Kirk -Original Message- From: Ergin Aytac [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 6:13 AM To: [EMAIL PROTECTED] Subject: [PHP] get the clicked submit image I have a form-page with several image-submit

RE: [PHP] Session Time Out - Question

2002-01-18 Thread Johnson, Kirk
How do I set the amount of time before the sessions time out? See session.gc_maxlifetime in the php.ini file. Kirk -- 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

RE: [PHP] RTFM

2002-01-18 Thread Johnson, Kirk
I feel your pain. Good thought. Please Read The Fine Archive for long-running, in-depth discussion of this very topic ;) Happy Friday, all! Kirk just a very quick note: I've been following the list for about a week and I probably follow one or two threads a day. Some of the stuff here is

RE: [PHP] include() and URL's

2002-01-17 Thread Johnson, Kirk
Does the file have persmissions such that it is include()-able by nobody? Kirk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 4:33 PM To: [EMAIL PROTECTED] Subject: [PHP] include() and URL's I'm trying to include a URL

RE: [PHP] security benefits of predefined variables

2002-01-16 Thread Johnson, Kirk
What is the purpose of the $_GET (or $HTTP_GET_VARS) predefined variable? It seems that in the case of get variables, malicious variables could still be set in the querystring and even using $_GET['variablename'] wouldn't be able to stop this from happening. That is, from what I

RE: [PHP] security benefits of predefined variables

2002-01-16 Thread Johnson, Kirk
I wrote: If you are careful, you can defend against Scenario 1 with register_globals on, but you need to understand all the stuff that PHP is doing with the data, and that is a fairly complicated picture. Your application can still work even if you don't understand that picture,

RE: [PHP] security benefits of predefined variables

2002-01-15 Thread Johnson, Kirk
Give this a read first, then come back if you still have questions ;) http://www.securereality.com.au/studyinscarlet.txt Kirk -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 1:50 PM To: PHP Subject: [PHP] security benefits of

RE: [PHP] PHPLib

2002-01-10 Thread Johnson, Kirk
Hey guys, Has anyone used this before?? If so, is it a pain in the a$$? I read the documentation.. and sounds like you would need to re-code your authentication system, sessions blah blah to work with it? or am i going waay of target here?? All i wanna do is, customize my html...

RE: [PHP] Operators

2002-01-10 Thread Johnson, Kirk
If != is the opposite of == What is the opposite of === ?? I believe that is !== Kirk -- 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

RE: [PHP] session_unregister and register_globals = Off

2002-01-10 Thread Johnson, Kirk
I'm having difficulty trying to figure out how unregister a variable when register_globals is turned on. I've tried session_unregister but it doesn't seem to do anything. Just unset the $HTTP_SESSION_VARS['var'] element. Kirk -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Sessions

2002-01-09 Thread Johnson, Kirk
PHPSESSID will not be set on the first request. On the first request to a page with session_start(), PHP creates a session and sends a cookie named PHPSESSID to the browser. When the browser returns the cookie in the next request, PHPSESSID gets put into $HTTP_COOKIE_VARS[] array, and if

RE: [PHP] Sessions

2002-01-08 Thread Johnson, Kirk
!sess_id| means that $sess_id has been registered, but it hasn't been assigned a value. Is register_globals on or off in php.ini? Did you assign a value to $sess_id? Kirk -Original Message- From: Ryan Kelley [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 8:59 PM To:

RE: [PHP] Strange Session Issues

2002-01-07 Thread Johnson, Kirk
Once again, is register_globals on or off in your php.ini file? It would help us if we knew that :) Kirk -Original Message- From: Alastair [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 9:05 AM To: [EMAIL PROTECTED] Subject: [PHP] Strange Session Issues I posted a

RE: [PHP] Strange Session Issues

2002-01-07 Thread Johnson, Kirk
With it off, session_register() is not needed. Also, session variables must be accessed thru the $HTTP_SESSION_VARS[] array. Try this code: test_session1.php ? session_start(); $HTTP_SESSION_VARS['blah'] = good; ? test_session2.php ? session_start(); echo session_is_registered(blah) . br; echo

RE: [PHP] Strange Session Issues

2002-01-07 Thread Johnson, Kirk
So, it *is* a Happy Monday for you ;) You're very welcome. Kirk -Original Message- From: Alastair [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 10:06 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Strange Session Issues WOO HOO!!! :-) Thanks Kirk! I didn't realize

RE: [PHP] problem reading sessions

2002-01-04 Thread Johnson, Kirk
Is register_globals set to 'on' in php.ini? It needs to be for this coding style to work. Kirk -Original Message- From: Alastair [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 1:41 PM To: [EMAIL PROTECTED] Subject: [PHP] problem reading sessions I have just

RE: [PHP] crack lib

2001-12-28 Thread Johnson, Kirk
Hey, what is everyone talking about? What is the new crack lib functionality? Is it in the docs yet? TIA Kirk -- 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,

RE: [PHP] flushing contents to the browser

2001-12-12 Thread Johnson, Kirk
If you redirect into the query page using a META refresh, you can display the message: echo(HTMLHEADMETA HTTP-EQUIV=\refresh\ CONTENT=\0;url=your_url_here.php\/HEADBODYprocessing... please wait/BODY/HTML); The message will display until the query page finishes. Kirk -Original

RE: [PHP] flushing contents to the browser

2001-12-12 Thread Johnson, Kirk
I tried this... it just continually refreshes ... and doesn't ever re-direct to my page.. am i missing something? If the URL is correct, it should work. The *first* page should have this code. The variable $query_page contains the URL to the *next* page, which contains the database query

RE: [PHP] Cookie Retrieval

2001-12-11 Thread Johnson, Kirk
I think this approach should work as long as register_globals is set to 'on' in php.ini. If it isn't, then reference the cookie as $HTTP_COOKIE_VARS['poccd_session']. Kirk Can someone tell me if there is a bit of code I need to put on pages so I can retrieve a cookie. The cookie was set

RE: [PHP] parse error when requiring

2001-12-06 Thread Johnson, Kirk
There is a semi-colon missing on the session_start() line. PHP can't pin down the exact line number of an error where the error is a missing terminator. Kirk -Original Message- From: Oosten, Sjoerd van [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 8:44 AM To: 'Andrew

RE: [PHP] What version did $PHP_SELF still work?

2001-11-15 Thread Johnson, Kirk
Have you looked at what is in $HTTP_SERVER_VARS['PHP_SELF']? Does this array element even exist? I am wondering if there is an Apache setting that affects this, but I sure don't know. Kirk -Original Message- From: John Steele [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15,

RE: [PHP] Re: is_null misses spaces... another solution?

2001-11-13 Thread Johnson, Kirk
A space is a valid string. Are you sure there is a space? ? $a = ' '; if($a == '') { echo a is blankbr; } else { echo a is not blankbr; // this is printed } if(is_null($a)) { echo a is nullbr; } else { echo a is not nullbr; // this is printed } ? Kirk I need to check variables

[PHP] Security question: getenv()

2001-11-09 Thread Johnson, Kirk
Happy Friday! I don't know anything about the innards of the PHP/Apache relationship. I am wondering if there is a security advantage to using the getenv() function to access an environment variable, instead of using the $HTTP_SERVER_VARS array, or, if register_globals is on, the global version

RE: [PHP] variable issue

2001-11-09 Thread Johnson, Kirk
The else clause can be removed, since it is not doing anything. What is the error message? Kirk Hey everyone, I need some help with a variable issue. How can I delcare a variable and then if a url variable of the same name is present use that value instead? this is what I have:

RE: [PHP] Eval()??? A variables contents?

2001-11-09 Thread Johnson, Kirk
http://www.php.net/manual/en/function.eval.php Kirk -Original Message- From: Christopher Raymond [mailto:[EMAIL PROTECTED]] Sent: Friday, November 09, 2001 1:11 PM To: PHP List Subject: Re: [PHP] Eval()??? A variables contents? on 11/9/01 2:01 PM, Kurt Lieber at [EMAIL

RE: [PHP] HTTP_SESSION_VARS

2001-11-08 Thread Johnson, Kirk
Regarding the same topic of session management, I am using PHP 3.09 and when I call session_start() or $HTTP_SESSION_VARS['someVariable] I get : Fatal error: Call to unsupported or undefined function session_start() So, my question is that: Is there any session management in

RE: [PHP] PHP Highlighting Text Editors

2001-11-02 Thread Johnson, Kirk
Here's a link http://www.itworks.demon.co.uk/phpeditors.htm Got this link at http://www.php.net/links.php#TOP. Kirk -Original Message- From: Chris Bailey [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 8:56 AM To: TD - Sales International Holland B.V.; [EMAIL PROTECTED]

RE: [PHP] Cookies won't stick

2001-11-02 Thread Johnson, Kirk
If the cookie lifetime is set to 0, then it is a session cookie, and it persists until the browser is closed. Kirk -Original Message- From: jennyw [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 12:48 PM To: [EMAIL PROTECTED] Subject: [PHP] Cookies won't stick For

RE: [PHP] Re: Where are lists of PHP's predefined constants and keywords?

2001-11-01 Thread Johnson, Kirk
Thank you Jim, Mike, CC and Philip. Geez! I thought I did a search, but maybe I imagined that... LOL Kirk -- 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:

RE: [PHP] Destroying Ssessions

2001-11-01 Thread Johnson, Kirk
session_destroy() works fine for me - it deletes the session file after the script finishes. I have never used the session_name() function. I am wondering if it is possible that the server is confused about what session needs to be destroyed because of the way session_name() is being used

RE: [PHP] User Authentication against remote authentication serve r [ LDAP ]

2001-10-31 Thread Johnson, Kirk
PROTECTED]] Sent: Wednesday, October 31, 2001 3:06 AM To: Johnson, Kirk Cc: PHP General List Subject: Re: [PHP] User Authentication against remote authentication serve r [ LDAP ] On Mon, Oct 29, 2001 at 04:54:37PM -0700, Johnson, Kirk wrote: Thanks for the link, Kurt. Can you also point

RE: [PHP] User Authentication against remote authentication server [ LDAP ]

2001-10-29 Thread Johnson, Kirk
Thanks for the link, Kurt. Can you also point to any authentication code examples, or further discussion? The user comments in the manual suggest there are at least a couple ways to code stuff, ldap_compare vs ldap_bind. Any additional help appreciated. TIA Kirk -Original Message-

RE: [PHP] checkboxes

2001-10-26 Thread Johnson, Kirk
onClick Kirk -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED]] Sent: Friday, October 26, 2001 3:03 PM To: PHP General (E-mail) Subject: [PHP] checkboxes does anyone know the HTML event that knows when a checkbox has been checked and unchecked? -- PHP General

RE: [PHP] account for missing/optional arguments in functions?

2001-10-25 Thread Johnson, Kirk
Two php functions may help, func_num_args() and func_get_args(). For example, $numargs = func_num_args(); $arg_list = func_get_args(); Kirk -Original Message- From: Kurt Lieber [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 4:58 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] Globals and HTTP_SESSION_VARS variables.

2001-09-26 Thread Johnson, Kirk
Is here anyway to make a variable like $var not the same than $HTTP_SESSION_VARS[var], when register_globals=1?. (where $var is in the script scope). I read in a changelog that this is relatively recent (make $var the same than $HTTP_SESSION_VARS[var]). I'm not sure what was changed.

RE: [PHP] Getting my head around nulls.

2001-09-25 Thread Johnson, Kirk
SELECT * from some_table WHERE some_field IS NULL; Andrey Hristov -- 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] Thanks for

RE: [PHP] Can I rely on session.gc_maxlifetime?

2001-09-25 Thread Johnson, Kirk
So, no matter if the user is still working, the session will be destroyed. I mean session.gc_maxlifetime isn't session.gc_maxIDLEtime? Every time the user requests a page in an application using sessions, the session file's access time gets updated. The garbage collection routine looks at

RE: [PHP] Can I rely on session.gc_maxlifetime?

2001-09-25 Thread Johnson, Kirk
I thought that php works as you wrote. But sometimes I find that much older session are still alive. I have 1440secs for maxlifetime, and if I bookmark a page with the session id I can use it till days or even weeks (I haven't tested longer time period :)) Are old files being re-used, or

RE: [PHP] Getting my head around nulls.

2001-09-24 Thread Johnson, Kirk
And remember 0 as a number is as important as any other number. I wish the rest of the world saw it that way! But not so... You may want to look at MySQL's IS_NULL function for retrieving data. Other than that, I don't have any good advice. It seems that if you retrieve a NULL from the

RE: [PHP] Sessions just don't work on my machine. (Trying this again)

2001-09-24 Thread Johnson, Kirk
Perhaps you could post the [Session] section of your php.ini file. It appears that session.cookie_lifetime is not set to 0, which is what you want for a session cookie. Perhaps we can find another setting that needs a change. Kirk Sessions just don't work on my machine... -- PHP General

RE: [PHP] Sessions just don't work on my machine. (Trying this again)

2001-09-24 Thread Johnson, Kirk
After reloading IE on the PC now the SID constant doesn't echo anything at all. SID is always defined on the first page request. It is only defined on later page requests if cookies are disabled in the browser. Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Sessions just don't work on my machine. (Trying this ag ain)

2001-09-24 Thread Johnson, Kirk
Try these changes: session.cookie_lifetime = 0 session.use_trans_sid = 1 Also, what version of PHP are you using? My php.ini: [Session] session.save_handler = files session.save_path = /tmp session.use_cookies = 1 session.name = PHPSESSID

RE: [PHP] Sessions just don't work on my machine. (Trying this ag ain)

2001-09-24 Thread Johnson, Kirk
OK, do you have access to your /tmp directory? If so, close your browser, then open it and request your index page. Now sort the files in /tmp by creation time, to find the newly created session file. Look at its contents, and see if the 2 variables have values assigned to them in the file. Do

RE: [PHP] Getting the value from a not posted form edit Vield.

2001-09-21 Thread Johnson, Kirk
I'm not sure what question you are asking, but try changing this line $aFinfOn = Getenv($aFindOnInput); to $aFinfOn = $HTTP_POST_VARS[aFindOnInput]; The function getenv() gets environment variables, not post variables. Kirk -Original Message- From: hvm

RE: [PHP] include() problem...

2001-09-20 Thread Johnson, Kirk
Check the permissions on both the directory and the file, so that they are accessible to 'nobody' (or whomever PHP is running as). I'm not sure what to make of the empty include path in the error message. Kirk I've tried including just a file that was in the /usr/lib/php directory. No

RE: [PHP] Codes in PHP

2001-09-20 Thread Johnson, Kirk
I only know of two ways to do page redirects with PHP: the header() function and a META refresh tag. I suppose you could also use PHP to dynamically generate the javascript code you included in your email. Good luck! Kirk - Original Message - From: Wee Chua [EMAIL PROTECTED] To: PHP

RE: [PHP] How to set the time for session??

2001-09-19 Thread Johnson, Kirk
Then how can i set the time for session?? See the php.ini file, for session.gc_maxlifetime setting: session.gc_maxlifetime= 1440; after this number of seconds, stored ; data will be seen as 'garbage' and ; cleaned

RE: [PHP] internet explorer and form submission

2001-09-13 Thread Johnson, Kirk
so if a particular form button is clicked a different process will occcur. well what happens if i press return to enter my form submission? nothing is set! so the processing file does nothing This has been pointed out from time to time on this list. It is a fact: if the user submits a

RE: [PHP] minus in [] groups in ereg

2001-09-13 Thread Johnson, Kirk
Feature. By placing a dash next to the bracket, there is no confusion that the dash is being used to specify a range. Kirk -Original Message- From: Andrew Perevodchik [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 13, 2001 9:32 AM To: [EMAIL PROTECTED] Subject: [PHP] minus in

RE: Re[2]: [PHP] minus in [] groups in ereg

2001-09-13 Thread Johnson, Kirk
JK Feature. By placing a dash next to the JK bracket, there is no confusion that the dash JK is being used to specify a range. Doesn't slash before dash mean that??? Could be, I don't know. I always put a dash next to the bracket, instead of escaping it with a backslash. As is often the

RE: [PHP] session_unset session_destroy being called outside of logic.

2001-09-13 Thread Johnson, Kirk
Several comments, Jason. session_destroy() terminates the session, which cannot be started up again until the browser is restarted... Yes, session_destroy removes the session file that stores the values of session variables between pages. Once gone, it cannot be accessed again under any

RE: [PHP] Reprise of dissapearing session variables

2001-09-10 Thread Johnson, Kirk
The session variables will remain set, but will it looks like my session gets lost every now and then if you want to see an example, go to http://northpointless.org/test.php and hit refresh several times. I cannot figure out what is happening. Did you get this figured out? It looks

RE: [PHP] Reprise of dissapearing session variables

2001-09-10 Thread Johnson, Kirk
session files get saved in /tmp by default, correct? Is there a way to have them saved somewhere that would propogate to all the servers in the cluster? Warning! The following is from me, a non-gearhead. 1. We use a load balancer which is able to set a cookie on the first page request.

RE: [PHP] Reprise of dissapearing session variables

2001-09-10 Thread Johnson, Kirk
We use a Big-IP controller from F5: http://www.f5.com/f5products/bigip/index.html Kirk -Original Message- From: Jason Bell [mailto:[EMAIL PROTECTED]] Sent: Monday, September 10, 2001 1:33 PM To: PHP Users Subject: Re: [PHP] Reprise of dissapearing session variables Thanks for

RE: [PHP] http get vars missing?? track vars enabled - HELP

2001-09-04 Thread Johnson, Kirk
I'm about ready to go insane over this one. I have the following link. http://www.wayneswoodworks.net/test/samples.php3?key=1 When I get into samples.php3 I do: $record = $HTTP_GET_VARS[key]; echo record=$recordbr; And the record variable is blank/missing. Did you get this

RE: [PHP] RE: multiple submit buttons

2001-08-31 Thread Johnson, Kirk
Tim Ward wrote: Be careful using values of submit buttons ... if the user hits return instead of clicking one of the buttons you won't get anything. If you want a default value try a hidden field before the submits with same name. Tim, thanks for the tip. I had heard of this behavior before,

RE: [PHP] Add Slashes - Server Adds Them Automatically - Advice Requested!

2001-08-29 Thread Johnson, Kirk
See the magic_quotes_gpc setting in the php.ini file. This can be set to on or off, and is responsible for escaping GET/POST/COOKIE data automatically. Kirk -Original Message- From: Mike Gifford [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 9:58 AM To: [EMAIL

RE: [PHP] Posting to oneself

2001-08-29 Thread Johnson, Kirk
Check if register_globals is off in php.ini. If it is, you will need to access it through the $HTTP_SERVER_VARS array, e.g., $HTTP_SERVER_VARS['PHP_SELF']. Kirk -Original Message- From: John Meyer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 5:43 PM To: Jason Bell;

RE: [PHP] parse error AFTER end of included file??

2001-08-28 Thread Johnson, Kirk
You need to close off this bit of code with a brace '}': if (!isset($page_id)) { Kirk -Original Message- From: Jaxon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 28, 2001 9:34 AM To: [EMAIL PROTECTED] Subject: [PHP] parse error AFTER end of included file?? Hi,

RE: [PHP] Session not timing outafter 180 minutes

2001-08-27 Thread Johnson, Kirk
Everything is pretty much set to default vaules. I can leave the browser open and come back 12+ hours later and the session is still active. Why?? There is another setting which affects this, gc_probability. This setting determines how often the garbage collection routine runs (that kills off

RE: [PHP] GET / POST strange error

2001-08-24 Thread Johnson, Kirk
I have seen this behavior when the user had a bookmark to the page with a session ID in the bookmark URL. Just a thought. Kirk -Original Message- From: Mike [mailto:[EMAIL PROTECTED]] Sent: Friday, August 24, 2001 8:17 AM To: [EMAIL PROTECTED] Subject: [PHP] GET / POST strange

RE: [PHP] Fwd: functions returning arrays

2001-08-24 Thread Johnson, Kirk
Try echo $r[$i] instead of echo $r[i]. Kirk -Original Message- From: Frank Loewenthal [mailto:[EMAIL PROTECTED]] Sent: Friday, August 24, 2001 9:33 AM To: [EMAIL PROTECTED] Subject: [PHP] Fwd: functions returning arrays Hi Perhaps I am confused, but is it not possible to

RE: [PHP] Script timeout

2001-08-23 Thread Johnson, Kirk
Why timeout at 300s instead of the 30s or the 12000s which are the only two values reported? Looks like some HTTP timeout, i.e. either Apache or the browser is getting bored. Try outputting something from time to time. Can anybody point me to information on all the possible HTTP timeouts

RE: [PHP] register_globals odd behaviour?

2001-08-21 Thread Johnson, Kirk
I just come across and odd behaviour with the register_globals and session handling. The problem is that when I set the register globals to on I cannot access the session_variables through the associative array HTTP_SESSION_VARS. The manual says explicitly that with track_vars and

RE: [PHP] sessions

2001-08-21 Thread Johnson, Kirk
session_start(); session_unregister(val_1); session_register(val_1); I am doing this to clear the contents of val_1 before I use it again. Needless to say its not working. val_1 always contains the same value until session_registering()'ing a variable just puts it in a list of names of

RE: [PHP] Sessions, Is this behavior by design?

2001-08-21 Thread Johnson, Kirk
apparently, session_is_registered and isset return null if they evaluate to false. I was expecting boolean true and false return values, What you were expecting is correct, boolean true/false. However, it appears that PHP converts these values to strings during the echo. true converts to

RE: [PHP] Session Headaches

2001-08-21 Thread Johnson, Kirk
Start with this correction on page1.php: if (session_is_registered != 1) { should be if (session_is_registered(FailedLogins) != 1) { We'll go from there :) Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] Session Headaches

2001-08-21 Thread Johnson, Kirk
OK, the session_is_registered() thing is correct. It seems like the gist of the problems is that different pages can't seem to modify the same session variables. This is definitely not the case. Two things to try: 1. In page2, put some logic around the session_register(FailedLogins);,

RE: [PHP] chicken and egg problem with SID

2001-08-21 Thread Johnson, Kirk
One way around this is to make the first page just a dummy that starts a session then redirects to the real first page, with the session id passed on the redirect URL. Kirk -Original Message- From: Egan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 21, 2001 10:56 AM To: [EMAIL

RE: [PHP] Session Headaches

2001-08-21 Thread Johnson, Kirk
I am using php 4.0.6 and i would rather not use global variables. I hear ya. After playing around with this, your approach works if register_globals is set to off (I did this with an .htaccess file). I'm surprised by this. It appears that the global version of a variable still overwrites the

RE: [PHP] 3rd include

2001-08-08 Thread Johnson, Kirk
Has the 3rd include bug (where variable definitions ar lost at the 3rd include), been fixed yet? --Drew Vogel Drew, I hadn't heard about this one. If you find anything, would you please post back your results to the list? TIA Kirk -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] include, chmod, password files

2001-08-08 Thread Johnson, Kirk
If I have a file called db.inc with, for example, this: However, any user on the system can read db.inc cause its chmod'd 0644. If I chmod db.inc 0600 or even 0640, index.php can not include it. How do I go about protecting my files from being read by users on the system? Below is

RE: [PHP] Session problem

2001-08-08 Thread Johnson, Kirk
?php session_start(); global $count; session_register (count); $count++; ? Hello visitor, you have seen this page ?php echo $HTTP_SESSION_VARS[count]; ? times.p There was a bug in PHP in versions prior to 4.0.6: $count and $HTTP_SESSION_VARS[count] did not reference

RE: [PHP] Session problem

2001-08-08 Thread Johnson, Kirk
What it looks like it is doing to me, if you hit the script and reload it a bunch, is it creates a session, sticks with it for a while, then dumps it .. it then creates another session, starts over at 1, and begins counting up.. then sometimes it will see the old session, and go back to

RE: [PHP] Session problem

2001-08-08 Thread Johnson, Kirk
What it looks like it is doing to me, if you hit the script and reload it a bunch, is it creates a session, sticks with it for a while, then dumps it .. it then creates another session, starts over at 1, and begins counting up.. then sometimes it will see the old session, and go back to

<    1   2   3   4   >