February 24, 2019, 3:29 pm

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,...

February 24, 2019, 2:58 pm

Basically, the conversion from a PHP Array to a string can be easily done by the implode() function. So, here you will find some examples. <?php $array = array('One','Two','Three','Four'); $string = implode(" ",$array); echo $string; ?> 12345 <?php$array...

February 24, 2019, 1:44 pm

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...

June 13, 2016, 9:14 pm

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...

June 13, 2016, 9:02 pm

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,...

June 13, 2016, 8:53 pm

If you are using an old version of PHP, it is likely that you have seen errors as follows: PHP Fatal error: Directive ‘register_globals’ is no longer available in PHP in Unknown on line 0 “PHP Fatal error: Directive ‘register_globals’ is no longer available in PHP in Unknown on line 0” “PHP...

June 13, 2016, 8:45 pm

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...

June 13, 2016, 8:34 pm

In this article we will explain the PHP Memory limit error in cpanel, and show a quick and easy solution for it. It requires a simple access to the cPanel shared hosting account. Why does the Memory limit error happens ? Sometimes when you execute a PHP script, you will notice that it returns an error like “Fatal...