Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docs:programming:php:php_notes [2007/08/03 00:41] – billh | docs:programming:php:php_notes [2008/08/03 00:25] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 217: | Line 217: | ||
===== accessing class members from another function ===== | ===== accessing class members from another function ===== | ||
* if you add a normal function in a file after a class has been defined, and you want to access the members of the class within the normal function, you need to declare the class as " | * if you add a normal function in a file after a class has been defined, and you want to access the members of the class within the normal function, you need to declare the class as " | ||
+ | |||
+ | ===== require/ | ||
+ | * if you use require or include, make sure to use a relative or full path to avoid duplicating a filename already in the php include path (such as DB.php) | ||
+ |