Category "php"

image uploads but won't display php

I successfully can upload the image into MySQL but when trying to display the image from the MySQL they appear broken. $image = $_FILES['image']['tmp_name'];

Image Not visible In TCPDF

here I have a Data i need it in Pdf But image not showing Below are my code i already stored data in a variable $signature= $_POST['signature']; $tbl = '<

WooCommerce - Get Price Total as number

I'm a newbie, and I have this problem as it shows me $0.00 on the Order received page. // Add Custom WooCommerce Checkout Message add_action( 'woocommerce_thank

How to pass calculated/final value of one function to other functions in a controller of Codeigniter application

Using sessions we can achieve this, but need this without sessions or cookies. <?php class Employees extends CI_Controller { public f

PHPSocket.io emit message from PHP to PHP

I'm trying to emit message from PHP code to websocket server built with PHPSocket.io Emitter code: <?php require_once __DIR__ . '/vendor/autoload.php'; $emit

Dropdown menu remain open after click and refresh

I have a problem on how to make my dropdown remain open after clicking and avoid closing after refresh. Here's what I've done. <button class="dropdown_btn"&g

Apache + PHP-FRM, php_value statements in a pool

I run several small websites using named virtual hosts, with Apache/mod_php. After moving to a new machine last week, I discovered that Apache/PHP-FPM had been

group/sum multiple related arrays

4 arrays given. I want to group the arrays by it's value if they have the same value on different positions and sum the integer value if grouped. $arr1 = ["101"

What are the differences in die() and exit() in PHP?

What are the differences between die() and exit() functions in PHP? I think both have the same functionality, but I doubt there is something different in both.

Why can I upload files to Wasabi using S3 and Laravel, but trying to get returns file not found?

So I am using Wasabi for object storage in my Laravel API, but after I got the upload working, now I can't get the download to work. I am using this package: ht

wkhtmltopdf conversion: HTML table does not fit within the A4

I created a basic PHP webpage to generate a timesheet of the monthly working hours of employees of a company. The work hours and the other details in the table

Doctrine - Undefined clas const JSON_ARRAY

I got this message error: On stack trace I cant find the file that produces it. I'm using symfony 5 and doctrine. Undefinied class constant 'JSON_ARRAY' I sear

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