Breaking News
Home / Web / PHP (page 2)


How to allow PHP to upload larger file size (audio etc.)?

The following parameters can to be changed in php.ini in order to allow upload of larger files. ini_set(‘upload_max_filesize’, ’20M’); ini_set(‘post_max_size’, ’20M’); ini_set(‘max_input_time’, 300); ini_set(‘max_execution_time’, 300); The first two parameters are related to max size in MB of the uploaded file and the second two are related to how much execution …

Read More »

What is the structure of a PHP Program?

Program Organization is key to readability, ease of debugging, few bugs, simplicity and more. As such each of your scripts should be very organized into consistent logical zones. The following board shows the 4 logical zones that you should consider when writing a PHP script. <!

Read More »

PHP Fatal error: Call to undefined function dl()

Error [Fri Aug 24 23:46:37 2012] [error] [client] PHP Fatal error:  Call to undefined function dl() in /media/main/projects/justsikh/web/classes/config.php on line 2 Solution Check your php.ini and see whether the enable_dl attribute is On or Off. Most likely its Off, so turn it On. ; Whether or not to enable …

Read More »

How to display PHP setup and environment variables?

In order to display PHP setup, configuration and environmental variables simply create a php page and execute the phpinfo command. It will display all the relevant information about PHP as output in the browser or in command line. Ex. in info.jsp<?php // Show all information, defaults to INFO_ALLphpinfo();  ?> The …

Read More »