Search found 6 matches
- Mon Feb 12, 2007 12:04 pm
- Forum: PHP - Code
- Topic: Referencing
- Replies: 7
- Views: 561
- Mon Feb 12, 2007 2:58 am
- Forum: PHP - Code
- Topic: Referencing
- Replies: 7
- Views: 561
- Sun Feb 11, 2007 4:24 pm
- Forum: PHP - Code
- Topic: Referencing
- Replies: 7
- Views: 561
Referencing
I've never used referencing until now, and I'm starting to think about performance etc... If there is a constant WEBSITE_ROOT, and I wanted to print this out inside heredoc (which you can't do) I would do this: $root = WEBSITE_ROOT; Then inside the heredoc I can print the variable $root instead. My ...
- Thu Feb 08, 2007 12:01 pm
- Forum: PHP - Theory and Design
- Topic: Objects and Databases
- Replies: 6
- Views: 1201
- Thu Feb 08, 2007 6:49 am
- Forum: PHP - Theory and Design
- Topic: Objects and Databases
- Replies: 6
- Views: 1201
- Wed Feb 07, 2007 5:00 pm
- Forum: PHP - Theory and Design
- Topic: Objects and Databases
- Replies: 6
- Views: 1201
Objects and Databases
Usually when I code a small web app, I do everything procedurally, making use of functions here and there. I try to code as efficiently as possible. I'm hoping to do my next project using objects... Imagine I have a database table called Tests, and I wanted to echo everything in it. Originally I wou...