Code choose 6 numbers between 1 and 42 , sort them and choose a reserve number between 1 and 42 , then display it in the browser.
Test to see if a value is in a list. This can replace large OR statements.
This small function returns an encoded string to embed images, inline, inside your html/css code and reduce the number of calls to the server and speed up page load. You can see an [url=http://www.barattalo.it/2013/12/04/embedding-images-html-css-php/]example of usage here[/url].
If you need an Email Validator Function, consider this version that includes also the check against common temporary mail services which should be blocked, since their emails work only for some minutes.
This function calculates how strong a password choice is. A strong password has a value that is as close to possible to 100.
This PHP script helps you execute SQL statements or .sql file with PHP. There is a good deal of tutorials for this but we are going to use mysqli and its built-in commands to quickly execute small or large number of SQL statements or .sql file with PHP. It's functionality is similar to "Import" option in Mysql database. Because it greatly simplifies the task of executing sql statements quickly and without any hassle. Since this is implemented in PHP core classes, you can use it in anywhere including any frameworks (you may need slight customization or need to find relevant statements in respective frameworks, but it always works).
I’m tired of typing the same stuff over and over. So I spend alot of time writing reusable code. No matter if it’s just simple methods or abit more complex objects. Here’s the database object I just wrote. It’s versatile and it really doesnt restrict you to follow any special rules except what objects already restricts you to. You can decide for yourself if you want to complete the query statement or make prepared statement in a valid vsprintf() format.
Is your site in maintenance? Let users know by directing them to a maintenance page without them disrupting your maintenance.
sa poum edite apre
Is your server in some other timezone, and date functions display the date in another time? use this code to change that, to any timezone you would like.
kelimeleri bÃ¼yÃ¼k harflere Ã§evirir
This shows how to make a simple registration form.
This script makes a list of content for each month and puts the current month first, and then lists the months coming up.
This function will take a birthday and calculate an age.
This script enables users/you to get the hash from a file using any hashing algorithm that is included in php and also enables you to verify that it is the same hash as the one you provide. This is useful if you download a file from a site that provided a hash and you want to check if it downloaded successfully.
This checks to see if two strings match each other.
Developers willing to send HTML email requires a lot of time creating, customizing and sending HTML emails because it needs to be well written in HTML and correctly using much needed inline CSS. Poorly formatted HTML emails are rejected by some mail clients. In order to solve this problem, I have prepared a PHP script that helps you send HTML email in minutes. Everything is ready-made and easy to customize quickly. For example, you can customize image title, alt tags, message body and everything much quicker and send the mail in minutes. Go through the script and customize it in case you need changes. Because HTML email is ready to go now!
This function searches a large string, for a smaller string.