Category "php"

oci_connect() ORA-12170: TNS:Connect timeout occurred

I need to connect to remote oracle database using oci_connect(). After waiting for several minutes I get this error. $db = '(DESCRIPTION = (ADDRESS = (PR

Separate PHP script in a cron job

I have about 10 accounts. Also, I have a cron job with php script which executes every minute. This script is working for each client one by one. The problem is

PHPSpreadsheet - How Do I Use Auto Migration Tool

I'm a long time reader, but new to asking questions. Please correct me if I have somehow asked incorrectly. Intro We are upgrading our servers from PHP 5.4 to

Add a custom text for a particular product on specific email notification in Woocommerce

I want to add an extra text "There is an offer in this particular item etc" only for a particular product(Product Id:1) in customer-completed-order.php in WordP

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