Re: [PHP] Forcing auto_prepend_file to work regardless of what document was accessed

2005-10-23 Thread Richard Lynch
On Sat, October 22, 2005 11:42 pm, Dan Trainor wrote: This would be a great solution, and I'm sure my concern is something that's been discussed many times on this list - I'm worried about the performance hit that the machine would take, if/when parsing a large number of files, in this manner.

[PHP] Abstract Classes?

2005-10-23 Thread Alan Lord
Hi All, I have started reading a couple of books about PHP 5 and whilst most of it is comprehensible even to me :-), I fail to understand WHY there is such a thing as an abstract class or method? I think I understand what it is: A class that can't itself be instantiated, only inherited from, or

Re: [PHP] Abstract Classes?

2005-10-23 Thread Jasper Bryant-Greene
On Sun, 2005-10-23 at 08:54 +0100, Alan Lord wrote: Hi All, I have started reading a couple of books about PHP 5 and whilst most of it is comprehensible even to me :-), I fail to understand WHY there is such a thing as an abstract class or method? I think I understand what it is: A class

[PHP] Php and Ruby

2005-10-23 Thread Jacob Friis Saxberg
Hi. How can I use Ruby with Php? My goal is to have (Independence of Presentation Logic(IoPL)). Thanks, Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Php and Ruby

2005-10-23 Thread Jacob Friis Saxberg
How can I use Ruby with Php? I mean Rails. sorry :) My goal is to have (Independence of Presentation Logic(IoPL)). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Abstract Classes?

2005-10-23 Thread Alan Lord
Thanks Jasper, That makes sense. But what benefit is there is having it as an explicitly abstract class? Why can't it just be a normal class definition which you inherit from? Sorry to be so dense Al -Original Message- From: Jasper Bryant-Greene [mailto:[EMAIL PROTECTED]

Re: [PHP] Re: Php and Ruby

2005-10-23 Thread Greg Donald
On 10/23/05, Jacob Friis Saxberg [EMAIL PROTECTED] wrote: How can I use Ruby with Php? I mean Rails. sorry :) http://www.rubyonrails.org/ I have a couple of Rails apps on my own server with other PHP apps running there too. Apache will run mod_fcgi and mod_php at the same time with no

Re: [PHP] Memory Leak?

2005-10-23 Thread cron
I think the php GC only kicks in at the end of a script some calls to mysql_free_result might help Angelo - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Saturday, October 22, 2005 11:40 PM Subject: Re: [PHP]

Re: [PHP] Ugh, w32 anything is making me want to drink!

2005-10-23 Thread Rick Emery
Jasper Bryant-Greene wrote: On Fri, 2005-10-21 at 15:43 -0500, Jay Blanchard wrote: [snip] I haven't used Windows for a while, but Start-Search-Files folders (or something like that) and enter php.ini. Delete all results except the one that you've been editing, and then move the one you've

Re: [PHP] Abstract Classes?

2005-10-23 Thread Colin Shreffler
One reason would be that you might not know the details of a derived class's implementation details at design time. For instance I could have an abstract class such as this: Class MyTestClass { function doSomething() { doSomethingElse(); } abstract function

RE: [PHP] Abstract Classes?

2005-10-23 Thread Alan Lord
Thanks, That's starting to make some sence now! Al -Original Message- From: Colin Shreffler [mailto:[EMAIL PROTECTED] Sent: 23 October 2005 17:03 To: Alan Lord; 'Jasper Bryant-Greene' Cc: php-general@lists.php.net Subject: Re: [PHP] Abstract Classes? One reason would be that

Re: [PHP] Abstract Classes?

2005-10-23 Thread GamblerZG
Alan Lord wrote: But what benefit is there is having it as an explicitly abstract class? Why can't it just be a normal class definition which you inherit from? The idea is that a high-level language should prohobit you from doing things that do not make sence. Why they implemented it in PHP?

[PHP] connect to MySql

2005-10-23 Thread hassan mahdi
Dear Sir I have windows XP sevice pack 1 and 2, PHPv5.0.5, Mysql v1. I am working in web design. I am unable to connect to the mysql server. Althought my php files running fine and my mysql server is also running fine. i) i had changed the php.ini-dist file to php.ini. ii)i uncommented the

Re: [PHP] connect to MySql

2005-10-23 Thread Larry E. Ullman
I have windows XP sevice pack 1 and 2, PHPv5.0.5, Mysql v1. I am working in web design. I am unable to connect to the mysql server. Althought my php files running fine and my mysql server is also running fine. i) i had changed the php.ini-dist file to php.ini. ii)i uncommented the

[PHP] A better way to do this

2005-10-23 Thread Ross
I want the selct table to retain it's value on submit. The way I have done it works but is a bit rubbish and was wondering if there is a more efficient way. I just make the variable equal to selected when the form is submitted select name=table_name id=table_name option value=1

Re: [PHP] A better way to do this

2005-10-23 Thread Jasper Bryant-Greene
On Sun, 2005-10-23 at 20:23 +0100, Ross wrote: I want the selct table to retain it's value on submit. The way I have done it works but is a bit rubbish and was wondering if there is a more efficient way. I just make the variable equal to selected when the form is submitted select

Re: [PHP] Re: Email Validation built-in? RFC

2005-10-23 Thread Robin Vickery
On 10/23/05, Manuel Lemos [EMAIL PROTECTED] wrote: Hello, on 10/22/2005 12:58 AM Richard Lynch said the following: Checking MX records is not reliable at all. I agree that it is less useful today, but it still help catches many domain name typos. ... would it not make sense for there

Re: [PHP] connect to MySql

2005-10-23 Thread Jasper Bryant-Greene
On Fri, 2005-10-21 at 12:06 -0700, hassan mahdi wrote: I have windows XP sevice pack 1 and 2, PHPv5.0.5, Mysql v1. I am working in web design. I am unable to connect to the mysql server. Althought my php files running fine and my mysql server is also running fine. MySQL 1? Really? That's a

Re: [PHP] Forcing auto_prepend_file to work regardless of what document was accessed

2005-10-23 Thread Dan Trainor
Richard Lynch wrote: On Sat, October 22, 2005 11:42 pm, Dan Trainor wrote: This would be a great solution, and I'm sure my concern is something that's been discussed many times on this list - I'm worried about the performance hit that the machine would take, if/when parsing a large number of

[PHP] error reporting php-5.0.4-10.4 on FC4

2005-10-23 Thread Bob Hartung
Hi all, Slowly I'm progressing. Now how to turn error reporting on for a test apache server. I have made the following changes to /etc/php.ini: error_reporting = E_ALL display_errors = On error_log = /var/log/php_errors On errors I still have no in browser display nor

Re: [PHP] error reporting php-5.0.4-10.4 on FC4

2005-10-23 Thread Jasper Bryant-Greene
On Sun, 2005-10-23 at 17:31 -0400, Bob Hartung wrote: Hi all, Slowly I'm progressing. Now how to turn error reporting on for a test apache server. I have made the following changes to /etc/php.ini: error_reporting = E_ALL display_errors = On error_log =

Re: [PHP] error reporting php-5.0.4-10.4 on FC4

2005-10-23 Thread Bob Hartung
Jasper If if make a file containing only ?php phpinfo() ; ? I get what I expected. If I make a file containing ?php phpinfo() ; // Now a simple class and a call to the class class Simple() { void __construct() { echo In the constructor ;

Re: [PHP] error reporting php-5.0.4-10.4 on FC4

2005-10-23 Thread Jasper Bryant-Greene
On Sun, 2005-10-23 at 21:31 -0400, Bob Hartung wrote: Jasper If if make a file containing only ?php phpinfo() ; ? I get what I expected. If I make a file containing ?php phpinfo() ; // Now a simple class and a call to the class class Simple() Your error

Re: [PHP] error reporting php-5.0.4-10.4 on FC4

2005-10-23 Thread Derek Williams
Bob Hartung wrote: Jasper If if make a file containing only ?php phpinfo() ; ? I get what I expected. If I make a file containing ?php phpinfo() ; // Now a simple class and a call to the class class Simple() { void __construct() { echo In the

Re: [PHP] error reporting php-5.0.4-10.4 on FC4

2005-10-23 Thread Bob Hartung
Jasper Derek phpinfo() says: configuration file path /etc/php.ini PHP Core DirectiveLocal Value Master Value display_errorsOff Off error_logno value no value log errorson

Re: [PHP] error reporting php-5.0.4-10.4 on FC4

2005-10-23 Thread Jasper Bryant-Greene
On Sun, 2005-10-23 at 23:01 -0400, Bob Hartung wrote: Jasper Derek phpinfo() says: configuration file path /etc/php.ini PHP Core DirectiveLocal Value Master Value display_errorsOff Off error_logno

Re: [PHP] error reporting php-5.0.4-10.4 on FC4 - RESOLVED!!

2005-10-23 Thread Bob Hartung
It wasn't what I was looking for but I enable it: include_path = .:/php/includes This was commented out. After uncommenting it all works as I expected except that my syntax in the class was wrong. Now I can at least start to learn. Thanks Jasper and Derek - you gave me a shove in the

RE: [PHP] Abstract Classes?

2005-10-23 Thread Richard Lynch
On Sun, October 23, 2005 5:40 am, Alan Lord wrote: But what benefit is there is having it as an explicitly abstract class? Why can't it just be a normal class definition which you inherit from? It could be just a normal class... But assume you're working on a team with a LOT of programmers,

RE: [PHP] Abstract Classes?

2005-10-23 Thread Colin Shreffler
I don't particularly care for this explanation as it makes abstract classes out to be a mere convention of some kind during the development life-cycle. While I can see this as a potentially convenient byproduct of the fact that an abstract class cannot be directly instantiated, this is NOT the