Sprintf() Tip
From the book: For MySQL security, you can use sprintf() to force user input to have a maximum length and be valid for the structure of your database. Use the precision specifier to automatically parse...
View ArticlePHP & Ampersand: Passing by Reference
The following PHP Reference excerpt is from pages 20-21. & – Pass by Reference References allow two variables to refer to the same content. In other words, a variable points to its content (rather...
View ArticleQuick Tip: getcwd() for Contents of Current Directory
The getcwd() function is short for ‘GET Current Working Directory’. This can easily be combined with the scandir() function which returns an array of all the files and directories inside the specified...
View ArticleSprintf() Tip
From the book: For MySQL security, you can use sprintf() to force user input to have a maximum length and be valid for the structure of your database. Use the precision specifier to automatically parse...
View ArticlePHP & Ampersand: Passing by Reference
The following PHP Reference excerpt is from pages 20-21. & – Pass by Reference References allow two variables to refer to the same content. In other words, a variable points to its content (rather...
View ArticleQuick Tip: getcwd() for Contents of Current Directory
The getcwd() function is short for ‘GET Current Working Directory’. This can easily be combined with the scandir() function which returns an array of all the files and directories inside the specified...
View Article