I am doing a login system and I want to show a welcome message when the user is validated. I explain. This is the database: The user when is logging in uses the username but I want in the welcome …
Tag: php
WebSockets – send json data via php
I’m trying to send a fire-and-forget request from PHP to my websocket aws api gateway. I’ve set up an action called “sendmessage”. This is the code I’m using: However, nothing happens. If I use wscat, like: it works just fine. What am I doing wrong in my php code? Note: I need th…
Why can’t I install a package despite Laravel version matching the package requirements?
I am trying to install this package https://github.com/shawnsandy/img-fly on Laravel 6.5.2 According to their composer.json, they allow to use Laravel 6.* version : “require”: { “php”: “>=7.0″…
Understanding RS256 and SHA256 during JWT Token creation
I am creating a JWT Token using a private key in PHP. For this I am using the OpenSSL library. Before anything I will share my code : PHP $header = [ self::ALG => self::RS256, …
php sql not deleting row even showing success
I am trying to delete a row using a href, it’s not showing the error but it’s not delete the row from my table either. Not sure what i’m doing wrong. delete.php require_once “db.php”; $id = $_GET[‘…
Heroku : FFMpeg installed but php worker can’t find it
Context I’ve a RabbitMQ’s queue that contains AMQPMessage, those messages are referencing a video that needs to be treated (cut essentially and encoded in x264 also) Here’s the code that cause the …
Array and string offset access syntax with curly braces is deprecated
I’ve just updated my php version to 7.4, and i noticed this error pops up: Array and string offset access syntax with curly braces is deprecated here is part of my code which is triggering the above error: there are few libraries in my project which is using curly braces to get individual characters ins…
What is the fastest way to convert html to pdf using JS or PHP?
I have a long table for about ~100.000 rows which is generated dynamically (technically it can be divs). It’s needed to export this html data into pdf. I have tried to use html2pdf.js. But when it is …
Symfony 5.x – An error occurred while loading the web debug toolbar
I’m working with Symfony 5.X, it’s a fresh install on docker with the image “bitnami/symfony”. I use too “bitnami/nginx” and “bitnami/php-fpm”. All work good except the web profiler toolbar. I passed the 2 last days on Google searching for a solution but nothing…
creating an invoice using OAuth2 in xero
I am following along with the code samples provided here – https://github.com/XeroAPI/xero-php-oauth2/blob/master/docs/Api/AccountingApi.md#createInvoice However, i am always receiving the following error message: “ErrorNumber”: 17, “Type”: “NoDataProcessedException”,…