Category "php"

Which route is to write for same method on every page [closed]

Currenty developing a project in Laravel and want to now which route should I write when for example the search bar appears in the navigation

Laravel docker-compose 404 not found Nginx

I'm facing a strange behavior when trying to run my Laravel app using docker-compose. After starting the containers, if I try to visit my website URL I get the

Unable to update user role spite package when datatype changed to UUID

Hi I am using Spaite package for roles and permissions. I am using UUID datatype. Everything works fine when used normal integer datatype. Now showing Following

Why mysqli_sql_exception is not caught by PHP? [duplicate]

I am trying to create a php script to add new users. The username is unique, so if a new users tries to use a name already used the SQL fails.

I want to merge similar data I get with foreach

There are product categories that I bought through the API service and these categories come as text. Since the categories are similar, I want to group them and

PHP | Parse specific german date format to yyyy-mm-dd

Hey I am struggling with a date format . I need to adjust the display of some dates in a wordpress project. Its not a duplicate of This question I tried the sug

pdf preview not working on html using ajax

url: "http://localhost/pdfupload/php/upload.php", dragDrop: true, multiple:true, acceptFiles:"application/pdf*", allowedTypes:"pdf", showPre

Hide some payment options when paying for an order from the WooCommerce account page

If the order has the Pending payment status, then the user can pay for it on the account page. This displays all available payment options. How to hide all paym

How to create a folder insisde server depending on how many times user has uploaded files?

I have a form where users can send 1,2,3,...,x files to upload to server. When user uploads x files for first time, inside folder it must create a new folder wi

PHP: Parse date from localized format

I need to parse a date string in a multi-language application. Every user has their locale and then their date format. How to use: new DateTime($datestr); o

Fill bootstrap 5 modal with mysql record data using javascript fetch/ async/await with ES6 notation so as to update the record

All of this code works. It activates the BS5 modal and fills it with a record using a stored procedure on MySQL db. The issue was calling the wrong variable. If

Symfony- Error ocurred when I try to make an entity

When I use: php bin/console make:entity to create a new db entity, I get the following error: In DoctrineHelper.php line 180: Class "Doctrine\Persistence\Mappin

Gmail Error Action: failed Final-Recipient: Status: 5.0.0 Remote-MTA: dns; gmail-smtp-in.l.google.com Messages missing a valid address in From: header

I am getting this error attempting to send emails to gmail. Any thoughts on what it means or how i can fix? This message was created automatically by mail deliv

Issue with Generating Random Numbers using Laravel contains vs foreach loop [duplicate]

Hey guys I come across this strange issue where if I use the foreach it does not generate a unique random number wheres if I use laravel funct

Is it possible to connect a PHPmyAdmin database using Angular and Postman?

this is my first time using StackOverflow and I don't know how this works but I'll be quick and short. So, I'm in an internship and I'm learning Angular and I o

array_combine() expects parameter 2 to be array, string given in php

Array ( [0] => tttt [1] => tttt ) $terms_keys = array("terms"); $terms_array = array(); foreach ( array_map(null,$inv_terms) as $key => $value

What is the proper way to POST data using javascript fetch? [duplicate]

I am trying to get away from jQuery and start using promises and arrow functions. Try as I might, I can't seem to pass data to PHP using java

PHP Notice: Undefined index: user_type in /var/www/mysite/public_html/index.php on line 66, referer: https://example.com/

I just transfer my PHP app, I used to have my app on example.com/app but now I transferred the app to its own domain, othersite.com. My principal site and PHP s

php MS_SQL server resource_id 39 issue

i am accessing my website from another computer in same network. before when i was using localhost on same pc website was working fine when i chnaged that to IP

Data from new HTML form input field not being passed to email using PHP and JavaScript

This is my first post on the site. I added a new input field to a previously working HTML contact form in order to collect the user’s street address. Alth