nitiphone2021
New member
According to I would like to try to use JWT for my PHP and these are my step
on domain/app/
composer require firebase/php-jwt
so I have
domain/app/login.php
domain/app/vendor/firebase/...
and on the login.php
It's not show any thing and error "HTTP ERROR 500"
I think the code is really find the autoload.php but I don't know why it's internet error on line
use firebase\JWT\JWT;
If I add this command, the PHP will be error 500
on domain/app/
composer require firebase/php-jwt
so I have
domain/app/login.php
domain/app/vendor/firebase/...
and on the login.php
Code:
try{
echo "1";
require_once('vendor/autoload.php');
use firebase\JWT\JWT;
echo "2";
} catch (Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "\n";
}
It's not show any thing and error "HTTP ERROR 500"
I think the code is really find the autoload.php but I don't know why it's internet error on line
use firebase\JWT\JWT;
If I add this command, the PHP will be error 500