Category "php"

Captcha Helper Codeigniter Error - imagettftext(): Could not find/open font

please help me solve this problem. I want to use the captcha in my login page using captcha helper in CodeIgniter, but got some error like this : A PHP Error w

Why getting "Build step 'Execute shell' marked build as failure" error while creating a backup tar for files

We are trying to run a job in jenkins server. Before deploying I am trying to create a tar file of all files and folders. Whenever I try to build job tar file i

Why getting "Build step 'Execute shell' marked build as failure" error while creating a backup tar for files

We are trying to run a job in jenkins server. Before deploying I am trying to create a tar file of all files and folders. Whenever I try to build job tar file i

Can't connect to MySQL via PHP "Name or service not known"

I have a website, which sends input data with AJAX via a PHP script to a MySQL database. The JavaScript/AJAX part is working but the PHP script doesn't get exec

Coinpayments create_transaction "ERROR: Invalid command!"

I am trying to let people pay on my site with a simple API of Coinpayments (I tought it was simple). So, I found this page of the official Coinpayments website

PHP array sort and remove duplicates by two field values

I have an array structure like this [0]=>array(3) { ["Number"]=> "L1" ["Location"]=> "Location-A" ["Qty"]=>"1" } [1]=>array(3

Mysql : How to run heavy analytical query at real time

I am running a crm application which uses mysql database. My application generating lots of data in mysql. Now i want to give my customer a reporting section wh

How to use ajax-load-more Wordpress plugin for search.php?

i am using Ajax-Load-More wordpress plugin for my web site but i don't understand how to use for search result in search.php there is no code example for searc

Form Validation and Submission to database

I am working on a project that has a FORM which should VALIDATE itself and then submit the data to the MySQL Database. But I am facing an error. This is the f

Custom hidden field on WooCommerce checkout not saving to user meta issue

I cannot figure out what i am missing here. I am creating a hidden field on the checkout page, that contains a value after a customer's choice. This part is wor

Eloquent insert id with sequence next value

I would like to create a new record in a PostgreSQL database table with Laravel eloquent but the table id is not auto incremented and it's make my life more dif

How to upload mpdf file after generating to s3 bucket in php

Can I upload mpdf file to s3 server after generating. $file_name = $pdf->Output(time().'_'.'E-Prescription.pdf','F');

php - add comma thousands separator but remove trailing zeros

I am trying to use PHP to format a number to Remove all trailing zeros Add a comma for the thousands separator List two decimal points, assuming that they are

Rocket League API Not giving data

I've been trying to use the Rocket League API from the trackerhttps://api.tracker.gg/api/v2/rocket-league/standard/profile/(platform)/(name) When i use the link

CONCAT columns with Laravel 5 eloquent

Consider me as laravel beginner The goal is: I have two colums, now I need the id to be prefixed with the component name of same row in the table. For Exampl

PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_mysqli.dll' and php_mysql.dll

When I check the PHP version using php -v i got error message like below PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_m

In PHP, which is faster: preg_split or explode?

Which is faster when using it to extract keywords in a search query in php: $keyword = preg_split('/[\s]+/', $_GET['search']); or $keyword = explode(' ', $_GET

Respond with status code 401 on authentication failure using Laravel and Passport?

I'm configuring a Laravel project to use Passport token authentication. Everything seems to be working, but when the auth:api middleware fails, it responds to t

How do I enable error reporting in Laravel?

I'm using Laravel 5.2 and I'm trying to import an excel sheet which contains more than 18000 records. the error below appeared. The localhost page isn’t w

Store multiple fields in JSON column (Nova CMS)

I have a posts table that has a json column "read_more_section". And I want to store on that column the information regarding some fields on the NOVA CMS (title