Category "php"

nginx err_connection_refused, can anyone help me?

got installed my old site with php, mysql and so on, an everything work fine but my site is not reachable from the outside of my LAN. Did a ton of changes and t

Fatal error: Array and string offset access syntax with curly braces is no longer supported in php 8.0 pkcs5_unpad

I got this error after copying code from a tutorial. It's deprecated and I tried resolving it: Array and string offset access syntax with curly braces is no lo

How can I get user id from session in javascript?

How can I get the user id from session in javascript? I was using this: $( document ).ready(function() { var sessionUserId = '<?php $_SESSION['user_id']

Can I send a database in a zip folder with mantaining the connection between the database and the php file

I want to send a folder that contains my HTML code, CSS, js and PHP. how can I include the database and keep the connection between my files and the database?

how to hide previous markers when new markers added in google map javascript api

I have set store locator using google map javascript api. when someone enter their location they will find the stores within the 50km of radius. I want when use

I need a Variable from the MyBB-Forum

my previous attempts to declare a variable always failed. Task: In the table mybb->users there is the column verified. This column has either a "1 or a "0" (

How can I make this nested location configuration use the correct path to call a php program?

I have setup nginx to allow users to have a user website (https://example.org/username maps to /home/username/www). I want to allow my users to use php. Php is

Laravel print last executed SQL query with Query log

DB::enableQueryLog(); $mines = Cranks::where([['crank_id', '=', $this->crank_id], ['mine_id', 'like', '%'.$script_value->mine_id.'%'] ])->get(); $query

WooCommerce single product page by Woolentor : Related product customize

I use WooCommerce, Woolentor, and WooCommerce subscriptions to construct a website. I'm trying to use the 'WL:Related Product' widget for Woolentor's Single Pro

Warning: mysqli_stmt::bind_param(): Number of elements in type definition string doesn't match number of bind variables 11 [closed]

My code against SQL injection isn't working (error message in title). I simplified my code, but its still not working. <?php include "con

Magento 2 - How to add new block to admin panel in product page?

) I'm new to the Magento world and couldn't find a solution, how to add a new block of the Catalog>Products>Edit>Content>Description type, for examp

How to add a sidebar to Woocommerce Shop Page?

So, I'm making my own theme from scratch for Wordpress with the Woocommerce plugin. I can seem to find how to add a sidebar widget to my Shop page... There is n

Removing Severity: 8192 from PHP 8.1 error log

Recently upgraded my PHP version from 8.0 to 8.1, now it's displaying tons of error regarding this, mainly Severity: 8192 --> Implicit conversion from float

WordPress Security Standards want me to escape my html, but how to do it correctly?

I'm trying to build a custom Elementor Widget (https://developers.elementor.com/creating-a-new-widget/). In the render() function, I can put the HTML thats bein

merging two arrays with specified index

There are two arrays , the second array will always be smaller by 1 from first array. The first array contains the numbers and second array contains the mathema

Using array_intersect on a multi-dimensional array

I have two arrays that both look like this: Array ( [0] => Array ( [name] => STRING [value] => STRING )

PHPSpreadSheet is showing HTML page content

I wrote a class to wrap around the PhpSpreadSheet so that all I would need to do is pass it an array. Then it would generate the proper spreadsheet. Life was fi

How to install LDAP in Docker php-fpm alpine

any idea how can i install the php Ldap extension in dockerfile FROM php:7.2-fpm-alpine i tried the following RUN docker-php-ext-configure ldap --prefix=/usr/

VichUploaderBundle error "Expected argument of type "File", "NULL" given" when submitting the form without selecting any file

I am integrating VichUploaderBundle, and I've successfully been able to submit a file and save it, download it and edit the form resubmiting another file and re

codeigniter 4 running error first time with xampp

Uncaught Error: Call to undefined function CodeIgniter\locale_set_default() in C:\xampp\htdocs\sunpay-ci4\system\CodeIgniter.php:184 Stack trace: #0 C:\xampp