Get last part of url – page name

Shows loop.php Or get full url see here Get Full url

Random numbers and string

Just numbers

and both numbers and letters

See last xml request posted

Displaying decimal format in PHP (bcmul)

some times there are problems with displaying decimal numbers in PHP. One I encountered was when I was displaying a number to 2 decimal places after multiplying by 10. This causes it to become a float again and does not do what it should with number_format and sprint printf and round! nothing will work except […]

Turn PHP error reporting on /off

Very important to have this snippet….its basic but essential!

Permutations – Random

Call function in PHP

Upload a file – simple

2 files upload.php