Category "php"

Lumen - Postgresql setup - Composer

really strugling on this one, it's not the first I try to set this up but I really can't see why it's not working. So this is my app.docker file: FROM php:7-f

Lumen - Postgresql setup - Composer

really strugling on this one, it's not the first I try to set this up but I really can't see why it's not working. So this is my app.docker file: FROM php:7-f

ConstraintViolationListInterface to Exception in Symfony

I need to convert an object of type ConstraintViolationListInterface to a single exception for further logging, where the message is a concatenation of the mess

ConstraintViolationListInterface to Exception in Symfony

I need to convert an object of type ConstraintViolationListInterface to a single exception for further logging, where the message is a concatenation of the mess

google content api for shopping

I am trying to use google content api for shopping using php. Following code has been provided on google doc for this. But at last line $service is used but not

Woocommerce redirect after add-to-cart error

I have being doing research for a few days but still cannot find an answer. I am using Woocommerce without the Single Product page. So I am using urls like htt

Laravel set default language not working

I have changed the default website localization in confing/app.php to be (de) 'locale' => 'de', 'fallback_locale' => 'de', But still website is loading

generate an Excel file using PHP

I'm new with PHP, I'm developping a WEB application that display a table with informations from an SQL server DATA BASE, the problem that I want to add a button

php file upload scanning using clamav, permissions on /tmp/

I'm trying to scan files (generally 100MB+ zips) using clamav on apache 2.4, php 5.6, using a socket to the clamav-daemon. I'm not using PHP-FPM. (p.s. the sock

301 Redirect to remove query string on homepage only

I don't have knowledge of .htaccess redirect rules. If a user enters http://example.com?abc=123 or https://example.com?who=123 or https://example.com?xyz=123 th

How to extract price from given url using Xpath?

From a given url I want to extract some detail from it like title, price. For the title, it works fine with this code: <?php $getURL = file_get_contents(

PHP contact form configuration [duplicate]

Hi guys I run my website and it all work except contact us form. HTML <div class="border"></div> <form class="cont

Backend cannot be reached after Typo3 login screen

I am trying to install Typo3 on my Windows 10 computer and everthing goes well. Right after the installation (right before the Typo3 backend is supposed to open

Laravel Unresolvable dependency resolving [Parameter #0 [ <required> $method ]] in class GuzzleHttp\Psr7\Request

When posting form I am getting this exception Unresolvable dependency resolving [Parameter #0 [ $method ]] in class GuzzleHttp\Psr7\Request Searched and trie

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

I've a form which I'm submitting (through GET as it is required this way) to a crm (ViciDial). I can successfully submit the form however if I do that the proce

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null (SQL: insert into products (name, type, img_url, updated_at, created_at) v

Authentication with (content-type: application/x-wamf)

While I was writing an app to provide stats for one game, I noticed this content type in the login form: content-type: application/x-wamf I never saw it before

laravel controller function parameters

I'm trying to call a function inside one of my controller from the action() helper function. I need to pass a paramter to my function. Here is the funciton I'm

PHP: How to raise number to (tiny) fractional exponent?

I'm doing a calculation in PHP using bcmath, and need to raise e by a fractional exponent. Unfortunately, bcpow() only accepts integer exponents. The exponent i

How to submit a form when page loads using JavaScript?

I know this question has been answered many times but in my case the JavaScript code creates a infinite loop which makes my page load continuously, <script t