Re: [PHP] php5 and object
http://us4.php.net/manual/en/language.oop5.abstract.php The short is that you can't do anything more than define a function in an abstract class. IIRC, change abstract to interface, and you'll probably be okay. On Wed, 28 Jul 2004 21:18:26 +0200, Krzysztof Gorzelak [EMAIL PROTECTED] wrote: Hello, I'm trying to make this code to work: // start of code abstract class Strona { abstract public function generuj_strone(); function foo() { generuj_strone(); } } class Katalog extends Strona { public function generuj_strone() { echo OK; } } $bar = new Katalog(); $bar-foo(); // end of code And I get such error : Fatal error: Cannot call abstract method Strona::generuj_strone() in And I expect word: OK Is it a bug or a normal behaviour ? Thanks for help! Krzysztof Gorzelak [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP-5 book
Can someone advise me of a very good PHP-5 book. [snip] I've been using Zeev Leon Atkinson's _Core_PHP_Programming_ since 5beta1 was out. It was extremely helpful, and I still refer to it on a regular basis. Just ignore the section on namespace support, if they haven't had a revised printing yet. http://www.eyrolles.com/Informatique/Livre/9780130463463/livre-core-php-programming.php eyrolles has it listed at 65,00 EUR, and I'd swear by it. -SS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] OT but need guidance in timing page views
I know that this is somewhat off topic, but I just need a starting place to do the research and thought someone here might be able to help. I am developing an application in which I need to time how long a visitor remains within a module and how long they view each page. It seems like alot of people are focusing on what you can't do. As the client seems not to care, you could take the immediate approach and mimic several other online education sites, combining JavaScript to monitor the browsing habits and submitting a php script when the page is left. IE, use onload/onfocus to start a timer, onblur to pause it, and then onunload to perhaps popup or popunder a new window, populate a form with your necessary data, auto-submit and close that window. Sure, not entirely accurate, and you can still fool it if you have the know-how, but much more accurate than refreshing a frame every 2 minutes, and you have control of a timer than can be stopped when the user's not viewing the page. IIRC, there are several 'defensive driving' online sites that use this approach in the US. -SS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php