Answers for "how to hide errors in php"

PHP
2

update composer ubuntu

##update composer in ubuntu
#update packages
sudo apt-get update
#if you don't have curl install it
sudo apt-get install curl
#download installer
sudo curl -s https://getcomposer.org/installer | php
#move composer.phar file
sudo mv composer.phar /usr/local/bin/composer
#check composer version
composer -v
Posted by: Guest on December-18-2020
0

how to upgrade composer ubuntu

you need to first remove the composer

->sudo apt-get remove composer 

and then type the below command to install composer globally  

->sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer

for more info :
click on the link below
Posted by: Guest on May-03-2021
1

php hide errors

ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
error_reporting(0);

/* [email protected] */
Posted by: Guest on April-27-2021
0

report simple error in php

// Report simple running errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);
Posted by: Guest on August-16-2020

Browse Popular Code Answers by Language