Re: [PHP] session OR variables

2002-03-11 Thread Jan Rademaker
On Mon, 11 Mar 2002, Vlad Kulchitski wrote: The question is how reliable the session is? In other words I understand session works based on cookies right? So if the client browser has cookies disabled the session is not going to work right? Not per se, cookies is one way of using

Re: [PHP] Hi How to compare two dates using PHP which are from mysqldatabase?

2002-03-12 Thread Jan Rademaker
in advance Balaji -- Jan Rademaker [EMAIL PROTECTED] http://www.ottobak.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Hi How to compare two dates using PHP which are from mysqldatabase?

2002-03-12 Thread Jan Rademaker
= mysql_fetch_row($result) use if (strtotime($row[DATETIME1]) strtotime($row[DATETIME2])) { ... } or whatever you desire... Balaji -Original Message- From: Jan Rademaker [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 6:40 PM To: Balaji Ankem Cc: Php-General

Re: [PHP] Hi How to compare two dates using PHP which are from mysqldatabase?

2002-03-12 Thread Jan Rademaker
On Tue, 12 Mar 2002, Jason Lotito wrote: Why not compare them in the SQL Query itself? That could work just as well, depending in what you want to do with the data. -- Jan Rademaker [EMAIL PROTECTED] http://www.ottobak.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] Error Handling!

2002-03-12 Thread Jan Rademaker
email! http://mail.yahoo.com/ -- Jan Rademaker [EMAIL PROTECTED] http://www.ottobak.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parse error? how can I print spesific message for allerror mesage

2002-03-12 Thread Jan Rademaker
Or something like that use error_reporting() (see manual) to suppres warnings. to give back an error use something like; if (!isset($dir) || !isset($res)) { print Access Denied; exit; } -- Jan Rademaker [EMAIL PROTECTED] http://www.ottobak.com -- PHP General Mailing

RE: [PHP] Another Session Question..

2002-03-12 Thread Jan Rademaker
On Tue, 12 Mar 2002, Gonzalez, Zara E wrote: On second look, perhaps it is working correctly. I wasn't incrementing my counter variable. Sorry to flood your mailboxes. Zara this should work as well; foreach($_REQUEST as $key = $val) { $_SESSION[$key] = $val; } -- Jan

Re: [PHP] $PHP_SELF in include files

2002-03-12 Thread Jan Rademaker
/font/bfont face=Times New Roman size=2 /fontfont face=Times New Roman size=4b a href=?php echo $PHP_SELF??page=questionsfont color=#CCQuestions/font/a/b/fontfont face=Times New Roman size=2BR Insert questions here./fontPb ?php } ? -- Jan Rademaker [EMAIL PROTECTED

Re: [PHP] PHP and permissions

2002-03-12 Thread Jan Rademaker
user is PHP run under that allows me to access another user's file (but the same group)? Thanks, Don -- Jan Rademaker [EMAIL PROTECTED] http://www.ottobak.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and permissions

2002-03-13 Thread Jan Rademaker
in the same place as the userid (after the /), eg.: user(1234)/group(4323) or user(1234)/4323 Maybe this helps you out a little further... -- Jan Rademaker [EMAIL PROTECTED] http://www.ottobak.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] PHP and permissions

2002-03-13 Thread Jan Rademaker
On Wed, 13 Mar 2002, Jan Rademaker wrote: On Tue, 12 Mar 2002, Don wrote: I did. That's why I'm confused. phpinfo() is telling me that the user is myself (I don't see the group). So what is the permission difference between running PHP and logging on to the server via telnet

Re: [PHP] array within an array

2002-03-15 Thread Jan Rademaker
something like $table_row_array[0 [1]]; (the second value from the array that is the first of $table_row_array) $table_row_array[0][1]; I know this isnt the syntax Thanks in advance -- Jan Rademaker [EMAIL PROTECTED] http://www.ottobak.com -- PHP General Mailing List

[PHP] Please explain...

2002-03-19 Thread Jan Rademaker
Can someone explain why this works? $x = 0; if ($x == foo) { print yeah; } This prints 'yeah', but i can't figure out why... -- Jan Rademaker [EMAIL PROTECTED] http://www.ottobak.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Apache

2002-03-21 Thread Jan Rademaker
-2064 -- Jan Rademaker [EMAIL PROTECTED] http://www.ottobak.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] using a counter in a foreach loop

2002-03-26 Thread Jan Rademaker
advice, well... put $i = 1; outside your loop...? $i = 1; foreach ($months) { // do some things $i++; } -- Jan Rademaker [EMAIL PROTECTED] http://www.ottobak.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] syntax

2002-03-27 Thread Jan Rademaker
for this is ! in a loop and want individual $ned_1_city = blah $ned_2_city = blur I've been trying this but its wrong $ned_.$i._city = $ned_city ; thanks john -- Jan Rademaker [EMAIL PROTECTED] http://www.ottobak.com -- PHP General Mailing List (http://www.php.net