Tag: php

PHP has a built-in function that outputs a web page with all of PHP’s loaded configuration: phpinfo(). To find out if a given PHP extension is loaded or other configuration directives, you can create a new file inside your public_html with the following contents: <?php phpinfo(); ?> For example, lets say I saved the file … Read more

PHP has a built-in limit on the amount of memory it will allocate. If that limit is reached, the process will exit with this error message. This is usually the result of the PHP script trying to load a large file, such as an image, into memory all at once. While it is better if … Read more

Our servers run PHP4, PHP5.2, PHP5.3, PHP5.4 and PHP5.5. PHP5.3 runs by default. You can change the default PHP version from the hosting control panel. In there you will find an icon with the name “Switch PHP Version”. You can also override the default PHP version in a per-directory basis by using a web server … Read more

The php mail() function is described as follows: bool mail ( string $to, string $subject, string $message [, string $additional_headers [, string $additional_parameters]] ) This basically means that the first three parameters (to, subject and message) are requiered in order for the function to work. But we also have the option to send additional headers, … Read more

When having problems with file uploads because of the size of the files being uploaded it is worth having a look at the following php directives: memory_limit, upload_max_filesize, post_max_size, max_execution_time and max_input_time. memory_limit Sets the amount of memory that a php script can use. By default it is 8Mb. upload_max_filesize This sets the maximum allowed … Read more