Answers for "error check in php"

PHP
1

update composer mac

#Ubuntu-Download Composer and create a Phar (PHP Archive) file
$ curl -s https://getcomposer.org/installer | php

#Move it to bin directory
$ sudo mv composer.phar /usr/local/bin/composer
Posted by: Guest on November-25-2020
0

update composer

To update composer command just find location of composer.phar and update as:
 where composer 	#Retrieves you location of your composer.phar
 cd path_to_composer.phar #Move to directory with composer.phar
 php composer.phar self-update	#Update your composer
Posted by: Guest on November-14-2020
3

php show error

error_reporting(E_ALL);
ini_set('display_errors', 1);
Posted by: Guest on August-07-2020
0

php error check

try
{
	//Php code
}
catch(Eception $e)
{
	echo $e->getMessage();
  //This will disply error 
}
Posted by: Guest on April-08-2021

Browse Popular Code Answers by Language