PHP Optimization

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

It's annoying to go in and out of php like that though :P
User avatar
mudkicker
Forum Contributor
Posts: 479
Joined: Wed Jul 09, 2003 6:11 pm
Location: Istanbul, TR
Contact:

Post by mudkicker »

yes, it's true. but for example i use it only when there are only huge html blocks to write.. for only one row of html code it's not necessary..
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

PrObLeM wrote:tip1:
echo '';
is faster than
print "";
damn i always use print
PrObLeM wrote: tip 3:
dont do something more than once (ie assigning variables, unessicary db connects ect)
yeah i reorganised a whole app because of unnecessary DB connections
Post Reply