Category "php"

Laravel Schedule not sending email

It's my first time trying to implement Task Scheduling, I'm trying to send automatic E-mails at a certain time: Before implementing my cron I first tested my em

"cannot list resources" error from WooCommerce REST API

I am very new to WordPres` and using the WooCommerce plugin for the first time and want to use the WooCommerce REST API in my Android app. I have enabled the

Center point of multiple gps coordinates with php

A simple php array with all coordinates $gps = array( array("lat" => 62.986049, "lng" => 176.075001), array("lat" => 57.125353, "lng" => -1

Magento Installation SQLSTATE[HY000] [2002] No such file or directory error

I am a newbie at LAMPP enviroment and I installed XAMPP for installing Magento. Everthing was going fine till "Add database" step of Magento installation. I cre

phpChart_Lite water mark displayin in graph

I am working with PHP graph and using new C_PhpChartX. PHP Chart Lite. Graph is displaying very well, but watermark behind graph not being removing.can anone he

facebook-php-business-sdk getting PHP Fatal error: Uncaught FacebookAds\Http\Exception\AuthorizationException: Invalid parameter in targeting

PHP Fatal error: Uncaught FacebookAds\Http\Exception\AuthorizationException: Invalid parameter in C:\xampp8.0\htdocs\facebook-php-business-sdk\src\FacebookAds

Invalid Value provided for RegionId field in Magento 2

I am getting this error while the controller run -'Invalid value of "491" provided for the regionId field.'. I want to transfer the telephone number from the bi

How update php.ini on a Mac OS X Mojave?

I'm on Mac OS X Mojave Step 1 I ran php -i | grep php.ini I got Configuration File (php.ini) Path => /usr/local/php5/lib Loaded Configuration File =

Parsing JSON File to array in PHP

I am currently trying to read co-ordinates from a JSON file and save them to an array for further use. However I am not managing to read the file successfully.

Utf8 encoding issue with Laravel

I have an issue after deploying my laravel website ( that works properly in local ). Some text are not encoded correctly, for example : what should be Joë

Acces to MySQL automatic data transfer

I have to pass data from Access database to a MySQL database attached to HeidiSQL automatically every minutes. To do that i put the data into excel files format

PHP Slim Framework request using withAttribute error

I am just try to pass username from middileware auth function $request->withAttribute('username','XXXXXX'); return $next($request, $response); But i cann

Database error on website

I got this error trying to access our SCADA website: A Database Error Occurred Unable to connect to your database server using the provided settings. Filena

Get data from accuweather api url

I am trying to get json data from the accuweather API for a locationKey in PHP. The output is as: file_get_contents(https://dataservice.accuweather.com/forecast

PHP array slice from position + attempt to return fixed number of items

I'm looking for an efficient function to achieve the following. Let's say we have an array: $a = [0, 1, 2, 3, 4, 5, 6, 7]; Slicing from a position should alw

PHP Startup: Can't load module 'ext\php_sqlsrv_81_ts.dll' - xampp

I have problem with connectting my laravel project to SQL server database. I'am using xampp with PHP Version 8.1.1. I downloaded appropriate extensions for my p

Update Order custom Field value with WooCommerce REST API

I am trying to update the Order custom field value lworder. I used the below code but I did not find any update. Can anyone please help me with this? $api_respo

Show date difference as "20" instead of "20 years ago"

{{Carbon::parse($etudiant->date_naissance)->diffForHumans()}} It appears like "20 years ago". But I want the age to appear only "20"

stay with the last 15 elements of an array [duplicate]

I have a database on couchdb, each document has a slightly complex structure, here is a small part: "category": { "1496805145": -1,

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