Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Beginning PHP 5.3
|
BOOK: Beginning PHP 5.3
This is the forum to discuss the Wrox book Beginning PHP 5.3 by Matt Doyle; ISBN: 978-0-470-41396-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP 5.3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 14th, 2012, 06:32 AM
Registered User
 
Join Date: Jul 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Angry Non-static method DataObject::connect() issue

hi i am getting issue of example given in 13CH and 14Ch, i read somewhere that it is related to system configuration but i dint get any clue. i am using wamp2.2E(64bit) on windows-7(64bit).

in chapter 14 issues are following:-
Strict standards: Non-static method DataObject::connect() should not be called statically in C:\wamp\www\test\book_club\Member.class.php on line 71

Strict standards: Non-static method DataObject::disconnect() should not be called statically in C:\wamp\www\test\book_club\Member.class.php on line 79
 
Old August 5th, 2012, 12:04 PM
Registered User
 
Join Date: Aug 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had the same problem. In order to fix it I changed the connect() and disconnect() methods to

protected static function connect() and
protected static function disconnect()

Since I'm brand new in PHP I don't know if this would have any unwanted side effects for the rest of the program.





Similar Threads
Thread Thread Starter Forum Replies Last Post
use web control in static method Kirti.darji ASP.NET 3.5 Professionals 4 September 1st, 2009 07:50 AM
Static Method Abstraction rodmcleay ASP.NET 3.5 Professionals 10 March 29th, 2009 10:51 PM
XSLT php:function: call objects non static method polarbear Pro PHP 1 June 6th, 2008 05:39 PM
how to achieve static method in an interface? cfouquet C# 3 September 28th, 2004 08:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.