Re: [PHP] delete file contents before writing?

2002-06-03 Thread Tobyn Baugher
On Mon, 2002-06-03 at 11:37, Jas wrote: Not sure how I could do this as I could not find a functions on php.net to allow me to first delete the entire contents of a file before writting the changes supplied by a textarea. Here is what I have thus far: Just fopen a file with the 'w' mode when

Re: [PHP] Question regarding :: syntax

2002-06-03 Thread Tobyn Baugher
On Mon, 2002-06-03 at 12:06, Jared Boelens wrote: Is there not a way to refer directly to the parent properties? Or do i have to setup a get function for every parent var that I want to access. Tis my understanding that you cannot refer to class properties without an instance of the class.

RE: [PHP] Question regarding :: syntax

2002-06-03 Thread Tobyn Baugher
On Mon, 2002-06-03 at 12:45, Jared Boelens wrote: So am i to understand that i will have to do it in this manner? *SNIP* No no no... B extends A, and you have an instance of B. Just do this: class A { var $b; *snip* } class B { function B($b) {

Re: [PHP] OT - php/mysql/cron

2002-06-03 Thread Tobyn Baugher
On Mon, 2002-06-03 at 13:18, Kelly Meeks wrote: Any way to use cron to automate the mysqldumping of databases on a nighly basis? Any examples would be greatly appreciated. This line's gonna wrap, but it all goes on the same line :P 0 0 * * * /usr/local/bin/mysqldump -u username

RE: [PHP] Question regarding :: syntax

2002-06-03 Thread Tobyn Baugher
On Mon, 2002-06-03 at 13:42, Jared Boelens wrote: This may be a dumb question but, how can you be sure that the $this- is referring to the parent classes' property and not the current class. On that note, does it really matter of which one it refers? B inherits $b from A. $this-b and