Category "php"

How to forward email body without any change

Need to Forward raw Email without any change Working on an email forwarding script and implementing SRS with keeping DKIM intact (for DMARC). I have Laravel app

After updating answers in a SCORM lesson in the same attempt, the score result doesn't update - MOODLE

After adding a SCORM lesson in MOODLE, I took an attempt and then the SCORM lesson gives me a score result. Then, I took the same attempt again(Not "Enter a new

Sort by search phrase occurrences count Elasticsearch

I want to sort by occurrences count in Elasticsearch. For example, I have some texts that contain Ludwig van Beethoven string and I want to sort them by these s

HTTP authentication with PHP for specific pages

I have been trying to fix one issue for the last two weeks but didn't find any solution to my problem. So, I am trying to add HTTP authentication with PHP 7.4.

Symfony is slow on production server, not in local

I have a performance problem with my symfony stack. Because an image is worth than a long text : On production (AWS EC2 t2.medium) (2387ms, 84MiB)(ParamConverte

Woocomerce Local Pick Up - I want to add a reference on pick up / collection

Hi am using Woocomerce for pre sale of items at an event with a collection only option. When these are collected I want to update the order to Picked Up (or Col

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($