Category "php"

How to create a full text index with PHP attributes and Symfony 6?

I need to create a search input inside my symfony 6.0 project. I'm using PHP 8.1.5 In the old days i used the following syntax with annotations : /** * @ORM\Ta

PHP sends an empty Response Payload instead of JSON

Sorry if I'm not good at formulating questions or if this isn't a good question, but I've been trying for days and getting no progress on this and I'm ready to

How to use array_map with reset callback in php 8 [duplicate]

I have a function that work good in php 7 but in php 8.0.11 has warning $orders->result = array_map('reset', $orders->result); E_WARNIN

Live modification/creation of file/data with pure php

For example [['Inflammation'],['Noxious stimuli cause resident effector cells to secrete cytokines<br>Cytokines ↑ vascular dilation & permeabili

Showing data called into Select in DIV

I can't speak English well and I use google translate. If there is something you do not understand, please ask. My problem is this: For example, in the code blo

WordPress plugin extend WC_product with namespace class not found

I am trying to add new woocommerce custom product type from my plugin. I just have a simple construct in the class that extend WC_Product namespace giftbox\mode

Elasticbeanstalk - Nginx "connect() to unix:/run/php-fpm/www.sock failed"

My x_optimize_php.sh file is below #!/bin/bash # This file will make sure that will set the max processes and spare processes # according to the details pr

I am trying to migrate the table I have created but I keep getting an error that my database is unknown.I use XAMPP 3.3

SQLSTATE[HY000] [1049] Unknown database 'laravel' (SQL: select * from information_schema.tables where table_schema = laravel and table_name = migrations and ta

PHP file is not reading my js script file

I am trying to make sure my php file is reading my js file and when I click my decrease button, my console says Uncaught ReferenceError: decrease is not defined

Limit and Sort don't both work when used together mongodb php

Obligatory - I know this question has been asked before, but answers back then relate to the old mongoldb driver, I'm using the pecl mongodb php library. The ai

How to install xmlrpc in php 8.0 MACOS

Hello I need to connect an application with PHP 8.0 to Odoo. And I get the following error. PHP XMLRPC library is not installed How can I install this library

How to query for an entity that contains an asscociated entity in ArrayCollection field (many-to-many) in Doctrine?

Setup & Problem There are two entities in my Symfony project (Entries and Persons) that are associated by a many-to-many relationship. An Entry (extended in

Defining multiple encrypted parameters

I have encrypted parameters in my url, for example: Encrypted example.com/?auth= *****"encrypted data here including other parameters like &username=hellowo

FOSJSRoutingBundle : "The route xxx does not exist"

I created a new controller with a new route. I dump generate my new fos_js-routes.json with this command : php bin/console fos:js-routing:dump My new json was

Curl says SSL certificate is expired when it is not

When using curl on my server to access my other servers, I get this response: curl: (60) SSL certificate problem: certificate has expired More details here: htt

Adding basic data to database - Laravel 8 + ajax

My laravel framework version is on 8.83.12 I am trying to build a form that creates a database entry based on Vehicle data, Make, Model, Version.. etc. My Model

Can't use PHPMailer to sign with S/MIME, getting "Signing Error: "

I'm using phpmailer to try to send signed emails (S/MIME). I used this excellent tutorial by John Dalesandro to create a Self-Signed S/MIME Certificate and pack

Woocommerce - hide an element if logged in, show element if logged out

i've found the following code to make an element change to display:block; if a user is logged in .logged-in .price{ display: none; } and also <?php if ( i

Wordpress Form POST Request In Current Page Got Twice

I use wordpress shortcode to create a form and send post request in current page. But I will get twice post request so my mail will send twice. Hope someone can

Fatal error: Uncaught ImagickException: FailedToExecuteCommand `"gs"

I'm trying to convert a pdf file to image using Imagick. I got this error mesage Fatal error: Uncaught ImagickException: FailedToExecuteCommand `"gs" -sstdout=%