I have a laravel app with passport installed to manage api auth. I’m trying to write some tests but I’m unable to create a Client as per the docs on laravel. I’ve googled similar SO answers but they …
Tag: php
Is there a simple way to reduce the AWS PHP SDK to use only S3?
I would like to know is there a simple way to reduce the AWS PHP SDK to use only S3 ? I tried to delete certain directory but there are so many it will take an incredible time, and I have many errors depending on the files I delete (21,6Mo – 2 368 elements) ?! Is it possible to know the
How to sort an Array in PHP by value?
I know that this is asked before, I even tryied to do as on this question: How to Sort Multi-dimensional Array by Value? But in my case it doesn’t work. If anybody can help me I will be very thankful. My code: I want to sort this array by “reference” in alphabetical order. I tried this: But …
shorter way to get data attributes from all column names and values
table users has 14 columns – id, src link, title… Is there a shorter way, like this: Answer Maybe something like this:
How to get the value of while loop(PHP) using JavaScript?
I have this while loop in PHP In this loop, when we click on the “delete” link, the value of variable “$post_id” changes. I want to get the value of “$post_id” when it changes. I tried with this JS code But it only gives me the last value of “$post_id”. I want t…
output common int using array_search
I am trying to create a function that will output the smallest common int or return false if there is not one in three arrays. The arrays are sorted ascending and I want to do with array_search. When I execute this code it returns nothing and I don’t know why it should echo 5 I think Answer Here is a
Automating Zoom API authentication with PHP not working
I am trying to automate the sign in process with the Zoom API to allow me to use my website to create meetings but I cannot seem to get the sign in to work in order to allow me to get an authentication code to call the API methods. I am doing this in PHP and I am fairly novice
php dynamic table from muldimentional array
can you give me idea how to implement this idea for “dynamic” html table. I have an array Now from the keys ‘label’ im creating the table columns The problem is how to put ‘fname’ keys in the first column, ‘lname’ in the second and ‘description’ in t…
How do I store multiple similar data in a session array in PHP?
I would like to be able to submit multiple times and store the data in a session array to be accessed in other server pages. I’n not sure how to do it. &…
How define some PHP constant in the Symfony configuration?
this is my first post, so i will try to be clear So i need to define some constants in the Symfony configuration (in a .yaml file, i guess) I know i could define them throw public const MY_CONST but …