[PHP] Possible to store arrays in session variables?

2001-09-24 Thread Johnny Nguyen
Is it possible to store arrays inside of session variables? I mean is this a valid statement? $HTTP_SESSION_VARS["Crumbs"][0] = "1"; $HTTP_SESSION_VARS["Crumbs"][1] = "2"; foreach ($HTTP_SESSION_VARS["Crumbs"] as $k => $v) { ech

RE: [PHP] AudioGalaxy-like stuff

2001-08-21 Thread Johnny Nguyen
I suppose they could use a hidden frame, like a 1 pixel frame all the way down at the bottom that contains all the javascript in there to submit a form. And then the page that you see simply contains some javascript that calls a javascript function in that hidden frame. I'm sure you get the idea

RE: [PHP] Session Headaches

2001-08-21 Thread Johnny Nguyen
I am using php 4.0.6 and i would rather not use global variables. regards, Johnny Nguyen -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 21, 2001 3:33 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Session Headaches OK, the session_is_registered

RE: [PHP] Session Headaches

2001-08-21 Thread Johnny Nguyen
oops. of course that's what i meant. -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 21, 2001 1:56 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Session Headaches Start with this correction on page1.php: > if (session_is_registered != 1) { s

[PHP] Session Headaches

2001-08-21 Thread Johnny Nguyen
er i click on my link to simulate failed logins 3 times, I should see the number of failed logins. It seems like the gist of the problems is that different pages can't seem to modify the same session variables. any ideas? thanks everyone. regards, Johnny Nguyen -- PHP General Mailing Lis

[PHP] Sessions, Is this behavior by design?

2001-08-21 Thread Johnny Nguyen
ean true and false return values, but no matter i can work with it this way, just wondering if this is by design.? regards, Johnny Nguyen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

RE: [PHP] php date bug ?

2001-08-03 Thread Johnny Nguyen
I wasn't sure if mktime(0,0,0,1,32,2001) would work. BUT!!! I stand corrected. you are absolutely right. PHP is smart enough to know that January 32nd is really February first. :) Next Time I'll test the code before i respond. Johnny Nguyen -Original Message- From: Steve Bre

RE: [PHP] php date bug ?

2001-08-03 Thread Johnny Nguyen
that's one extra if statement as much as 31 times in one month. 1000 people generating the calendar would create 31000 extra if statements, unless I get a Cache solution. There should definitely be a PHP function for getNextDay(), but until then, I'm going to use the extra if stat

RE: [PHP] Counting Multidimensional Arrays, Solution Found

2001-07-31 Thread Johnny Nguyen
Nevermind. I Found the solution. $m, $y, and $d must be cast to integers. -Original Message- From: Johnny Nguyen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 3:58 PM To: [EMAIL PROTECTED] Subject: [PHP] Counting Multidimensional Arrays Given

[PHP] Counting Multidimensional Arrays

2001-07-31 Thread Johnny Nguyen
t) { echo $someevent->getName(); } I get the correct output: "Some Event 0Some Event 1Some Event 2" Any ideas on how to get the correct count within someclass? Regards, Johnny Nguyen -- 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] array through url?

2001-07-27 Thread Johnny Nguyen
that's the same as $num = "2,3,4,5"; $num is a string. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, July 27, 2001 11:22 AM To: [EMAIL PROTECTED] Subject: [PHP] array through url? Is it possible to send an array of numbers into a php file through a

RE: [PHP] How to get the current date and time in to the input field of a form with running time.

2001-07-26 Thread Johnny Nguyen
You'll need javascript. Since you only hit the server once you can't continuosly update the time from the server (php). Search for a javascript, there are plenty that can do this. Regards, Johnny Nguyen -Original Message- From: Balaji Ankem [mailto:[EMAIL PROTECTE

RE: [PHP] mp3 file read

2001-07-26 Thread Johnny Nguyen
Allows you to read and write id3 tags. which is what you're looking for. http://www.hotscripts.com/Detailed/7219.html -Original Message- From: Brian Weisenthal [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 26, 2001 2:06 PM To: [EMAIL PROTECTED] Subject: [PHP] mp3 file read anyone kno

RE: [PHP] PHP/Cold Fusion questions:

2001-07-25 Thread Johnny Nguyen
This may be off. but in IIS asp pages are handled by asp.dll and php pages by some php dll... maybe it be possible to write another dll that passes the the request and script to asp.dll first and then simulates the browser by grabbing all output sent back by the asp.dll and then passes it to the p

[PHP] Classes : Linked Lists vs Arrays?

2001-07-25 Thread Johnny Nguyen
I'm looking for opinions on using Linked Lists vs Arrays in PHP. As a little background: I'm developing a calendar that works with LDAP. I've got the following classes defined. Event and Calendar Calendar has methods displayMonthView($timestamp) displayWeekView($timestamp) displayDayView($time

[PHP] Paths for Extensions Solved

2001-07-13 Thread Johnny Nguyen
I either needed to add c:\php\dlls to my path or i had to copy libsasl.dll into c:\winnt\system32 in order for my extensions to work. My extension dir looked like this: ; Directory in which the loadable extensions (modules) reside. extension_dir = c:\php\extensions\ now gd and ldap show up when

RE: [PHP] Error Message with sessoin variables [solved]

2001-07-13 Thread Johnny Nguyen
? I was getting this error and solved by creating a dir named 'tmp', so create: c:\tmp That's where the session files will be stored... I think it's configurable in php.ini. -- Julio Nobrega. You're asking me will my love grow, I don't know. "Johnny N

[PHP] File Paths in PHP.ini on Win2000 w/ Apache

2001-07-13 Thread Johnny Nguyen
backward slashes? Other than that PHP is running ok. Regards, Johnny Nguyen -- 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] Error Message with sessoin variables.

2001-07-13 Thread Johnny Nguyen
I place at the top of my page and get this Warning: open(/tmp\sess_4821f31846678b2eda49a625b76ca14c, O_RDWR) failed: m (2) in w:\apache\loginform.php on line 1 Can somebody help? Do I need to make any changes to php.ini to get sessions working? Regards, Johnny -- PHP General Mailing List (htt

[PHP] Session Variables and Redirecting

2001-07-13 Thread Johnny Nguyen
I've done this on other platforms ASP,Cold Fusion, but I need to know what's the best way to do it on PHP. 1. grab username and password from POST vars. 2. select count(*) from users where username = '$username' and password='$password'... something along these lines 3. if that user exists and pa

[PHP] How to Enable SSI on Windows Apache and PHP

2001-07-03 Thread Johnny Nguyen
Do I just uncomment: AddType text/html .shtml AddHandler server-parsed .shtml Do I have to uncomment: AddModule mod_mime.c AddModule mod_include.c I thought these modules are bound into the standard windows build? When I load the page up, the includes are not being included and the directive

RE: [PHP] php intall

2001-07-02 Thread Johnny Nguyen
You can use gnoRPM to remove the apache package. Then look here: http://www.php.net/manual/en/install.apache.php Johnny -Original Message- From: Juan Pablo Rivera [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 1980 7:54 AM To: [EMAIL PROTECTED] Subject: [PHP] php intall hi how do