PHP Tips And Tricks Collections
Category : Tutorials » PHP Programming
PHP has a rich set of string manipulation functions - use them! . You need PHP's built-in ftp functions for the ultra-cool script you are writing, .
Download File
Free PDF eBooks Download
Tutorials
PHP Programming
Content Summary :
Don't use a regex if you don't have to PHP has a rich set of string manipulation functions - use them! BAD: GOOD: BAD: GOOD: Use References if you are passing large data structs around to save memory There is a tradeoff here. Manipulating references is actually a bit slower than making copies of yourdata, but with references you will be using less memory. So you need to determine if you are cpu ormemory bound to decide whether to go through and look for places to pass references to data insteadof copies. Use Persistent Database connections Some database are slower than others at establising new connections. The slower it is, the more of animpact using persistent connections will have. But, keep in mind that persistent connections will sitand tie up resources even when not in use. Watch your resource limits as well. For example, bydefault Apache's
Favorite PHP Programming PDF File
how to install and con iuml not
Based on a tutorial by Prof. Daniel Sauter Rasmus Lerdorf amp Kevin Tatroe Programming PHP. . only some dynamic PHP elements the. XML programming style .
Using PHP and MySQL 3. rd . with previous programming experience will probably be able to get away with . Chapter 12 Structured PHP Programming .
What can PHP do As we have just said PHP is a fully featured programming language . Not recommended programming practice to have two variables. of the .
Navigate PHP Tutorials gt PHP gt Basics amp Beginner Tutorials. Author . inside that is variable scope I will cover that more later on in the tutorial. .