Category Covered

How to show php run time error  

To display error on your php page paste the following given code into the top of your required PHP file. It will report all error of your current script.

ini_set(“display_errors”, 1);       
By: Tech writer  |   Total Read: 10061  |   Read more..

Efront deployment problem on linux server  

Call to undefined function mb_internal_encoding() Fatal error: Call to undefined function mb_internal_encoding() in /var/www/html/elearning/libraries/globals.php on line 302  in linux

if you get the error or display blank then on your applicaiton/index.php page after the session use the following code to see the error message

ini_set(“display_errors”, 1);

By: Tech writer  |   Total Read: 706  |   Read more..

php serialization  

$the_array = array( "element1", "element2", "element3" );
$serialized = serialize($the_array);
print $serialized;
?> This will output a:3:{i:0;s:5:"element1";i:1;s:5:"element2";i:2;s:5:"element3";} Some times its very essential to store data into the database with a big array where all data indexing are not necessary but storing data are importan  
By: Tech writer  |   Total Read: 658  |   Read more..

Uploading Large file using cpanel  

When we upload a large file using cpanel then sometimes we are facing an error. That is maximum file size exceed. To solve this problem we need to edit  the php ini file

Here search by max file size and you will get
upload_max_filesize = 20M

Here increase the max file size and your problem will be solved.   And if you want to change your maximum upload size in cpanel directly  th  
By: mimosa  |   Total Read: 545  |   Read more..

php error reporting  

PHP error reporting. How to stop error on php page runtime? To stop error show on production server use the following code on your php page. //Disable php runtime error reporting
error_reporting(0); //Enable all errors reporting
error_reporting(E_ALL); //Report runtime errors
error_reporting(E_ERROR | E_WARNING | E_PARSE); You can do it from php.ini file ; E_ALL            
By: mimosa  |   Total Read: 1161  |   Read more..
Top 15 Posts