Categories
Code PHP

Basic REGEX for cleaning and prepping data

Over the 15 years or so, I have used the PHP Framework CodeIgniter, Amongst many of its good features is its built in Form Validation Library. Every now and then I need to write adhoc code, or help others to write or develop sections of their site, I happy to help friends in need. Today […]

Categories
Code PHP

Calculating memory used by PHP to generate that page

Do you know how much memory those loops are using ?Why is this page taking so long to load ?Well with this simple PHP code you can daily benchmark different versions of your script to use the least possible amount of Memory.