Category "php"

Unit testing with get request

I am trying to create a unit test for one of my api. In the frontend, I send it this way... params = { participants: JSON.stringify(participants), secti

Temporary table deletion cant find the temporary table(no such file or directory)

SQLSTATE[HY000]: General error: 6 Error on delete of '/tmp/#sql_10f07_0.MAI' (Errcode: 2 "No such file or directory") this error has started to pop up every no

error when trying to install glpi database on windows

this error appears when I install a new database in order to run glpi Uncaught Exception mysqli_sql_exception: Unknown database 'glpi' in "C:\xampp\htdocs\glpi\

Setting A $_GET Value From A Previously Defined Variable - PHP

I have a search form in the header of every page on a site that submits info to another page when undertaking a search query via the form's action attribute, na

Issue turning pdo column value to string | PHP

Essentially I am running the following query using pdo and formatting the results as JSON. The issue is I need column2 to always show as a string in the JSON, e

how to fetch data and tag Element but not json data using axios from php Apache server in XAMP?

I have a front end code of react is import React,{useEffect,useState} from "react"; import axios from 'axios' export default function DataGridDemo() { con

Controller Target Class does not exist?

Im trying to follow a larval tutorial and make a controller. This is what I have so far and it works for the guy in the video but mine says controller not found

memory_limit problem while running composer install on Symfony gitlab CI

I'm trying to add Gitlab CI for a Symfony project and on the build stage I have a script that installs required extensions and libraries, at the end, runs compo

Laravel Excel Queue consume too much RAM

I have set up Laravel queue to read excel files using your Laravel excel and it works great for small files. But for large files (100+mb) and 400k+ records, it

.htaccess do not preload files on Ajax calls

I have some website running with PHP. In my .htaccess I have added the following directives: <FilesMatch "index.php"> Header add Link "</css/bo

Does PHP dockblock has some kind of @mixin for interfaces?

My Visual Studio Code shows "undefined method". I want to know is it possible to "fix" it with some VSC settings or maybe there is a PHP solution. I have this

how to use php preg_match_all() with overlap matches

I am trying (with no success) to get all possible matches with preg_match_all(). Any help would be greatly apreciated. Thank you in advance. No related question

Uncaught Error: Class 'Service\UsersService' not found

I'm trying to run my php-based application, which connects to a mysql DB, launched through docker-compose. i get this message when i connect to localhost: Fatal

How can I loop through pages of 100 records until the last page is less than 100 using PHP?

I have this bit of PHP code below. try { echo "Try for getting data"; $starttime = ("1900-01-01"); $endtime = $currDate; $day1 = strtotime($

Amazon SP_API POST createReport() responded return Invalid Input

I am trying to create a report so I can import products in bulk. The issue i am facing right now is that whatever I have done always got Invalid input error. It

How to get the variable value inside sigle quote by variable name using php [duplicate]

I need to get the value of the given variable name without quotes(''). Is it possible with php? variableName='value' I think using preg_match

Why is 'szbd-shipping-method:5' not being unset by my snippet here? [duplicate]

To open, I do not know PHP. I have cobbled this snippet together from the information in these two links -> Show and Hide div based on day

ErrorException Trying to get property 'nom_service' of non-object [closed]

pls help I tried the maximum ways but no result, I'm beginner in laravel!!! liste.blade.php <td> {{$data->candidature->dem

Remove certain elements from an array that fit a condition in PHP?

So i have an a array of numbers: $arr = [53, 182, 435, 591, 637]; All i am trying to do is loop trough each element and when a certain condition is true it sho

How to Show result after uploaded file in PHP

I have a script that uploads the video to a server, everything is correct but there is a problem, after the upload of the video to the server is completed it sh