[PHP] PHP security in a hosting environment

2004-04-07 Thread Ben Joyce
hi. one of my clients whom we host a website for has expressed interest in writing their own php/mySQL applications for their site. i've been looking in to the security implications of offering this service. My concerns are that the client *could* use a php script to access parts of the file syst

Re: [PHP] hello

2004-04-01 Thread Ben Joyce
Hello. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 01, 2004 3:14 PM Subject: [PHP] hello > Try this, or nothing! > > > > -- > PHP General Mailing List

Re: [PHP] web statistics

2004-03-31 Thread Ben Joyce
I use AWStats for my web stats stuff. Pretty easy once the minimal configuration is done. http://awstats.sourceforge.net/ - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Elliot J. Balanza" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 30, 2004 7:00 PM

Re: [PHP] running php in sequence

2004-03-30 Thread Ben Joyce
I'd recommend that you build a set of functions (or a class) to do your bits and pieces, rather than include blocks of code. That way you can ZIP depending on the outcome of your CHECKOUT code. function checkoutStuff() { //if checkout code executes ok return true; } if(checkoutStuff()) {

Re: [PHP] how can I get the id of the last record I inserted into a table with an insert query?

2004-03-29 Thread Ben Joyce
hello. mysql_insert_id() should do what you need. lovely function, that one. hth, ben "Diana Castillo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > how can I get the id of the last record I inserted into a table with an > insert query? (into Mysql database) > -- > Diana Cast

Re: [PHP] use of @ operator to suppress errors

2004-03-15 Thread Ben Joyce
Many Thanks Nikolay. It seems then that if I'm to avoid the NOTICE errors then isset() should be used as suggested earlier. Not the greatest solution but a working one. Thanks to all. Ben - Original Message - From: "Nikolay Bachiyski" <[EMAIL PROTECTED]> To

Re: [PHP] use of @ operator to suppress errors

2004-03-15 Thread Ben Joyce
is in my error handling function, ignoring any NOTICE errors, but ideally I'd like to leave it as-is and suppress them when referencing. I'm not sure if I'm making much sense. Any help appreciated! Cheers, Ben - Original Message - From: "Stuart" <[EMAIL PROT

Re: [PHP] use of @ operator to suppress errors

2004-03-15 Thread Ben Joyce
fficient to check whether is variable set or not. > > /tom > > On Mon, 15 Mar 2004 11:43:24 - > "Ben Joyce" <[EMAIL PROTECTED]> wrote: > > > hi. > > > > i'm using error_reporting(0) and set_error_handler("MyErrorHandler") t

[PHP] use of @ operator to suppress errors

2004-03-15 Thread Ben Joyce
hi. i'm using error_reporting(0) and set_error_handler("MyErrorHandler") to manage my errors but I'm getting situations where a NOTICE error is thrown. For example if I refer to $_GET['this'] when there is no 'this' querystring key then i get the error. I've tried using @$_GET['this'] but it mak