Answers for "hide php code"

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

div hide in php

$id=$this->session->userdata('user_id');
<ul class="nav nav-pills">
                  <?php if(isset($id)){ ?>
                    <style type="text/css">#settings{
display:none;
}  #activity{
display:inline-block;
}</style>
                  <li class="nav-item"><a class="nav-link active" href="#activity" data-toggle="tab">Activity</a></li>
                <?php  }else{ ?>
                  <style type="text/css">#activity{
display:none;
} #settings{
display:inline-block;
}</style>
                  <li class="nav-item"><a class="nav-link active" href="#settings" data-toggle="tab">Settings</a></li>
                <?php } ?>
                </ul>
                  
                  <div class="tab-pane" id="activity">Activity</div>
                  <div class="tab-pane" id="settings">Settings</div>
Posted by: Guest on June-18-2021

Browse Popular Code Answers by Language