Category "php"

Prevent to remove spcaes between Action Icon of DataTable for HTML created in the ajax response

Video Link: https://drive.google.com/file/d/1vWfoYWsOT_DSfKOTuE1dH2xxhdl51UCd/view?usp=sharing I am creating the HTML code to redraw dataTable in ajax response.

Is there anyway to use docker composer image with custom php?

I want to use docker composer image in multistage Dockerfile for my Laravel application in order to reduce its size. The problem is that I need PHP 7.4 for my d

Lumen/Eloquent transaction rollback is not working

I have this function that permit to save in 4 tables. I have an error at that line $stade->save() ( it's normal it's a test ) so it should not save the club

cors issue in post request while deploying laravel inside docker

I have a laravel app which is running behind nginx proxy manager. The laravel app is running inside a docker container and nuxt frontend is also running inside

Symfony 4 Sonata FormBuilder skip loading some relations

I've inherited an older project to provide maitanance. I don't have Symfony experience, I am coming from Laravel/Yii experience. I've tracked down a certain aja

How to set PHP executable path php.validate.executablePath in VCSode when PHP is installed inside a virtual machine?

I want to use Xdebug in Visual Studio Code using the Xdebug extension. My development environment is installed inside an Ubuntu VM. VSCode is installed on my Wi

Stripe Subscription Adjustment based upon usage of second product

Here is an example of what is going on and what I need to do. Lawyer pays for legal services monthly website for $39. A second product of the website is to mon

Add PHP to page.php in WordPress via a plugin

I am trying to add the below code to a page.php file but call it from a custom plugin. At the moment, I have modified the theme's page.php but want to move cust

Wordpress Multisite brakes wp-load.php

I'm trying to write a small tool using php. This temporarily connects to one of two Wordpress systems on the same web space by loading the wp-load.php of the ne

how to use @foreach inside AJAX & jQuery code for insert Multiple rows Data in Laravel 8

The code it works normal when i put option in static mode, for example: "<select name='id_post[]' id='' class='form-control'>"+ "<option value='1'&

PHP Parse time Days/hours/minutes + round up to closest step

I Have system, where people ar tracking there spent time on project. After project is ending, I want to count there spent time + round up to closest step For no

Share central folder in Onedrive with MS Azure API application

Issue: Cannot create or access a central storage container within OneDrive using App Requirement: Create a central storage directory that is accessible for user

how to remove a function once called in php

I have a login form and a registration form in my index.php when user open the page it shows the login page it works fine but when i click "registr now" i need

PHP mail function doesn't complete sending of e-mail

<?php $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $from = 'From: yoursite.com'; $to = 'contact@yoursi

Creating a new database is not working at server in codeigniter 3

I have a accounting management project where I need to store some specific data to a new database. I am fetching a issue when I am going to create a new databas

Extension to get warned when ::class is used in PHP but class is not used in Visual Studio Code

Is there any PHP extension for Visual Studio Code that can warn you in case you are doing ::class in PHP but the class is not used on top of the file? Let me sh

Get PATH instead of URL [duplicate]

This code: $files[$file->ID]['file_title'] = '<p><a target="_blank" href="' . esc_url( wp_get_attachment_url( $file->ID ) ) . '

Facade does not implement getFacadeAccessor method

I got this error message after trying to downgrade laravel 9 to 8 cause i recently downgraded my php version from 8 to 7.3 In Facade.php line 178:

Why my API-Plateform resource give me always and only 2 attributes in response?

I try to create a new API rest on monolithic project with symfony 4.4, api-platform 2.6.8, i have to use yaml configuration, but i have the same issue with anno

how to fix php spark serve not working and said thrown in C:\xampp\htdocs\ci-news\system\CLI\CLI.php on line 758

this is what cmd said and I don't know how to fix this I saw similar cases like this in the stackoverflow but their suggestion didn't fix my problem I hope you