RE: [PHP] Re: Tom-Re: [PHP] session hijacking

2003-10-20 Thread Ow Mun Heng
Hi Tom, I've got a question for you regarding this encrypt class of yours.. Just wanted to understand how well it would work against a guy with a sniffer such as ethereal. (presuming he's on the LAN/wifi to access the app) How does the encryption happen?? Client side or server side? How does it

RE: Re[2]: [PHP] Re: Tom-Re: [PHP] session hijacking

2003-10-20 Thread Ow Mun Heng
The encryption happens server side and is really only intended to encrypt variables that are passed to web client such as product id and stuff. The only way to do secure login and prevent sniffing is to use ssl which will encrypt the traffic to and from the client. I suppose javascript could be

[PHP] Why Redirection works on 1 machine but not on another

2003-08-11 Thread Ow Mun Heng
Hi, I have this peculiar problem, my header header( Refresh:2;url=$g_prog_path/$l_refresh_url ); is set up correctly to be the FULL pathname. It works on some PC but now on some others. I'm using IE on win98/2000. The offending one is IE6 (128bit) on Win98. (IE5.5/win98 works but I've

RE: [PHP] session header issue

2003-07-31 Thread Ow Mun Heng
snip The Location: header requires a correctly formed URL, ie http://... /snip I'm running fine using only Location:home.php on Mozilla IE 6 maybe I should change. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Jason Wong

RE: [PHP] session header issue

2003-07-31 Thread Ow Mun Heng
I changed it so that it's not an ABS URL. I had it working so.. I thought, if it aint' broken, don't fix it... Well, I fixed it anyway, who knows it might cause problems somewhere.. Thank All. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original

RE: [PHP] Script Execution Time

2003-07-29 Thread Ow Mun Heng
This is what I use.. simple.. (someone from this list contributed it) function stopwatch_init() { list($usec, $sec) = explode( , microtime()); return ( (float)$usec + (float)$sec ); } Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original

[PHP] $_GET['sort'] argument separator

2003-07-28 Thread Ow Mun Heng
Hi, I have this problem, which could easily be solved through a name change but I would like to learn more. There's a table set up from a MySQL query like this row1) Eval # Title # Heads My Findings row2) P1000 Title16 This is my

[PHP] using SESSIONS to store page 2 page variables

2003-07-28 Thread Ow Mun Heng
Hi, Is it advisable to use SESSIONS to store variable from one page to another page instead of using something like a hidden field? eg: $_SESSION['sql_sort_cat'] $_SESSIOn['sql_sort_dir'] instead of input type=hidden value=?php $sql_sort_cat? Cheers, Mun Heng, Ow H/M Engineering

RE: [PHP] using SESSIONS to store page 2 page variables

2003-07-28 Thread Ow Mun Heng
I think it's OK since users needs to be authenticated. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 4:46 PM To: Ow Mun Heng Cc: [EMAIL PROTECTED] Subject: Re

RE: [PHP] $_GET['sort'] argument separator

2003-07-28 Thread Ow Mun Heng
Nope.. Still does not work.. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Nicholas Robinson [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 4:53 PM To: Ow Mun Heng; [EMAIL PROTECTED] Subject: Re: [PHP] $_GET['sort

RE: [PHP] $_GET['sort'] argument separator

2003-07-28 Thread Ow Mun Heng
open to how to make the code better.. ideas?.. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 7:17 PM To: Ow Mun Heng Cc: [EMAIL PROTECTED] Subject: Re: [PHP

RE: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Ow Mun Heng
This is taken from mantis.. NOt sure if it'll help but take a look at the t_use_iis field function print_header_redirect( $p_url, $p_die=true ) { $t_use_iis = config_get( 'use_iis'); if ( ON == config_get( 'stop_on_errors' ) error_handled() ) {

RE: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Ow Mun Heng
This thread's too long. I'm getting confused on who exactly asked the question.. My Take on thi /snip what if the code logic requires that there is some output sent to the browser. /snip In my case I use a Refresh-redirect. I've posted my code on this on this thread. The way I'm doing it is

RE: [PHP] Redirection Question

2003-07-23 Thread Ow Mun Heng
Hi, I'm not sure if this is going to help or not.. Since I understand your issue only barely.. If I understand correctly, regardless of whether the user comes from a.php, b.php or z.php, if they're not authenticated on the system (via sessions or cookies) then the only place for them to

RE: [PHP] Some SESSION Vars not Registering

2003-07-23 Thread Ow Mun Heng
I'm new but.. aren't you also supposed to register the session?? My code .. session_start(); session_register('username'); $_SESSION['username'] = $row['username']; session_register('user_id'); $_SESSION['user_id'] = $row['user_id']; session_register('access_level'); $_SESSION['access_level'] =

RE: [PHP] Re: Redirection Question (I spoke to soon)

2003-07-23 Thread Ow Mun Heng
Hi Curt, I'm confused.. quote With $_SESSION, there is no need to use the session_register(), session_unregister(), session_is_registered() functions. Session variables are accessible like any other variables. /quote I'm using session_start(); session_register('username');

RE: [PHP] Re: Redirection Question (I spoke to soon)

2003-07-23 Thread Ow Mun Heng
Thanks Mike.. You've been a GREAT help.. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 7:01 PM To: Ow Mun Heng; PHP Subject: RE: [PHP] Re: Redirection

RE: [PHP] Re: Redirection Question (I spoke to soon)

2003-07-23 Thread Ow Mun Heng
Are you outputting BLANK LINES??? eg.. if you have blank lines after your last ? (closing PHP tag) in ANY one of the require/include/script files, you're outputting something and this cannot be the case. eg. if in VI echo $someecho function dosomethig() { // whatever } ? -

[PHP] Howto list Mysql Table Headers using PHP

2003-07-20 Thread Ow Mun Heng
Hi, Got a quick question.. How do I get the table headers also printed/retrieved by PHP for 'echo'?? eg : 1 +--+--+-++ 2 | Drive SN | HSA DCM | Family | Media Supplier | 3

RE: [PHP] Howto list Mysql Table Headers using PHP

2003-07-20 Thread Ow Mun Heng
Whoops.. Missed that.. Thanks.. ( sorry..) Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 9:45 AM To: Ow Mun Heng Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Howto

RE: [PHP] redirecting to a url..

2003-07-20 Thread Ow Mun Heng
Me, I have 2 functions. 1 I call - immediate and other refresh.. the difference is one as the name implies is immediate - (like chris pointed out below ) - header('Location: http://yoursite.org/us/index.php'); The other is more of a refresh kind, waits a default of 2 secs (for me so

[PHP] RE: Something to watch look for when getting HEADER Warnings

2003-07-20 Thread Ow Mun Heng
Been There.. Was a REAL pain to figure that out one.. Have a look through PhpMyAdmin's (source) scripts, I see there's a bash shell code that actually searches through some of it's php files for sanitation for the exact same purpose. (Haven't played with it yet though) Cheers, Mun Heng, Ow

RE: [PHP] Too much of $GLOBALS[] a problem??

2003-07-18 Thread Ow Mun Heng
Torben Wilson [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 12:26 PM To: Ow Mun Heng Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Too much of $GLOBALS[] a problem?? On Thu, 2003-07-17 at 21:10, Ow Mun Heng wrote: 'Loosely-coupled' code relied much less on the environment around

[PHP] Too much of $GLOBALS[] a problem??

2003-07-17 Thread Ow Mun Heng
Hi All, Just a quick question on this. In my scripts, I'm using A LOT Of $GLOBALS['my_parameter'] to get the declared values/string. 1 example below : function display_menu_html() { echo 'table class=width100 cellspacing=0'.\n; echo 'tr'.\n; echo \t.'td

RE: [PHP] Too much of $GLOBALS[] a problem??

2003-07-17 Thread Ow Mun Heng
:05 PM To: Ow Mun Heng Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Too much of $GLOBALS[] a problem?? On Thu, 2003-07-17 at 18:35, Ow Mun Heng wrote: Hi All, Just a quick question on this. In my scripts, I'm using A LOT Of $GLOBALS['my_parameter'] to get the declared values/string. 1

RE: [PHP] Grabbing info from other Sites

2003-07-15 Thread Ow Mun Heng
Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Joel Rees [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 4:36 PM To: Ow Mun Heng; [EMAIL PROTECTED] Subject: Re: [PHP] Grabbing info from other Sites The site really does need Login

RE: [PHP] Grabbing info from other Sites

2003-07-14 Thread Ow Mun Heng
Hi, Mind my ignorance but what is webservices?? Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 3:28 PM To: [EMAIL PROTECTED] Subject: Re: [PHP]

[PHP] Grabbing info from other Sites

2003-07-13 Thread Ow Mun Heng
Hi, I have this need/want to grab information from sites for my own usage and wondering how to do it. Here's an example. 1. Log into finance.yahoo.com (assuming I need to log on) 2. Type the list of shares I want 3. Let Yahoo process it 4. Use PHP or some other scripting

RE: [PHP] Grabbing info from other Sites

2003-07-13 Thread Ow Mun Heng
, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Michael Geier [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 9:47 AM To: Ow Mun Heng Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Grabbing info from other Sites assuming the login isn't necessary

[PHP] RE: Blatant newbie question - killing a session

2003-07-10 Thread Ow Mun Heng
session_destroy()?? Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Bruce Bruen [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 2:48 PM To: [EMAIL PROTECTED] Subject: Blatant newbie question - killing a session Hi, this

RE: [PHP] download php

2003-07-10 Thread Ow Mun Heng
I'm not sure about FreeBSD but on Redhat, the /etc/passwd 'IS' meant to be world readable. But fortunately it's only stores usernames and Real names and etc.. whereas /etc/shadow is only root readable and it's the file that stores user's passwords. I think that's pretty secure. Why are you

RE: [PHP] New to PHP

2003-07-09 Thread Ow Mun Heng
-7870 5168 -Original Message- From: Ralph Guzman [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 3:23 AM To: Ow Mun Heng; 'PHP' Subject: RE: [PHP] New to PHP Yes, and also the same Rasmus founder of PHP. From time to time he may even respond to one of you questions. :-) And you're

RE: [PHP] include/require inside of function

2003-07-09 Thread Ow Mun Heng
PROTECTED] Sent: Wednesday, July 09, 2003 6:20 PM To: Ow Mun Heng; Ford, Mike [LSS] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] include/require inside of function -Original Message- From: Ow Mun Heng [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 03:44 I finally got it. Thanks. All I

RE: [PHP] include/require inside of function

2003-07-08 Thread Ow Mun Heng
. That I think is the simplest way to explain it. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 7:11 PM To: Ow Mun Heng Cc: [EMAIL PROTECTED] Subject: RE

RE: [PHP] include/require inside of function

2003-07-08 Thread Ow Mun Heng
(); ? Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 11:34 PM To: Ow Mun Heng Cc: [EMAIL PROTECTED] Subject: RE: [PHP] include/require inside

RE: [PHP] New to PHP

2003-07-08 Thread Ow Mun Heng
Wow.. There's a guy named Rasmus here. Is here(or u) the same person who wrote that book? this is way cool.. Oh.. BTW, PHP Mysql Web Development is GOOD. Also, since a lot of codes are open sourced, Read through them as well. I'm learning through that too. ( this list) Cheers, Mun Heng, Ow H/M

RE: [PHP] include/require inside of function

2003-07-06 Thread Ow Mun Heng
Hmm.. Funny I was having this same problem yesterday and wanted to post. Here's My question, a variable is not actually global is not actually global until I make it global through global $make_this_global and then I can assess it using $GLOBAL[$make_this_global].

RE: [PHP] Re: Red Hat 9, Apache 2, and PHP

2003-07-04 Thread Ow Mun Heng
Does anyone have any idea or could give me an idea why php apache 2.0 is not 'good' together? Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Mark Charette [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:02 AM To: [EMAIL

RE: [PHP] Re: Red Hat 9, Apache 2, and PHP

2003-07-04 Thread Ow Mun Heng
M'sia DID : 03-7870 5168 -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:48 PM To: Ow Mun Heng Cc: Mark Charette; [EMAIL PROTECTED]; Shena Delian O'Brien Subject: RE: [PHP] Re: Red Hat 9, Apache 2, and PHP Apache2 has a number of different

[PHP] Session vs Cookie Issues

2003-07-01 Thread Ow Mun Heng
Hi All, I know this topic has been talked about a LOT but all the info I've managed to get from google is that there is no center / best option to choose between using sessions or cookies. Pros of Sessions 1. PHP does it all automatically

RE: [PHP] Session vs Cookie Issues

2003-07-01 Thread Ow Mun Heng
PROTECTED] Sent: Wednesday, July 02, 2003 11:47 AM To: Ow Mun Heng Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Session vs Cookie Issues I know this topic has been talked about a LOT but all the info I've managed to get from google is that there is no center / best option to choose between using

[PHP] RE: PHP Mysql Error Code 1062 - Duplicates found

2003-06-26 Thread Ow Mun Heng
Hi All, I found out how to do it already. Thanks for the help. mysql_error() was the key.. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Ow Mun Heng Sent: Wednesday, June 25, 2003 10:03 AM To: [EMAIL PROTECTED] Subject

[PHP] RE: defect tracking systems

2003-06-26 Thread Ow Mun Heng
I'm looking at mantis..Nice System but not sure if it's what you want. I'm gonna mod it a bit for my usage in a Drive (FA) Environment. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Martin Balcar [mailto:[EMAIL PROTECTED] Sent:

[PHP] PHP Mysql Error Code 1062 - Duplicates found

2003-06-24 Thread Ow Mun Heng
Hi PHP'ers, I've got a question regarding the input of (multiple) data into mysql through PHP. If there is already an entry in the database, then an mysql will generate an error 1062 stating that the entry is a duplicate. (This will happen only if I input the data through mySQL

[PHP] PHP cached data when using browser back button

2003-06-24 Thread Ow Mun Heng
Hi All, How can I prevent the browser from sending in cached data after the user pressed the 'back' button and re-inputted data. Eg: Originall I enter 3 isbn numbers, submitted it, then the user presses the 'back' button to re-input 1 new data and then re-submits the data, instead of

RE: [PHP] Performance question

2003-06-24 Thread Ow Mun Heng
Can someone help explain how I can perform a benchmark on the queries or whatever? Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 1:41 AM To: Hardik Doshi; [EMAIL

RE: [PHP] Q : HELP HTML forms parsed into an array for PHP

2003-06-18 Thread Ow Mun Heng
: Tuesday, June 17, 2003 11:54 AM To: Ow Mun Heng Subject: Re: [PHP] Q : HELP HTML forms parsed into an array for PHP from what i've experienced w/ bar code scanners, they send a carriage return after inputting the numbers, so why not just have a page w/ a single input text field and a submit

[PHP] Q : HELP HTML forms parsed into an array for PHP

2003-06-16 Thread Ow Mun Heng
Hi all, Really hope someone can help me out. What I would like to do is to input multiple isbn numbers into a form, get PHP to parse it into an array so that I can build the SQL query for multiple insert. Currently I'm able to perform single inputs, one at a time, which is time

RE: [PHP] Q : HELP HTML forms parsed into an array for PHP

2003-06-16 Thread Ow Mun Heng
AM To: Ow Mun Heng Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Q : HELP HTML forms parsed into an array for PHP Ow Mun Heng wrote: What I would like to do is to input multiple isbn numbers into a form, get PHP to parse it into an array so that I can build the SQL query for multiple insert