Category "php"

Named Routes in Symfony 6 with controllers in inner directory

I moved all my controllers to /src/Web/Controller in my Symfony 6 project like follows ├── src │ ├── ... │ &

What is the equivalent of this php code in Nodejs?

I have this php code to encrypt and decrypt with RSA, I use only the encrypt data, because I need to decrypt the data with Node.js <?php include 'vendor/auto

Creating Sticky Navbar with Drop Down Menu HTML

I am creating a HTML web page which contains a sticky navbar with drop down menu. However, when I created one, the dropdown menu does not works in the sticky na

delete a table form a database using laravel command

i need to delete a database table using laravel artisan command . not like this command php artisan migrate:rollback --step=5 i need to create like this route o

error showing when starting xampp after changing the hard disk to ssd

I have been running xampp from D drive well. Recently I have changed my hard disk to ssd. After then I can not run the xampp. I have checked the port that is wr

Pass Associative Array from Symfony Controller to Twig and JavaScript

So, I have 2 arrays that I've combined into one array after making sure they're the same length as such. //Fetching Ratings for All Coaches & Making a Key,

The Elementor does not work just loaded, when go to custom WordPress page

I try using Elementor for creating a WordPress website but I have this page when I open Elementor on the website. I am using DigitalOcean droplets with Cloudfl

How to find the desired element in the array and check whether it has a value or not?

I have a big array like this: "twitter_link" => "http://twitter.com" "twitter_text" => "text" "youtube_link" => "" "youtube_text" => "" "snapchat_li

How can I send email to an email stored in a custom post type?

//Sending Email add_action( 'transition_post_status', 'notify_author_on_publish', 10, 3 ); function notify_author_on_publish( $new_status, $old_status, $post )

How can I send email to an email stored in a custom post type?

//Sending Email add_action( 'transition_post_status', 'notify_author_on_publish', 10, 3 ); function notify_author_on_publish( $new_status, $old_status, $post )

Random HTTP/1.1 502 Bad Gateway in PHP REST API

I have written a REST API in PHP using slim micro framework. Hosted on Apache (Event MPM) + PHP8.0-FPM on 2-vCPU and 4 GiB RAM and 10Gbps N/w bandwidth behind L

What is a SMART WAY to deal with a lot of repeated If statements checks?

In my attempt to create a searching tool for a database that I created in the context of my undergrad thesis, I am required to make a lot of checks on the value

Random HTTP/1.1 502 Bad Gateway in PHP REST API

I have written a REST API in PHP using slim micro framework. Hosted on Apache (Event MPM) + PHP8.0-FPM on 2-vCPU and 4 GiB RAM and 10Gbps N/w bandwidth behind L

Where does laravel gets the file name form a base64 decoded file

i have an file encoded in base64 and when i decode it and dump with dd() in laravel and it shows the file name and type so i was wondering where laravel stores

How to get parent and child categories from wp_nav_menu() Loop in Wordpress?

I have created a nav menu on the archive page I want to loop them here as foreach so how can do it? <ul><!-- 1--> <li><a> First t

Ajax undefined value in PHP

When I call the function I always get an undefined value, I don't understand what can ruin it. You are logged in as undefined, Error undefined Ajax script: fu

Ajax undefined value in PHP

When I call the function I always get an undefined value, I don't understand what can ruin it. You are logged in as undefined, Error undefined Ajax script: fu

Find difference between two datetimes and format at Y-m-d H:i:s

I'm trying to get the difference between two datetimes and return it as a datetime. I've found examples using diff but I can't seem to get it right. $timein =

Font size zero in fillable multiline-input-field in PDF-Form

I got stuck with a PDF-Document, which (among other fields) contains five larger multiline text inputs. For all five fields, the DefaultAppearance-parameter of

Serve ReactJS + PHP on Ubuntu Server

I am working on my first web-project and therefore have an Ubuntu machine with apache2. I am quite new to web development and have never deployed a website befo