Category "php"

Get sql.h error on MacOS 12 (Monterey) sqsrv and pdo_sqsrv drive installation

I have macOS 12 Monterey, PHP 7.4. I would like to install sqlsrv and pdo_sqlsrv drives. However, I got the following error. g++ -I/opt/homebrew/Cellar/[email protected]/

Magento 2 - Controller returning blank page

Been spending the last 1 day to find a fix for this. Basically everything works normal if I delete all the contents of generated folder and then generate the f

how to check version of codeigniter framework?

I recently setup a old Codeigniter framework on my xampp.But i don't know the version of this framework. I use the code <?php echo CI_VERSION; ?> bu

PHP AWS Cognito 'Error executing "SignUp" : ResourceNotFoundException : User pool client XXXX does not exist

When i implement AWS Cognito in my project Occur following error. Uncaught exception 'Aws\CognitoIdentityProvider\Exception\CognitoIdentityProviderException' w

Array divided into days of the week

I want the array to be divided into days of the week according to the date specified in BETWEEN and AND public static function showDataByEmployer($employer) {

Statement that checks whether a URL contains a particular path?

Is there an if statement that allows me to check whether a URL contains a particular path? In my particular case (using wordpress), I'm trying to check wether

PHP Print to Network Printer

What I'm trying to do Print a PDF document on a network printer while passing printing parameters for things such as colour, orientation, duplex, etc. More info

Call to undefined function ssh2_connect() in php 8.1.1

Does anyone know where to find php_ssh2.dll download for php 8.1.1 or php 8.0.14 PECL downloads are not compatible

Reorder attribute dropdown terms in Woocommerce single variable products

In the Woocommerce single variable product pages, I would like to change the order of the sizing options on the related drop-down menu. Actually It is like thi

How to set Google Play `inAppUpdatePriority` using google-php-api-client

I found following thread at : https://issuetracker.google.com/issues/133299031#comment14 Hello, In-app update priority of the release can be set using the P

TesseractOCR not working for Laravel

Hi I tried to read image content from laravel using TesseractOCR. This is my controller, <?php namespace App\Http\Controllers; use TesseractOCR; cla

Sort a multidimensional array by integer inside of a string value which is two levels down

I have a multidimensional array in php: Array ( [0] => Array ( [certificate_name] => track.site [domains] => track.site

Getting old cache view when there is PHP errors in controller - Laravel 5.6

I have a strange problem. I am using Laravel 5.6, When there is a PHP error or Laravel error (E_NOTICE, E_WARNING etc) in my controller then instead of throwing

Is there a way to use the same parameter into multiple place in the same query with Eloquent? [duplicate]

I am working on a Laravel 5.7 based project in which Eloquent is used as an ORM. I need to execute a raw SQL statement on my database. Howev

WHMCS payment gateway: recurring but not credit card

I'm working on a custom WHMCS payment gateway module for the Mollie payment gateway. So far I integrated one-off payments with no issue, but I'm having some tro

php curl requesting twice

I have a limit of 25 requests/min from PUBGs official API. For some reason instead of it requesting twice for each search its using up 4 requests. I can't figur

how to fix Service provider class not found when using repository?

I am new to repository in laravel and trying to work on it , But when i run the application it throws the error Class 'App\Repositories\User\UserRepoServicePr

Not able to override collapsible.js in magento 2

I'm working on Magento EE 2.1.1 and I need to extend activate method functionality which located in lib/web/mage/collapsible.js . but I can't find the right way

How can I stop a symfony process which is listening on http://127.0.0.1:8000

I am trying to run a basic Symfony installation which I generated using this command : $ symfony new basic When I run the following commands : $ cd basic $

Show rotation of tweets using current day of month

I'm trying to create something that will check the date and produce a different variable result depending on the date today. This is my current code: <?php