Category "php"

How to use google play order status api in php

I am trying to fetch order status in real time in php but not able to find proper way or documentation so I can go ahead. In sales api I am getting details of s

Unable to extract Unique Identity for Emails sent from Safaricom Internal Mails ie Message ID (PHP IMAP)

I am having a challenge,I am unable to extract a unique field from emails sent directly from Safaricom Internal Mails to our Customer Service Mailbox. All other

PHPMyAdmin not working as intended at remote server. Error 500, $respond not found

I am just starting my journey with servers so I bought one VPN. I installed there ubuntu 18, apache 2.4, php8, webmin, mysql etc. I have two sites based on symf

Composer fails with kylekatarnls/update-helper on new homestead

I have installed a homestead on a new computer. I have pulled my code (which is working on my other computer as well as the server). My project is made in Larav

when i run the code "php artisan migrate --seed" that's not work completely

when i run this code "php artisan migrate --seed" qppeaer one error like SQLSTATE[42S02]: Base table or view not found: 1146 Table 'naryn.modules' doesn't exist

Merge column values from two arrays to form an indexed array of associative arrays

I have two arrays: $a = ['0' => 1, '1' => 2, '2' => 3] $b = ['0' => 4, '1' => 5, '2' => 6] I want to create a new array like this: [ ['

Transpose multidimensional array and join values with commas

How to group by comma of every value as per same key? I need to re-orientate the array so that rows become columns and the new rows need to be joined together

PHP Shell EXEC with Plesk

I made a SH script to add Plesk subscription (newplesk.sh) I need this script to be started from a PHP file. It's working through SSH when typing php testplesk.

Declaration of OM\Db::query(string $statement) must be compatible with PDO::query

I just installed PHP 8 and I have this error appears? How do I fix it? Fatal error: Declaration of OM\Db::query(string $statement) must be compatible with PDO:

To call class only once in laravel

I have laravel application and I have used singleton pattern public function boot/register() { $this->app->singleton( 'className',

Star and Half Star Rating in Laravel

I want to display average product ratings in star. The values are displaying good but I want to show half star if the value is in float. My blade view: <div

Laravel 8 factory state afterCreating

Laravel 7 factories had method afterCreatingState() where you could define what should happen after Model with specific state was saved into database. $factory-

echo language construct is discouraged. (PHP)

why codacy(code review tool) showing "echo language construct is discouraged." how to solve this issue. 1:

How do I call a php file with axios?

I am doing a CRUD with vue.js and php. I installed the axios and I believe it is working. I just don't know how to call the php file that connects to the databa

Laravel Model save() & update() Not Saving

Laravel 5.7 Hello I have been looking through stack overflow and have tried many possible answers and have come to no conclusions. I am updating a simple inte

Don't show recurring price for WooCommerce subscriptions worth 0$

I want to modify the subscription string so it only shows the sign-up fee for variations with 0$ recurring fee. I would also like to show that variation price

Elephant.io server error with Php( An error occurred while trying to establish a connection to the server)

I have a question for you, I'm using socket.io and elephant.io in my php application, but I've been dealing with the error I got by elephant.io for almost 2 day

bitrix d7 route parameters

I am working on project which is based on BITRIX D7 php framework. We have a need to combine several URLs into one by passing the desired part as a parameter in

Google Gmail API - How to login programatically?

I'm looking to write a PHP script that scans my gmail inbox, and reads unread emails. There needs to be NO user interaction. This has to happen on a cronjob tha

Localhost is currently unable to handle this request. HTTP ERROR 500 with laravel app in Win 10

I have imported Laravel app inside my PC (Win 10) and put it in htdocs folder then I have changed the default directory which will serve me when type "localhost