Learncado
Learncado

Learncado brings together a vast collection of questions and answers. Expand your knowledge, learn new skills, and find solutions to your queries effortlessly. Enhance your learning experience and save valuable time by exploring our website today.

Resources

  • Questions
  • Question By Tags

Help and support

  • Contact
  • About

  • Geniecourse
  • Jetsodeals
  • Rentcado
  • Dealcado
© 2021-2023 Learncado All Rights Reserved.

Search Results (839)

Results for php

December 1st, 2023
PHP merging a multi-dimensional nested array based on a duplicate key

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...

phparrays
Read more
December 1st, 2023
PHP how to access "value" of JSON object which has no "name" in foreach loop

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...

jsonphp
Read more
November 30th, 2023
PHP - Help replacing specific characters in a string

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...

regexphpreplacesubstring
Read more
November 30th, 2023
Split zip archive on multiparts based on size with php ZipArhive class

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...

phpziparchive
Read more
November 28th, 2023
PHP PDO Unix socket to Postgresql fails

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...

postgresqlphpapacheselinux
Read more
November 27th, 2023
Docker Advice: PHP Application

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...

dockerphpnginx
Read more
November 27th, 2023
How to combine date ranges in PHP

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...

phpalgorithm
Read more
November 27th, 2023
why are these two supposed-to-produce-hash-collision-in-md5 strings are not producing the same hash in php?

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'] !== $_...

phphashmd5md5sumhash-collision
Read more
November 24th, 2023
PHP - Get reference of item added into an array

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...

phparrays
Read more
November 24th, 2023
PHP get generated source of a file gotten using file_get_contents or curl

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...

php
Read more
November 26th, 2023
Mobile application: cookies ignored in PHP?

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...

phpgoogle-cloud-platformoauth-2.0apache2
Read more
November 22nd, 2023
PHP script executes fine when run manually in terminal, but errors when cron in cPanel

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...

google-bigquerycronphpcpanel
Read more
November 26th, 2023
How to download file using MS Graph PHP SDK V2

In V1 I could do $this->graph->createRequest('GET', '/drives/' . $driveId . '/items/' . $itemId . '/content')->download($path); How to do this in V2? ...

phpmicrosoft-graph-api
Read more
November 22nd, 2023
PHP 8.1 Warning: Trying to access array offset on value of type bool in array construction

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...

csvphpmultidimensional-arraywarningsphp-8.1
Read more
November 21st, 2023
How to convert this object to array in php

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. "...

jsonphparrays
Read more
November 20th, 2023
Deprecated: Using ${var} in strings is deprecated in php

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...

php
Read more
November 19th, 2023
Processing Linux input events (/dev/input/event*) in PHP

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,...

phplinuxunpack
Read more
November 19th, 2023
PHP - converting data from MariaDB to JSON - � wrong encoding

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...

mariadbphpcharacter-encodingpdo
Read more
November 18th, 2023
SQL to select data from depending on the common id number from different tables from PHP MYSQLi-server

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...

phpmysqli
Read more
November 17th, 2023
Issue with PHP file upload - "move_uploaded_files" not working as expected

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...

phpfileupload
Read more
November 21st, 2023
I'm searching for the activation location of my PHP extension in my PHP Docker container

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...

dockerdocker-composephpphp-extension
Read more
November 16th, 2023
create php code for large files openssl encrypt using AES-256-CTR compatible with openssl command line

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 . ...

phpopensslaeslarge-filesphp-openssl
Read more
November 20th, 2023
Custom suggestions/completion in PHP function from JSON file in PhpStorm

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...

jsonphpautocompletephpstormautosuggest
Read more
November 20th, 2023
Custom suggestions in PHP function from JSON file in PhpStorm

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...

jsonphpphpstormautosuggest
Read more
November 20th, 2023
http_code 0 with Redhat php curl

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...

phpredhat
Read more

Hot Topic

  • 25881

    How do I undo the most recent local commits in Git?

  • 11618

    How can I remove a specific item from an array in JavaScript?

  • 20343

    How do I delete a Git branch locally and remotely?

  • 7387

    How can I find all files containing a specific text (string) on Linux?

  • 7330

    How to find all files containing specific text (string) on Linux?

  • 7611

    How do I revert a Git repository to a previous commit?

  • 2671

    How do I create an HTML button that acts like a link?

  • 8481

    How do I check out a remote Git branch?