Trigger to Download a File When Clicking Link


There are two ways to trigger to download a file.
HTML 5 Download Attribute.
Download File Using PHP Script.
The download attribute triggers a force download but it does not supported by Safari. Following are the versions that support download attribute.

19 Comments

Facebook Official Page: All PHP Tricks

Twitter Official Page: All PHP Tricks

Submit Form if At Least One Checkbox is Checked


Today in this tutorial i will going to explain how to restrict form submission if at least one checkbox is not checked, when a user press submit button an alert will appear to check at least one checkbox if at least one checkbox is not checked it means form will not be submitted, User will be required to check at least one checkbox to submit form.

17 Comments

Facebook Official Page: All PHP Tricks

Twitter Official Page: All PHP Tricks

How to Reset AUTO_INCREMENT in MySQL?


There is a common issue which is usually faced by almost every newbie web developer or database administrator. When you insert records in your table of database after deleting all or some records from that table, if AUTO_INCREMENT property was set on your ID column or any other column,

3 Comments

Facebook Official Page: All PHP Tricks

Twitter Official Page: All PHP Tricks

Upload File Using PHP and Save in Directory


Uploading file is one of the most common feature which we normally use in our daily life, we do upload pictures on Facebook, Twitter and other websites. So today i will share a tutorial about how to upload file using PHP and save/store that file in your web server directory.

65 Comments

Facebook Official Page: All PHP Tricks

Twitter Official Page: All PHP Tricks