Questions tagged by "php"


$0
 bounty
1
answers
What library should I use for parsing and validating JWT token in PHP?
4 years ago • root
Could anyone please suggest what PHP library should I use for parsing and validation of JWT / OIDC token? At this moment I have found this library by firebase however I am not sure how stable and reliable it is. If you know any other proven / better library for PHP / JWT, please suggest it here! Thanks!
$0
 bounty
1
answers
Validate digital signature in PHP using public key from PFX certificate?
4 years ago • lampego1@qrid
I need to validate a digital signature (RSA256) using openssl_verify function. To validate digital signature, one of course needs to know a public key, which is provided to me in the form of PFX certificate. However, openssl_verify expects a so-called resource key identifier object as an input parameter, and it simply cannot use the key from PFX certificate directly. I was hoping that function blank" title="openssl_pkey_get_public">openssl_pk ...
$0
 bounty
1
answers
How I can programmatically close leanModal popup?
4 years ago • root
Hi there, I've encountered the following problem. I have a link that opens a leanModal window when clicked: <a href="#feedback"></a> Also, here is a content of my modal window: <div id="feedback" class="signup modal "> <div class="f_form_padding"> <div id="signup-ct"> <form class="f_form add_feedback_form" method="post"> <div class="title">Заказать обратны ...
$2
 bounty
2
answers
Please suggest some good PHP library to encode and decode JSON Web Tokens / JWT / OIDC / OpenID Connect
4 years ago • lampego1@qrid
I need a simple PHP library to encode and decode JSON Web Tokens. It will be used to integrate OIDC / OpenID Connect logins into existing PHP forum software. For example, here is a library for .NET(C#): https://github.com/johnsheehan/jwt
$0
 bounty
0
answers
Error: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set
5 years ago • lampego1@qrid
If you have a cURL script that tries to use CURLOPT_FOLLOWLOCATION you might get the following error: Warning: curlsetopt() [function.curl-setopt]: CURLOPTFOLLOWLOCATION cannot be activated when in safemode or an openbasedir is set in /home/username/public_html/path/to/script.php on line xxx open_basedir is enabled on all shared servers as it is essential to proper server security. The vast majority of the time a programmer will set this opt ...
Tags: ,
$0
 bounty
0
answers
PHP Pagination Last id record
5 years ago • lampego1@qrid
I've the following Pagination code : $rec_limit = 3; /* Get total number of records */ $query = "SELECT count(id) FROM news"; $result = mysql_query($query); if(!$result) { die('Could not get data: ' . mysql_error()); } $row = mysql_fetch_array($result, MYSQL_NUM ); $rec_count = $row[0]; if( isset($_GET{'page'} ) ) { $page = $_GET{'page'} + 1; $offset = $rec_limit * $page ; } else { $page = 0; $offset = 0; } $left_rec = $rec_co ...
Tags: , ,
1 - 6 of 6 items