There are some methods to look through one array in PHP. The functions are foreach, while and for. In this article, we will show examples on PHP loop through array using each of these functions. By these examples, there will be a loop in the PHP script, and on each member of the array, the PHP script will show its value. Instead,...
In this example, we will show a script in PHP to upload multiple files at once. This PHP upload multiple files script works in any standard PHP based server. First of all, the HTML page will prompt you to select multiple files. Then, as you click Upload, the server will process the files one by one. First of all, make...
If you own a website where users are allowed to upload files, you might often get complaints stating that they are unable to upload files. They would be hitting an error as follows: “Error: The uploaded file exceeds the upload_max_filesize directive in php.ini” upload_max_filesize mentioned in the error above...
Sometimes you might have noticed that certain PHP scripts that you wrote are not working as desired. A very common error message is Fatal error: Maximum execution time of 30 seconds exceeded. The cause is the PHP restriction on the directive max_execution_time. But, it’s easy to adjust the PHP max execution time. Firstly,...
PHP is by far the most favourite scripting language when it comes to websites. Our servers run different versions of PHP and customers are free to choose the version they like. This is accomplished using the PHP version selector in cPanel. The post describes how versions can be selected based on your requirements. It’s...