Trending questions in PHP

0 votes
0 answers

getenv() vs. $_ENV in PHP

What is the distinction between $_ENV and ...READ MORE

Aug 8, 2022 in PHP by narikkadan
• 63,600 points
1,553 views
0 votes
0 answers

How to make a nice "date picker" in PHP?

As I play about with MySQL and ...READ MORE

Aug 8, 2022 in PHP by Kithuzzz
• 38,000 points
1,505 views
0 votes
0 answers

Find all second level keys in multi-dimensional array in php

I want to provide a list of ...READ MORE

Aug 6, 2022 in PHP by Kithuzzz
• 38,000 points
1,541 views
0 votes
0 answers

PHP Connection failed: SQLSTATE[HY000] [2002] Connection refused

I am trying to connect MySQL Database ...READ MORE

Jun 24, 2022 in PHP by narikkadan
• 63,600 points
3,380 views
0 votes
0 answers

Form submit with AJAX passing form data to PHP without page refresh

Can anyone tell me why this bit ...READ MORE

Jul 29, 2022 in PHP by Kithuzzz
• 38,000 points
1,847 views
0 votes
0 answers

PHP foreach loop key value

Running this DB call will provide me ...READ MORE

Aug 1, 2022 in PHP by Kithuzzz
• 38,000 points
1,674 views
0 votes
0 answers

php error: The Encrypt library requires the Mcrypt extension in codeigniter

I have a  login and sign-up form and ...READ MORE

Jun 20, 2022 in PHP by Kithuzzz
• 38,000 points
3,482 views
0 votes
0 answers

What is PHPSESSID?

I'm experimenting with cookies. I also don't ...READ MORE

Aug 8, 2022 in PHP by narikkadan
• 63,600 points
1,354 views
0 votes
0 answers

How to upload images into MySQL database using PHP code

I'm attempting to save photos from an ...READ MORE

Aug 3, 2022 in PHP by Kithuzzz
• 38,000 points
1,528 views
0 votes
0 answers

Get driving distance between two points using Google Maps API

Using Google Maps API, I'm attempting to ...READ MORE

Jul 31, 2022 in PHP by Kithuzzz
• 38,000 points
1,667 views
0 votes
0 answers

Get server timezone In PHP

My client need a system report of ...READ MORE

Aug 7, 2022 in PHP by Kithuzzz
• 38,000 points
1,355 views
0 votes
0 answers

Illegal string offset Warning PHP

After updating my PHP version to 5.4.0-3, ...READ MORE

Jul 25, 2022 in PHP by Kithuzzz
• 38,000 points
1,885 views
0 votes
0 answers

PHP cURL GET request and request's body

I want to use cURL for a GET request ...READ MORE

Jul 25, 2022 in PHP by Kithuzzz
• 38,000 points
1,915 views
0 votes
0 answers

Login using PHP and JavaScript from SQL database

I have developed a drop-down login panel using ...READ MORE

Jun 11, 2022 in PHP by narikkadan
• 63,600 points
3,796 views
0 votes
0 answers

PHPMyAdmin Default login password

I installed  Fedora 14 and installed the ...READ MORE

Jun 25, 2022 in PHP by narikkadan
• 63,600 points
3,157 views
0 votes
0 answers

PHP using extract() to pass array values as variables and display it on a page

In order to include a specific file ...READ MORE

Aug 6, 2022 in PHP by Kithuzzz
• 38,000 points
1,315 views
0 votes
0 answers

How to convert Unicode font to KrutiDev in PHP

In essence, I used JavaScript to generate ...READ MORE

Aug 4, 2022 in PHP by Kithuzzz
• 38,000 points
1,321 views
0 votes
0 answers

Send mail using an email account created on Hostinger (PHP)

I am using an email I created ...READ MORE

Jun 7, 2022 in PHP by Kichu
• 19,040 points
3,853 views
0 votes
0 answers

How to increase memory limit for PHP over 2GB?

Increasing the PHP memory limit as an ...READ MORE

Aug 8, 2022 in PHP by Kithuzzz
• 38,000 points
1,148 views
0 votes
0 answers

Fatal error : execution time of 30 seconds exceeded in phpMyAdmin

My MySQL table has 6.5 million records ...READ MORE

Jul 26, 2022 in PHP by Kithuzzz
• 38,000 points
1,704 views
0 votes
0 answers

PHP random string generator

I want to create a randomized string in ...READ MORE

Jul 26, 2022 in PHP by Kithuzzz
• 38,000 points
1,665 views
0 votes
0 answers

PHP - SSL certificate error: unable to get local issuer certificate

PHP 5.6.3 is being used by XAMPP ...READ MORE

Jul 29, 2022 in PHP by Kithuzzz
• 38,000 points
1,520 views
0 votes
0 answers

Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted (CodeIgniter + XML-RPC)

My client point of sale (POS) systems ...READ MORE

Aug 1, 2022 in PHP by Kithuzzz
• 38,000 points
1,382 views
0 votes
0 answers

PHP import Excel into database (xls & xlsx)

One of the plugins I looked for ...READ MORE

Jul 30, 2022 in PHP by Kithuzzz
• 38,000 points
1,467 views
0 votes
0 answers

PHP MySQLi num_rows Always Returns 0

In order to make database interaction simpler, ...READ MORE

Aug 7, 2022 in PHP by Kithuzzz
• 38,000 points
1,063 views
0 votes
0 answers

How to push both value and key into PHP array

Take a look at this code: $GET = ...READ MORE

Jul 25, 2022 in PHP by Kithuzzz
• 38,000 points
1,586 views
0 votes
0 answers

This localhost page can’t be found :Phpmyadmin

I solved an issue with Apache and ...READ MORE

May 30, 2022 in PHP by Kichu
• 19,040 points
3,950 views
0 votes
0 answers

php/gd can't remove background after creating a circular image

I'm positioning a circular picture with a ...READ MORE

Aug 4, 2022 in PHP by Kithuzzz
• 38,000 points
1,138 views
0 votes
0 answers

Best way to initialize (empty) array in PHP

Because of object creation and instantiation, it ...READ MORE

Aug 2, 2022 in PHP by Kithuzzz
• 38,000 points
1,219 views
0 votes
0 answers

Cannot access phpMyAdmin on localhost running XAMPP

On my Windows computer, I installed XAMPP, ...READ MORE

Aug 6, 2022 in PHP by Kithuzzz
• 38,000 points
1,036 views
0 votes
0 answers

Include PHP inside JavaScript (.js) files

I have a JavaScript file with numerous ...READ MORE

Jul 24, 2022 in PHP by Kithuzzz
• 38,000 points
1,574 views
0 votes
0 answers

How can I solve this error "A PHP Error was encountered"?

Please give some idea. how to solve ...READ MORE

Jul 30, 2022 in PHP by Kithuzzz
• 38,000 points
1,307 views
0 votes
0 answers

How does PHP 'foreach' actually work?

Let me start by stating that I ...READ MORE

Aug 7, 2022 in PHP by Kithuzzz
• 38,000 points
961 views
0 votes
0 answers

How to check if an array value exists?

How can I check if $something['say'] has the value ...READ MORE

Aug 1, 2022 in PHP by Kithuzzz
• 38,000 points
1,161 views
0 votes
0 answers

How to run a PHP function due to a button click (with button 'data' passed)?

I manage some sortiment items on a ...READ MORE

May 28, 2022 in PHP by Kichu
• 19,040 points
3,962 views
0 votes
0 answers

Why command "php artisan serve" not working?

My Laravel on this path: C:\Users\Mad\Work\trunk\product\backend\v1.2.1\laravel But it is ...READ MORE

Jul 26, 2022 in PHP by Kithuzzz
• 38,000 points
1,421 views
0 votes
0 answers

php form action php self

I have a php form like this. <form ...READ MORE

Jul 31, 2022 in PHP by Kithuzzz
• 38,000 points
1,168 views
0 votes
0 answers

Can I dynamically create subdomains (PHP, .htaccess) with GoDaddy Hosting?

On my GoDaddy Hosting account, I'm attempting ...READ MORE

Aug 7, 2022 in PHP by Kithuzzz
• 38,000 points
850 views
0 votes
0 answers

Join two MySQL tables with PHP

I have created two pages and two ...READ MORE

Jul 30, 2022 in PHP by Kithuzzz
• 38,000 points
1,181 views
0 votes
0 answers

Interface or an Abstract Class: which one to use?

Could you please explain when I should ...READ MORE

Aug 8, 2022 in PHP by Kithuzzz
• 38,000 points
779 views
0 votes
0 answers

How to delete image form folder and database

With the code below, I'm displaying data ...READ MORE

Jul 26, 2022 in PHP by Kithuzzz
• 38,000 points
1,337 views
0 votes
0 answers

currently unable to handle this request HTTP ERROR 500

My shopping cart files have been moved ...READ MORE

Jul 22, 2022 in PHP by narikkadan
• 63,600 points
1,493 views
0 votes
0 answers

how to write javascript code inside php

I have a form, and when I ...READ MORE

Aug 7, 2022 in PHP by Kithuzzz
• 38,000 points
797 views
0 votes
0 answers

How to add extra whitespace in PHP?

I was wondering if there was a ...READ MORE

Aug 8, 2022 in PHP by Kithuzzz
• 38,000 points
746 views
0 votes
0 answers

PHP FILTER_VALIDATE_EMAIL does not work correctly

I employ PHP 5.3.10. Here is the ...READ MORE

Aug 4, 2022 in PHP by Kithuzzz
• 38,000 points
878 views
0 votes
0 answers

Setting the Timezone for PHP in the php.ini file

I'm trying to change the default PHP ...READ MORE

Aug 1, 2022 in PHP by Kithuzzz
• 38,000 points
1,040 views
0 votes
0 answers

Convert stdClass object to array in PHP

I fetched post_id from postmeta: $post_id = $wpdb->get_results("SELECT ...READ MORE

Jun 27, 2022 in PHP by narikkadan
• 63,600 points
2,547 views
0 votes
0 answers

Get data from JSON file with PHP

Using PHP, I'm attempting to extract data ...READ MORE

Aug 8, 2022 in PHP by Kithuzzz
• 38,000 points
717 views
0 votes
0 answers

Send email with PHP from html form on submit with the same script

When a user has finished filling out ...READ MORE

Jul 29, 2022 in PHP by Kithuzzz
• 38,000 points
1,147 views
0 votes
0 answers

php exec() is not executing the command

I have tried to use exec() with 'whoami' to check if ...READ MORE

Jul 24, 2022 in PHP by Kithuzzz
• 38,000 points
1,359 views