Results for php
I am working with an array that is multi-dimensional and contains a nested array. The array has a duplicate and I would like to merge the array so tha...
I've got a set of "objects", each of which has an ID, and couple or properties. I want to store this in JSON format in a file. In the application, I f...
I have lines of text that look like this... My name is George 123123123 I like cheese and crackers 123456789 Each sentence can be any length but alway...
Problem: Split archive on parts based on parts size with ZipArchive I have zip archive and I need split it into parts based on part size. Like if I ha...
Testing out a LAMP like application, fails with: SQLSTATE[08006] [7] connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or dire...
Any advice would be greatly appreciated. I'm containerizing our old legacy applications. I'm not sure what the best container setup would be, so far I...
I have an array that have start_date, end_date and price Eg. /* date formate 'yyyy-mm-dd' */ $existingRanges = [ ['start_date' => '2023-11-22', 'en...
i'm trying to solve a challenge where i have faced a problem that is related to md5 hash collision . here is the php code : if ($_GET['param1'] !== $_...
I have a variable named $results where my code successfully loads some data from a database. I want to iterate over these results and create an object...
I am writing an audit for our website to see what detail pages are displayed based on a selection. The website is written and maintained by a 3rd par...
My scenario is as follows: my mobile application sends a request to an external website for authorization to receive an authorization code, which is s...
I am trying to run a cron job to execute a PHP script. The command for the cron I am trying to execute is /usr/local/bin/php -q /home/domain/public_ht...
In V1 I could do $this->graph->createRequest('GET', '/drives/' . $driveId . '/items/' . $itemId . '/content')->download($path); How to do this in V2? ...
I have a problem with the construction of an array which produces this error in PHP 8.1: Warning: Trying to access array offset on value of type bool...
How to convert this object to array without nesting inside. Just need to convert create links array and push the leftSection --> links object in it. "...
I'm relatively new to PHP, and I'm encountering a warning message Deprecated: Using ${var} in strings is deprecated, use {$var} instead in ..../.../he...
I'm trying to get keyboard events on GNU/Linux using php, with this code: $fd = fopen("/dev/input/event0", "rb"); while (true) { $ev = fread($fd,...
I seem to have some problem with encoding, but I can't pinpoint it. PHPMyAdmin says: Server type: MariaDB Server version: 10.3.39-MariaDB-log - MariaD...
Hi first time posting here. I'm trying to display the list of attendance for specific students upon parent log in. I have the db tables of both studen...
I'm currently working on a file upload feature for my PHP application, and I'm encountering a problem with the move_uploaded_file function. Here's a s...
When I check the activated extensions in my php Docker container, the output lists several PHP modules, such as Core, ctype, curl, and others. the ext...
I am trying to create a PHP method to replicate the OpenSSL command line function so I can encrypt using PHP and then decrypt it using command line . ...
I have a translate("") function and I want PhpStorm to start suggesting values from a JSON file when I start typing between the quotes. The idea is th...
I have a translate("") function and I want PhpStorm to start suggesting values from a JSON file when I start typing between the quotes. The idea is th...
I can use lynx to access a website from the server fine. When I try to access the same website with a php curl instruction I get http_code=>0 from cur...
How do I undo the most recent local commits in Git?
How can I remove a specific item from an array in JavaScript?
How do I delete a Git branch locally and remotely?
How can I find all files containing a specific text (string) on Linux?
How to find all files containing specific text (string) on Linux?
How do I revert a Git repository to a previous commit?
How do I create an HTML button that acts like a link?
How do I check out a remote Git branch?