Category "php"

Converting PHP Curl request API to python

Can somebody have me trans this PHP API code to Python. I try but it failed. I know about basic requests in python but couldn't pass attributes in that request,

Laravel does not upload video file and store tmp filename in database

I'm working with Laravel 5.8 and I wanted to upload a video file. So in the Controller, I added this code which does the uploading: if ($request->file('prd_v

Is the function binded to the button always executed or did I make a mistake?

So I have this PHP page, with at the start some unimportant stuff and a session opening : <?php session_start(); ?> I want the disconnect button to a

Why my shortcode dont work on website(only work on editor) [closed]

I would like to create a file upload system on my page, I found a code resource from the internet: https://gist.github.com/shamimmoeen/bd577b3

Remove array if meets certain conditions

I'm trying to work out how I can remove all timestamps which have a certain reservation id after them. Currently I can unset only based on timestamp and not che

displaying php in an echo nested in html

I'm trying to echo a piece of text with PHP nested in it, anyone know how? I've tried it like this: function update_category(){ global $connection; if

I get a "cURL error 28" when I try to install a new plugin or theme

I'm new to WordPress. I'm trying to complete the FreeCodeCamp tutorial now. The tutorial explains how to install a new them. Whenever I click Install to insta

pdo lastInsertId() returning 0

my pdo last insert id returns 0 here is the code $bdd->beginTransaction(); $requete = $bdd->prepare('INSERT INTO reservation (code_salle,date_res,code_c

Different types of mailings for Laravel

I am preparing a reminder application. I have a reminder table in this application. On the other hand, I want to send special e-mails to all people in this tabl

Cant install botman for Laravel

I wanted to try to create a simple chatbot web-app using Laravel Botman. I've created a new Laravel project but when I try to install Botman through the termina

PHP libsodium change predefined constant

I am trying to change the below libsoium predefined constant SODIUM_CRYPTO_AEAD_AES256GCM_NPUBBYTES from 12 to 20 and I am unable to find where this is being se

Exporting data as two CSV files with PHP, but its stored in one file and also containsHTML tags

I wrote a function in PHP which writes the elements of a two-dimensional array into a CSV file. function downloadCSV($data) { header('Content-Type: text/csv

Laravel - Is it possible to validate a get wildcard Request with Illuminate\Foundation\Http\FormRequest;

I have a GET route with a wildcard day. This day wildcard is a string like so: 20220507 (YYYYMMDD). After validation the string I wish to make a proper response

Attempt to read property "id" on null - description.blade.php

I have a problem with id i get error Attempt to read property "id" on null (View: /resources/views/admin/Attendance/description.blade.php) view code that show

Agora cloud recording S3 Integration

I have been trying to implement the Agora cloud recording functionality for a few days with some difficulty. The API documentation is difficult to work with, an

How to extract id from json response array

How to extract id from this response. I tried like this But return blank page. Below is the response what I'm getting. <?php $res = json_decode($sentMessage

How to add unique ID when inserting data in AWS Timestream?

I am inserting some data in Timestream but I cant figure out how to have a unqiue ID. $date = new DateTime(); $time = strval($date->getTimestamp() * 1000);

Selenium keep php file from loading

I have a problem that gave me nightmares for couple of days. I am trying to run some python script from a PHP file. I am using wamp64 for hosting. Python script

add ssh on arch linux [closed]

I am trying to access with ssh in to bit bucket . I am able to access using my key - id_rsa . But I am trying to make a different key for bit

Adding product description to shop page

I want to add the product description / Additional information (dimensions and weight) to my client's products on the shop page. It's an online art gallery and