Sanitize User Input Text with PHP
When you prompt user to input text (e.g. username, lastname etc), you may use Regular expressions to sanitize User Input, for example: allow space, any unicode letter if(preg_match("/[^40pL]/u", $term)) {…
When you prompt user to input text (e.g. username, lastname etc), you may use Regular expressions to sanitize User Input, for example: allow space, any unicode letter if(preg_match("/[^40pL]/u", $term)) {…
Debian is an ideal solution for servers. Stability is the main advantage of Debian. At the same time the stable Debian version doesn't contain the most recent packages. So, Debian…
If you want to start a Youtube playlist from random video, just add: &index=random_number to the src attribute of the embed code. The code To produce a random number, I…
Getting file extension and basename is a common development task. PHP internal function pathinfo is very useful. But, Windows paths will not work correctly on Linux servers and vice versa.…
If you want to access via the internet a computer which is behind a NAT router and it has not direct access to the internet, you need a VPN solution.…