Search
 
SCRIPT & CODE EXAMPLE
 

PHP

base64 encode username password php example

$auth = base64_encode($uname . ":" . $pass);
curl_setopt($curl, CURLOPT_HTTPHEADER, array("Authorization: Basic $auth",
                                              "Accept: application/json",
                                              "Content-Type: application/json"));
Comment

PREVIOUS NEXT
Code Example
Php :: php change timezone 
Php :: disable foreign key laravel 
Php :: remove add media button wordpress editor 
Php :: How to install php-fpm 
Php :: php date timestamp now 
Php :: php mysql date format 
Php :: php request uri 
Php :: Download a file from external server using PHP - Move one project to another server 
Php :: laravel find or create new 
Php :: redirect in codeigniter 
Php :: php check if input is date 
Php :: php change sting to caps 
Php :: read key value json php 
Php :: attach multiple files in laravel mailable 
Php :: faker image laravel 
Php :: php get all txt files in directory 
Php :: the configuration file now needs a secret passphrase (blowfish_secret) 
Php :: carbon date from format 
Php :: laravel collection shuffle 
Php :: db symfony 
Php :: laravel migration remove unique constraint 
Php :: php get all elements of array except last 
Php :: php datetime add one hour 
Php :: wordpress query orderby name 
Php :: carbon parse from format 
Php :: how to add property to the request object in laravel 
Php :: php implode as key value of object 
Php :: constructor in php 
Php :: file original extensions laravel 
Php :: return redirect with message laravel 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =