Category "php"

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

Snyk False Positives for XSS in PHP

We've recently started using Snyk to perform code analysis, however have hit the stumbling block that the first scan is reporting many (>700) XSS vulnerabili

Pagination in PHP with N number of elements per page

I need a little bit of help. I have an XML file as a database. From it, I need to create a pagination with 25 elements per page with Next and Previous buttons,

How to upload & Save Files with Desired name

i am using this code to upload files(images to a folder) <form action='' method='POST' enctype='multipart/form-data'> <input type='file' name='userFil

Generate sales report using MySql and Php

I m looking for advices in report generating per client, per product, per salesman, in a given period, using mysql and php. I m currently working on an applicat

Validate form before move to next page

I have coded my own validation form. Is there anyway i can prevent page from submit to php (action="process.php" Method="POST") if form is not validated. I have