I want to create a PHP site which can manage multiple sessions and read contents from them. So in order to realize this I decided to use tmux with the PHP exec() command.
The sessions will run under the user www-data , each running their separate...
I am facing mysqli_error() expects parameter 1 to be mysqli, null given in anyone can help me? I have a separate file for database details and object class where i create 2 class first one for insert, delete, update sql query & second one is for...
I was wondering if I could please have some help with a PHP issue I'm having?
I'm a beginner and I've been working on making a basic CMS as a personal project to build my skills with.
It's all working so far, but on the admin page which updates the...
I'm trying to do a bulk-update from a formular and validate the input before posting it to database. But I must do something wrong, probably with the header location link in wrong place beacause it only validates the first id and don't care about...
I tried my best to find the document as I believe it has the documentation of /wp-json/wc/store/cart . I found Woocommerce REST API documatation and the Woocommerce Blocks documentaiton.
Great appreciation if anyone can provide me the URL of the...
I'm a beginner with Eclipse and PHPUnit. I think I configured my PHP project correctly to run PHPUnit with code coverage. My problem is : when I run PHPUnit from Eclipse, the tests are executed normally, the html report is generated, but all...
I just installed Laravel Backpack Pro and added an isAdmin column to my Users column / model.
I've updated app/Http/Controllers/Admin/UserCrudController.php so that when editing a user and viewing the list of all users isAdmin shows up as Admin but...
To integrate payment functionality into your PHP project and separate the roles of Registrar and Department Head from the Admin role, could you kindly provide guidance on the following steps:
Are they available application wide e.g: if they are created on
index.php are they values available in file.php
Is the value of the global variable same for each user. Say I have
one user doing something and his global...
I'm doing a little project where the user can upload multiple images from a simple form.
When I submit the form I go in a service page where I must save the images, but this not working.
So, I tried to print $_FILES , and I saw that it's empty....
I apparently cannot find informations about this topic. I use file_get_contents() quite often to load svg files in my websites (logos, icons..).
I sometimes wonder if that can slow down my pages. I mean, as opposite to directly paste svg markups...
I use Symfony\Component\HttpClient\HttpClient to retrieve the page content because I use a proxy.
// Customizing the client
$this->httpClient = HttpClient::create(
);
// I get the content of the page - everything loads normally, in the variable...
I have two problems.
First of all the remove a file from queue is not working well. When I use remove link of the chosen file from queue, the link refresh the whole page. For example when I chose two files and I want to remove one of them with the...
I want to Implement the following field in symfony2. It has 2 Radio Buttons, and they are styled like Switch using some bootstrap styling.
Example here
above html and bootstrap, snippet displays desired output
I want add one more option on this section
enter image description here
How I can do to find out the name of this function in Elementor?
Thank's a lot
I think I got the name of the function wrong, I tried to find the name of the function on the...
How can I get list of dates of the current month till current date of that month?The Code I have tried so far. I am getting all the dates of this current month.
Is there a shorthand for the following code:
$result = array_combine(array_map(fn($elem) => key_$elem , $array), array_map(fn($elem) => value_$elem , $array));
PHP Sandbox
I do not like the idea (from readability point of view) of having to use...
I'm having an issue with hosting a Slim API on XAMPP in local environment. When I access the API via localhost, I notice that it takes about 15-20 seconds to receive a response from requests. I'm trying to understand what the causes of this delay...
i want to get all the departments if location_id is 3 . that means if location id 3 is used i need to get the department_names of cardiology and hair
My controller
public function get_location_departments()
{
$d = $_POST ;
$data =...
Website link:
I have build a website with Wordpress and Divi. I am running into an issue, I hope you know the problem!
I have a custom Divi Blog Module. This not only grabs the default information from my blog posts, but also the info from a custom...
I'm working on project that need cut list optimization.
Need a best way to cut metal bars with given sizes and reducing wastage.
As a example,
//All values mention in below use meters
double DefaultBarLength=5; //constant value of single bar...
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения