[PHP] pls help with session

2003-01-13 Thread James Tan
.php //header("location: main.php"); exit(); if (session_is_registered("userkey")) { header("location: main.php"); return; } else { echo "session not set!"; } // always return TRUE... } else { $erron = "Invalid User / Password"; } } else { $

[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] session not set, server configuration?

2003-01-09 Thread James Tan
id"); session_register("userid"); session_register("userloginid"); setcookie("companyid", $HTTP_POST_VARS["companyid"], time()+(60*60*24*30)); setcookie("loginid", $HTTP_POST_VARS["loginid"], time()+(60*60*24*30)); //redirecting to mai

[PHP] Re: How to destroy a $variable

2001-08-04 Thread James Tan
n the page comes back up again, I post a > thank you message, and the form is blank. Just a thought. > I tried setting strings to empty after data is submitted to the database > like so $Age = ""; etc at the bottom of the file. > > Bounce some ideas of me. Thanks

[PHP] Re: Installation error..

2001-08-04 Thread James Tan
uot;make clean".. which should > clear out the previous config, right?) > > Thoughts? > > Ryan -- ---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://

[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: 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 VA

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

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

[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 = ((strlen(c

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 d

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

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

Re: [PHP] url without a query string?

2001-07-08 Thread James Tan
t; fix one bug, compile 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]>

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 PROTE