Category "php"

Is it possible to change the table name in the migration file-laravel

I created a migration file using php artisan make:migration create_todoapps_table. The migration file was created with the table name as to_do_apps (Schem

Unable to open file stream for given path error with MSGraph SDK

I have a web app I wrote in JS. There is a form that allows file upload, which is then handled by PHP. I have an account already, and I've registered an applica

Laravel Passport - Not able to get token string in response?

i am getting result like below in registration using passport laravel "success": { "token": { "name": "MyApp", "abilities": [

Apache/PHP Correct permissions for uploading a binary that runs server side?

I've prepared a PHP browser interface (like a modem interface) for an embedded system, that is supposed to help manage the core application (uploading a new bin

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 )