php-general Digest 26 Dec 2008 19:50:04 -0000 Issue 5866

2008-12-26 Thread php-general-digest-help
php-general Digest 26 Dec 2008 19:50:04 - Issue 5866 Topics (messages 285071 through 285072): Re: Round to a given value? 285071 by: Anders Norrbring PHP (under httpd) reading a file outside DocumentRoot? 285072 by: Jeff Weinberger Administrivia: To subscribe to the

php-general Digest 27 Dec 2008 07:54:15 -0000 Issue 5867

2008-12-26 Thread php-general-digest-help
php-general Digest 27 Dec 2008 07:54:15 - Issue 5867 Topics (messages 285073 through 285088): Re: PHP (under httpd) reading a file outside DocumentRoot? 285073 by: Nathan Rixham 285074 by: Nathan Rixham Online Members 285075 by: Stephen Alistoun 285084 by:

SV: SV: [PHP] Round to a given value?

2008-12-26 Thread Anders Norrbring
Anders Norrbring wrote: On Wed, 2008-12-24 at 20:38 +0100, Anders Norrbring wrote: Rounding an integer to the closest divisor by ten is easy with round() and a negative precision, but I turn out to be lost if I want to round to a given number.. Example, round to the closest

[PHP] PHP (under httpd) reading a file outside DocumentRoot?

2008-12-26 Thread Jeff Weinberger
I don't know if this is an Apache (httpd) or a PHP issue (I suspect PHP, but I may be doing something wrong with mod_suexec), so I hope this is the right place to ask. I certainly appreciate any help anyone can offer! I am trying to get a PHP script to read a file that's outside the

[PHP] Re: PHP (under httpd) reading a file outside DocumentRoot?

2008-12-26 Thread Nathan Rixham
Jeff Weinberger wrote: I don't know if this is an Apache (httpd) or a PHP issue (I suspect PHP, but I may be doing something wrong with mod_suexec), so I hope this is the right place to ask. I certainly appreciate any help anyone can offer! I am trying to get a PHP script to read a file

[PHP] Online Members

2008-12-26 Thread Stephen Alistoun
Hi all, What is the best way to pick up all the members online on a website? Regards, Stephen -- View this message in context: http://www.nabble.com/Online-Members-tp21180855p21180855.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List

[PHP] Decorator with public methods

2008-12-26 Thread Larry Garfield
Excuse me a moment while I delve into complex OO. :-) I have an object to which I want to add behavior (methods). I cannot use inheritance here because the object is already of a type or subtype (vis, I am already using inheritance for something else), and because I want to be able to add

[PHP] Using MDB2 outside the PEAR framework?

2008-12-26 Thread Murray
Hi All, I'm wondering if it's possible or practical to implement MDB2 in my web application, but without requiring a PEAR installation on the destination server? Essentially, I'd like to include MDB2 entirely within my web application, so I can make use of db abstraction even on servers where

Re: [PHP] Using MDB2 outside the PEAR framework?

2008-12-26 Thread Murray
Hi John, Well, this is the thing -- I suspect there are dependencies, particularly on the core PEAR files themselves. I'm just wondering if someone else has done this and if it's too difficult to make the effort worthwhile. The Wordpress project, for example, I think rebuilt an abstraction layer

Re: [PHP] Using MDB2 outside the PEAR framework?

2008-12-26 Thread Mattias Thorslund
As far as I recall, having done this, all that is required for a basic MDB2 is the PEAR base class and the driver classes for the platforms you want to support. Murray wrote: Hi All, I'm wondering if it's possible or practical to implement MDB2 in my web application, but without requiring a

Re: [PHP] Decorator with public methods

2008-12-26 Thread Nathan Nobbe
On Fri, Dec 26, 2008 at 6:53 PM, Larry Garfield la...@garfieldtech.comwrote: Excuse me a moment while I delve into complex OO. :-) I have an object to which I want to add behavior (methods). I cannot use inheritance here because the object is already of a type or subtype (vis, I am already

Re: [PHP] Using MDB2 outside the PEAR framework?

2008-12-26 Thread Murray
Thanks John and Mattias, It looks like your advice has helped me achieve my goal. Thanks again! M is for Murray On Sat, Dec 27, 2008 at 2:05 PM, Mattias Thorslund matt...@thorslund.uswrote: As far as I recall, having done this, all that is required for a basic MDB2 is the PEAR base class

[PHP] Do defined variables exist at application scope, or session scope?

2008-12-26 Thread Murray
Hi All, In the index.php file of my application I define several variables, including such things as the base path of the app, and the theme path etc. Since I use 'define()' to do this, are these variables available to my app regardless of where a particular user enters the app? So, in starting

[PHP] uri/url help

2008-12-26 Thread Kenton P. Kammer
I'm trying to make something to redirect people to my home page if they some how access my include pages. For example, I have a generic copyright .htm with links in it that I add to all my pages with the include(). Problem is when I'm trying to make it the uri is always where it is in the

Re: [PHP] Online Members

2008-12-26 Thread Michael Kubler
Some people will be happy with just a corny 1 liner, other's you'll need to invite to dinner, and promise a romantic evening, and show how masculine/feminine you are. But I doubt you'll be able to get that many dates, unless it's a single site most will probably already be in a relationship, or

Re: [PHP] Do defined variables exist at application scope, or session scope?

2008-12-26 Thread Larry Garfield
On Friday 26 December 2008 11:54:30 pm Murray wrote: Hi All, In the index.php file of my application I define several variables, including such things as the base path of the app, and the theme path etc. Since I use 'define()' to do this, are these variables available to my app regardless

Re: [PHP] Decorator with public methods

2008-12-26 Thread Larry Garfield
On Friday 26 December 2008 11:06:07 pm Nathan Nobbe wrote: to summarize, using your example above, i would most liely add doThings() to Baz, or create another decoration interface for doThings() if you plan on using the Bar implementation of doThings() in many places, interface G {

Re: [PHP] uri/url help

2008-12-26 Thread Robert Cummings
On Fri, 2008-12-26 at 22:02 -0800, Kenton P. Kammer wrote: I'm trying to make something to redirect people to my home page if they some how access my include pages. For example, I have a generic copyright .htm with links in it that I add to all my pages with the include(). Problem is when

Re: [PHP] Do defined variables exist at application scope, or session scope?

2008-12-26 Thread Murray
Hi Larry, You're absolutely right, I'm talking about constants rather than variables. I guess in my very crude way, I'm trying to ask about the following: UserA goes to the site via index.php, which defines several helpful constants. So do UserB through UserF. UserG, however, first arrives at

Re: [PHP] uri/url help

2008-12-26 Thread Nathan Nobbe
On Sat, Dec 27, 2008 at 12:08 AM, Robert Cummings rob...@interjinn.comwrote: On Fri, 2008-12-26 at 22:02 -0800, Kenton P. Kammer wrote: I'm trying to make something to redirect people to my home page if they some how access my include pages. For example, I have a generic copyright .htm with