hi I’m trying to return a JSON response with PHP and i need my array to have numeric keys but when i use array_values JSON drops the key and it only returns the value $diffFinal = array_values($…
Tag: php
QBO PHP Getting field of multi dimension
This seems so simple, but I just want to echo this and I can’t seem to figure out how to access the second part of the array. BillAddr is the first part and Line1 is the second part. It return …
symfony 5 authentification problem with getUser()
I am trying to work with Symfony 5 and the security component and I am blocked on a bug. the bug is on authentification success after redirection, $this->getUser() return null but at the same time, …
localhost phpMyAdmin wont open because I deleted composer folder inside it
I am new to php and usage of composer in php. I am using windows 10. While trying to delete previous installation of composer I think I have mistakenly deleted the composer folder inside phpMyAdmin. …
Artisan::call(‘route:cache’) from within Laravel app, crashes
Quick summary: I need to programmatically clear the routes cache (unless there is another way using the RouteServiceProvider?) but Artisan::call(‘route:cache’); is throwing an error. I have routes …
How to add id to button add to woocomerce cart
someone knows how I can add id to the woocommerce buttons, woocommerce adds this structure <button type="submit" data-quantity="1" data-product_id="id_del_producto" class="button alt …
How to get values of multiple dropdowns and file uploads appended with Jquery Multifield plugin
I am trying to get the values of multiple select boxes and file inputs using jquery. I am using Jquery Multifield plugin for appending same fields multiple times.So far i am unable to get all the …
Can’t set posts_per_page nor order/sort my shortcode function
I have been working on a new function where I can simply add a shortcode to show child pages of a specific page I did set. Everything worked fined and looked good until I wanted to order/sort them and …
Symfony process executes command but returns failed status
By doing public function spawn_queue_process(){ $command = ‘echo hi > find_me.txt’; $process = new Process($command); $process->setWorkingDirectory(base_path()); $process-&…
Multiple php requests simultaneously, second request doesn’t start until first finishes
I’ve got a long running php 7.2 script that is producing a zip file. I want to use a looping ajax call to check on the progress of building the zip file. The second script appears to be locked and …