Category "php"

PHP Composer with ZScaler

I'm trying to download the phpspreadsheet library for php 7.4 but I'm facing trouble with certificates. In my company, ZScaler is used to inspect network and it

CodeIgniter call_hook('post_controller_constructor') exits

I have inherited a webapp using CodeIgniter I am trying to get it to run locally on my mac when I try to go to http://localhost ,i can see via the debug logs i

How to setup browser-sync with Wordpress and xampp

In my gulpfile.js I have the following code: const themeName = "test" const browsersync = require('browser-sync').create(); // Browsersync function browserSync

i cant directly going to login page with codeigniter 4, and using myth/auth

i tried to using codeigniter 4 and try using myth/auth, and i get a problem, if put restricted in my filters its not loading the login page public $aliases

Variable returned by Symfony controller always undefined

Ok, so I have a text field in which I type a string and I have a button next to it. <div class="sidebar-search"> <div class="input-group custom-se

PHP fmod returns the dividend not remainder

This returns 50727.64 instead of the expected 0.489 fmod((float)50727.64, (float)103680); Is this because the normal division only returns a decimal? This code

Filter all row with the same foreign key when a those column is null in laravel

i have table schema in mysql for my project. this project build with laravel and as you can see in the below image i want to fillter all row with the same store

How to deal with mysqli problems? mysqli_fetch_array(): Argument #1 must be of type mysqli_result

In my local/development environment, the MySQLi query is performing OK. However, when I upload it on my web host environment, I get this error: Fatal error: Ca

Symfony- docker container Could not open input file: bin/bash

I started my Symfony 6 project with Docker successfully. I have a problem when accessing the PHP container and trying to run php bin/console doctrine:migrations

How I use return inside a recursive functions in php

I have a php recursive function as shown in the below: function displayDropdown(&$catList, $parent, $current=[], $level=0) { if ($parent==0) { foreac

Is it possible to use amCharts5: Simple Pie Chart, but not with percentages?

I started using this library, and I liked it. I was wondering if anyone had the need for instead of showing the data in percentage, to show the real data withou

How to apply different and/or groups for multiple filters in PHP GA4?

I have to pull data using mutiple dimension filters using AND/OR operators in php GA4. How to apply AND operator for the below dimension filters - 'dimensionFil

Unable to retrieve data from parent form in InlineCreate operation in backpack for laravel

I implement the InlineCreate Operation in Backpack for Laravel and works fine, but my field depend of other field and I can't to get the parent field informati

How to simulate api calls in C# using php file

I have an online reports viewer application that stores patients records as follows: Web application view: I have created a C# application that is meant to cap

Insert into multiple input fields using select2 and ajax in laravel

I am trying to use a single select request to retrieve data from database based on the search term "name" and populate my input fields using select2 so that i d

Laravel "Skip" WhereIn when request not Filled or null?

I have controller with request like below $product = $request->product; //array $product_category = $request->product; if($request->filled('product'))

How to write rendered content between<pre><code> to a file

I have a file main.php with code snippet as <pre><code> echo htmlspecialchars ('echo "this is a $name of your best friend";'); </pre></c

What is faster in PHP: dechex() or sprintf("%x")?

What is the fastest way to convert a number to the hexadecimal representation in PHP: dechex($number) or sprintf("%x",$number)?

Laravel Excel beforeExport event to load excel from aws s3 bucket not working

I am using matwebsite Laravel excel to do some updates in existing excel and export. I am using beforeExport method to do some updates in the excel. when i prov

Sort ServerSide DataTable on calculated / formatted value that is not a column in the DB

I've been using Laravel Datatables for awhile in some of the Laravel applications and I really love that, and probably using a fraction of the features. I also