if one visits for the first time, it says welcome. otherwise it gives the visit number and says when the user was on the site last time.
Outputs the number of users online, and who those users are without using a database.
This shows how to make a simple registration form.
scope of isAjax function is to check whether request is done via ajax or not.
Need to unzip a file? this function can do that for you.
none for now
Is your site in maintenance? Let users know by directing them to a maintenance page without them disrupting your maintenance.
This function will take an array, and either display the: mean, median, mode, or range of the array.
This function will take a string and find the domain name of that string.
Checks to see if the email has certain characters.
This will force user authentication in the browser, it will display a popup box until the user enters a valid username and password into the box.
This function let's you grab file extension from an array of filenames
This simple snippet will help new PHP users learn how to create and use a variable.
This function will check to see if the file your checking is an image.
PHP function to untar files.
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].
This script helps you download files in PHP, capable of downloading files in MB and GBs. This script is already elaborate and should work without problems. If you come across problems, don't forget to post issues in comments so that we could further improve the script. All useless headers and incorrect codes have already been removed. For massively large file downloads, you may always follow the best way: X-Sendfile. Check out more here: https://tn123.org/mod_xsendfile/
Using ImageMagick, you can easily create image thumbnails faster and much easier than using just php.
All this snippet really needs is 2 arrays containing different values. The first array will be the field names in the table you're submitting to. The second array will hold the submitted data to add into the new record. You will need to arrange the fields and values in order for the snippet to work properly. Here's how it works. The first parameter needs the table name you're creating the new record in. The second parameter will be the variable that contains the array of field names of the table you have chosen. The third parameter will contain the values to add into the field names in it's own record. The fourth parameter is option. Adding true to it will return the last ID that mysql auto incremented to your PHP code, so you may use it in any way you like. Like the example shown, the $insert variable is going to retrieve the ID that Mysql sent back to be used in a header redirection. This code works for mysql_* functions, but you can modify it to work with MySQLi too.