Re: [PHP] "calling" one php script from another

2004-03-03 Thread Phillip Jackson
http://us4.php.net/switch if/else/else/else/else is ridiculously hard to read. for more then if/elseif/else use switch. ~pj "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] Does anyone know of a way to jump from one php script to another without going through th

[PHP] Re: Stumped on a totally wierd problem

2004-03-01 Thread Phillip Jackson
When you solve your own problem it is best to post a short synopsis of the solution so that people who search the group later can learn from your mistake. ~phillip jackson "Brian V Bonini" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > nevermind I got it. &

Re: [PHP] Re: To Separate, or Not to Separate

2004-02-24 Thread Phillip Jackson
Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Phillip Jackson <mailto:[EMAIL PROTECTED]> on Tuesday, February 24, 2004 11:47 AM said: first of all i'd like to say that my comments below are based upon the way i understand things to be. i could ve

[PHP] Re: To Separate, or Not to Separate

2004-02-24 Thread Phillip Jackson
what you describe is called 'normalization'; if you'll always only have 20 people in a table it may not be worth it for you - though it's poor practice to continue to design tables in this fashion. come up with a nice naming convention and design tables that break contact information such as name,

[PHP] Re: session timeout?

2004-02-24 Thread Phillip Jackson
u're interested. ~phillip jackson "Catalin Trifu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > You have to make the code yourself, > > After session_start you should check the session for some > var

Re: [PHP] About Classes and Scope

2004-02-18 Thread Phillip Jackson
o the function explicitly: function myclass($var){ //do stuff with $var } ~Phillip Jackson "Nick Wilson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > * and then Nick Wilson declared > > > $myconfig=TRUE; > > > > class myclass { > &

[PHP] Re: [Q] Howto go directly to a URL?

2004-02-13 Thread Phillip Jackson
if your do_login script doesn't require any cookies or session information you can just redirect right after auth: http://www.somewebsite.com";; //do stuff if($loggedin == true){ header("Location: " . $url); } else{ //possible postback with get var error i.e: header("Location: do_login.p

[PHP] Re: excel output question

2004-02-10 Thread Phillip Jackson
"Jake McHenry" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > - Original Message - > From: "Phillip Jackson" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, February 07, 2004 4:37 AM > Subject: Re:

Re: [PHP] XML and Excel

2004-02-10 Thread Phillip Jackson
Please post your solution to the group for reference. ~phillip "Jake McHenry" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > - Original Message - > From: "Marek Kilimajer" <[EMAIL PROTECTED]> > To: "Jake McHenry" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Monday

Re: [PHP] Need a way to automate user logout

2004-02-07 Thread Phillip Jackson
down straight to the logout. to handle the alt+F4-happy crowd i devised a way to pop a special logout window when the browser is closed. this child window destroys sessions and makes database logs; this window closes itself. this happened to work for me, YMMV. ~phillip jackson "Craig"

Re: [PHP] Re: excel output question

2004-02-07 Thread Phillip Jackson
I would do it like this: $build = " '%s','%s','%s','%s'\n"; $build = sprintf($build,$field1,$field2,$field3,$fieldN); you could also try escaping the comma. if this doesn't work you can always just dump to html tables and save the file as *.xls (excel spreadsheet); excel understands html tables a

[PHP] performance of classes vs. functions for database connections

2004-02-05 Thread Phillip Jackson
i have a function that does authentication of a user, whose user/pass are stored in an md5($var ) fashion. i query these from the mysql db in an authentication (if !$user || !pass) function checking against md5($pass). my thinking is that classes would be better suited to grab object properties, s

Re: [PHP] Re: Using sessions with register globals off

2004-02-05 Thread Phillip Jackson
it's this easy with register_globals off: $_SESSION['order'] = "someValue"; no need to name the session. ~Phillip "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Randall Perry wrote: > > > Ok, with register globals on, this works ('order' being a php object): > > >

[PHP] Re: Using sessions with register globals off

2004-02-05 Thread Phillip Jackson
PHP Manual: If register_globals is enabled, then each global variable can be registered as session variable. Upon a restart of a session, these variables will be restored to corresponding global variables. Since PHP must know which global variables are registered as session variables, users need t

Re: [PHP] php version difference - local installation very strict

2004-02-01 Thread Phillip Jackson
so i could not call $_SESSION... ~pj "Justin French" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Monday, February 2, 2004, at 10:14 AM, Phillip Jackson wrote: > > > these errors are foreign to me as i have combed my code 100's of times > &

[PHP] Re: php version difference - local installation very strict

2004-02-01 Thread Phillip Jackson
i don't use register_globals - i have a function that massages data that mimics register globals' behaivior via dynamically named variables. which one should i set it to - E_NOTICE? ~Phillip Jackson "Dvdmandt" <[EMAIL PROTECTED]> wrote in message ne

[PHP] php version difference - local installation very strict

2004-02-01 Thread Phillip Jackson
Hi all, It seems that the version on my local apache installation is more strict than the version on my production server. How can i counteract this without potentially having to upgrade 300+ pages in my entire app? is there a setting in php.ini that i could locally kill some of this debugging inf

Re: [PHP] $$vars and security

2003-11-25 Thread Phillip Jackson
> Personally, I think this is a bad approach, regardless of how well it is > implemented. I think you will give yourself a false sense of security. what, then, do you yourself do in such an application requiring a response from the user to massage the data? reject all input that doesn't conform to

Re: [PHP] $$vars and security

2003-11-25 Thread Phillip Jackson
great point about the array; to make the script more portable i will most definitely detect magic quotes. "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Phillip Jackson wrote: > > > > function escape(){ > > wh

[PHP] Re: Excel Table & download it

2003-11-24 Thread Phillip Jackson
excel can read html tables with partial formatting through stylesheets output html tags and save the file as an *.xls file. i redirect back to the file after writing to it - ie doesn't display it, rather it prompts to download. ~phillip "Leon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PR

[PHP] $$vars and security

2003-11-24 Thread Phillip Jackson
i have developed my own "register globals" function that mimics the action of register globals, but only for $_POST... i do this to ensure that all incoming communication is escaped for use in scripts to account for, and to avoid, SQL injection. below is the code... any suggestions would be welcom