Category "php"

Best Practice to Print Barcode In dompdf

I want to create a label sticker with barcode in PDF. Please give me the suggestion to create this things. Now , I use CI3 and dompdf. I have tried googling a

How can I make Laravel return a custom error for a JSON REST API

I'm developing some kind of RESTful API. When some error occurs, I throw an App::abort($code, $message) error. The problem is: I want him to throw a json form

Confirm Leave on External Links in Wordpress

Here's the situation: This is a bank website, so when a user clicks an external link (perhaps to a Facebook page or a partner website), there needs to be a box

Failing validation doesn't stop code execution in livewire component

I'm trying to show a list of models. Having a text filter posed no problem but when trying to add a year filter, problems started occurring. If a non-numeric va

PHP sort array of objects by two properties

I have an array Array ( [0] => stdClass Object ( [tab_option_name_selector] => 2 [fieldtype] => notes [order] => 12

shopware 5: Unable to load template snippet

I am using shopware 5 for my e-commerce website and I am getting this error when logging to the backend: [![Unable to load template snippet][1]][1] 'string:{in

Yii2 ArrayDataProvider does not show already paginated data

I have an issue with ArrayDataProvider object that Yii2 provides. I have a huge API call that returns more than 7k items (this is a problem because obtaining al

How to install php yaml on CentOs?

On the start I was getting this error: Call to undefined function yaml_parse_file() I have tried everything what I have found over google: yum install libya

Failed loading /usr/local/IonCube/ioncube_loader_lin_5.3.so

I just cloned a website from one server to another using cPanel import tool (probably this last part is not relevant) The site is a Magento CE store. The new

Send same name multiple checkbox values via ajax

I have multiple checkbox input elements. <input type="checkbox" name="userpages[]" id="1" value="1"/> <input type="checkbox" name="userpages[]" id="2

PHP/HTML: Creating A SubMenu

I have this filtering feature on my program. It is in the form of a drop-down list. I'm currently using the Select-Option method to display the options on my dr

Creating live search with AJAX and CodeIgniter

I'm trying to create a live search feature in CI (which I've never done before). I'm pretty new to web development and am still learning things. I found this li

I need to link Google Sheet with my Laravel

i want to link my laravel app with Google sheet i use this package : Google Sheets API v4 for Laravel my function : public function doPostData(){ $

Server-sent events in PHP (without echo or print)

We have built a prototype application in PHP and JS using Server-Sent Events (single AJAX requests, multiple streamed events sent by event handlers in PHP). Ess

How to make Canonicals with PHP

I've search around on SO, but can't find an exact answer to my needs. Generating a URL is pretty easy... Like so: <link rel="canonical" href="https://exa

Remove product downloads section in woocommerce email notifications

I would like to remove the download section from the email template that woocommerce will send after my buyer has placed an order. It doesn’t make sense

Modify microseconds of a PHP DateTime object

I have a PHP DateTime object with microseconds created as follows: $time = microtime(true); $microseconds = sprintf('%06d', ($time - floor($time)) * 1000000);

Uncaught TypeError: Cannot read property 'length' of null when retrieving tags from wp

I am trying to use jquery autocomplete to retrieve tags from wordpress db First I set a function in wp: if ( ! function_exists( 'yourtheme_frontend_scripts' )

http://localhost:80 is not working on running Apache server through UniServer ZeroXIII

I am unable to configure a PHP/MySQL/Apache environment on my local machine using UniServer ZeroXIII. In my Uniserver ZeroXIII control panel the Apache and MyS

selected value from the listbox in php

I want the value which I select from the listbox and want to store in php variable because I want to use that variable for further use. Please help.. <form