[PHP] pls help with session

2003-01-13 Thread James Tan
(userkey)) { echo session not set!; exit(); } // RETURNED FALSE HERE? Y? if($HTTP_SESSION_VARS[userkey]-0 1) { header(location: ./); return; } ? ==end of main.php code= best regards, -- James Tan IT Technical Specialist NextMove Technology Sdn. Bhd. [EMAIL PROTECTED

[PHP] session not set, server configuration?

2003-01-09 Thread James Tan
, thank you -- James Tan IT Technical Specialist NextMove Technology Sdn. Bhd. Tel: 03-5192 1366 Fax: 03-5192 1280 Lot 2-2, Jalan SU6A, Persiaran Tengku Ampuan, Lion Industrial Park, Section 22, 4 Shah Alam, Selangor D.E. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: session not set, server configuration?

2003-01-09 Thread James Tan
Dear Noel Wade, I've been coding session for quite sometime, but this is the first time i encounter such problem... in the login.php page, i've tested out session_is_registered(userkey); it was TRUE. but when i redirect it to main.php and did a checking on session_is_registered(userkey); it

[PHP] Re: Installation error..

2001-08-04 Thread James Tan
-- ---PHP Rules--- James Tan Web programmer(php, c/c++, asp) Irc: Unknown007(dalnet) Country: Malaysia Clients List: http://www.ogaya.com http://www.tahbauto.com http://www.aseanvalues.com http://www.e-cpo.com http://your_own_portal? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

[PHP] Re: How to destroy a $variable

2001-08-04 Thread James Tan
of the file. Bounce some ideas of me. Thanks -- ---PHP Rules--- James Tan Web programmer(php, c/c++, asp) Irc: Unknown007(dalnet) Country: Malaysia Clients List: http://www.ogaya.com http://www.tahbauto.com http://www.aseanvalues.com http://www.e-cpo.com http://your_own_portal? -- PHP General

[PHP] Re: Can anyone explain what this does?

2001-07-15 Thread James Tan
hi kurt lieber, ok, did u gone through the tutorial on oop with php?? $this stands for the class reference and file is one of the variable inside the class... u can specify this only in the function of the same class... regards, James Kurt Lieber wrote: I'm sure this is a simple one, but

[PHP] Re: lack of error

2001-07-15 Thread James Tan
hi jon yaggi, i've notice some _ in your link, is the get header sent correctly?? u did not put in your source here, pls do... we are helpless to u without your code... regards, James Jon Yaggie wrote: i am generating an image. Everything is going fine except this one image. it shows

[PHP] Re: Problem Inserting Array of Rows from form

2001-07-15 Thread James Tan
dear david, did u know u do not need to put single quote to enclose number type value?? notice ur field select syntax: INSERT INTO songs VALUES (' 1 // -- 1 is not enclosed with end quote... thus makes only 5 fields, not 6 , blah', ' ***', ' 45', ' 2', ' ') id[0]=: 2 try INSERT INTO songs

[PHP] Re: access pop3 without IMAP

2001-07-15 Thread James Tan
hi prachait saxena, I'm trying to build the same too... u can use the socket function to manupulate pop protocol at port 110 refer to the rfc link in the documentation for pop :) hope it helps... regards, James Prachait Saxena wrote: Hi, I want to check mail of a pop account. without

[PHP] Re: REGEXP

2001-07-14 Thread James Tan
hi,, u could try using explode function eg: arrayresult = explode(string, separator); cont = explode(thestring, \); echo cont[0] ; // result as Content-Type: multipart/mixed; boundary= echo cont[1]; //result as B42DA66C4EC07C9B572A58FC echo cont[2]; // array index 2 will be

[PHP] Re: Australian Developers -- Contract/Partnership Oppourtunity

2001-07-14 Thread James Tan
hi, I'm interested in the position, would it be ok if I were in the position to do it from distance?? I'm currently living in malaysia... I could do php with mysql. I could setup apache , mysql and php with source on the unix environment as well... php have been my major for about several

Re: [PHP] Re: OOP Problems

2001-07-14 Thread James Tan
oh, i didn't realise how php is as flexible as vb :) yeah.. ops, missed out the owner-test1 does not exist :) thanx for tips :) [EMAIL PROTECTED] wrote: Hi u007! On Sun, 15 Jul 2001, u007 wrote: hie.. it's simply u did not declare ur class variable... well, actually you don't have

[PHP] Re: Select IN array?

2001-07-14 Thread James Tan
dear chris, mysql does not support 'in' clause at the momment... the only way to this is to use the loop to generate the sql syntax.. orr.. use the implode function... to join the array into 1 string separated by the first parameter... $catsql = implode(or cid=, $catids); $catsql =

Re: [PHP] url without a query string?

2001-07-09 Thread James Tan
it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0 - Original Message - From: James Tan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 09, 2001 12:37 PM Subject: Re: [PHP] url without a query string? hie...

Re: [PHP] url without a query string?

2001-07-08 Thread James Tan
hie... if i'm not wrong.. u could try using session :) that way, ucan have index.php s u ish :) --login.php-- session_start(); $id = 1; sessoin_register(id); --index.php-- session_start(); $memid = $id-0; // **statement** hope it helps.. good luck :) regards, James Jon Yaggie [EMAIL