Most voted questions in PHP

0 votes
0 answers

GD Library extension not available with this PHP installation Ubuntu Nginx

When I try to upload a file ...READ MORE

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

How to access mysql result set data with a foreach loop

I'm working on a PHP application that ...READ MORE

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

Best XML Parser for PHP

I've used the XML Parser before, and ...READ MORE

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

How to Sort a Multi-dimensional Array by Value

How can I sort this array by ...READ MORE

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

Reading an Excel file in PHP

I'm attempting to read an Excel document ...READ MORE

Jul 29, 2022 in PHP by Kithuzzz
• 38,000 points
1,076 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,908 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,645 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,212 views
0 votes
0 answers

Upgrading PHP in XAMPP for Windows?

How do you upgrade PHP in Xampp ...READ MORE

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

Get user's current location

How can I utilize IP to determine ...READ MORE

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

Advantages and Disadvantages of Inheritance in php

Could someone please explain the main benefits ...READ MORE

Jul 28, 2022 in PHP by Kithuzzz
• 38,000 points
691 views
0 votes
0 answers

How to check not in array element

I want to check if an element is ...READ MORE

Jul 28, 2022 in PHP by Kithuzzz
• 38,000 points
3,422 views
0 votes
0 answers

How to parse a CSV file using PHP

I have a .csv file with the following content: ...READ MORE

Jul 28, 2022 in PHP by Kithuzzz
• 38,000 points
955 views
0 votes
0 answers

PHP file_get_contents() returns "failed to open stream: HTTP request failed!"

I'm having trouble using PHP code to ...READ MORE

Jul 28, 2022 in PHP by Kithuzzz
• 38,000 points
9,557 views
0 votes
0 answers

How can I prevent SQL injection in PHP?

The programme  becomes vulnerable to SQL injection ...READ MORE

Jul 28, 2022 in PHP by Kithuzzz
• 38,000 points
533 views
0 votes
0 answers

How to fetch specific data from MySQL database to my PHP table?

I want to get data from the ...READ MORE

Jul 28, 2022 in PHP by Kithuzzz
• 38,000 points
3,538 views
0 votes
0 answers

phpmyadmin Failed to set session cookie. Maybe you are using HTTP instead of HTTPS

I successfully installed PHP, Apache, and MySQL. ...READ MORE

Jul 28, 2022 in PHP by Kithuzzz
• 38,000 points
9,633 views
0 votes
0 answers

Can't get gettext (php) on Ubuntu working

The translated string is repeated back when ...READ MORE

Jul 28, 2022 in PHP by Kithuzzz
• 38,000 points
518 views
0 votes
0 answers

Mail is not sending in php

My code to send mail from PHP: ...READ MORE

Jul 28, 2022 in PHP by Kithuzzz
• 38,000 points
873 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,435 views
0 votes
0 answers

PHP & Case Sensitivity

PHP is the only language in which ...READ MORE

Jul 26, 2022 in PHP by Kithuzzz
• 38,000 points
596 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,817 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,527 views
0 votes
0 answers

Remove the last character from a string

What is the fastest way to remove ...READ MORE

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

PHP Session Destroy on Log Out Button

I'm currently working on a website that ...READ MORE

Jul 26, 2022 in PHP by Kithuzzz
• 38,000 points
12,122 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,807 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,648 views
0 votes
0 answers

Retrieve data from db and display it in table in php .. see this code whats wrong with it?

$db = mysql_connect("localhost", "root", ""); ...READ MORE

Jul 25, 2022 in PHP by Kithuzzz
• 38,000 points
457 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
2,026 views
0 votes
0 answers

How can I write to the console in PHP?

Is it possible to write a string ...READ MORE

Jul 25, 2022 in PHP by Kithuzzz
• 38,000 points
482 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
2,018 views
0 votes
0 answers

Mobile number validation pattern in PHP

I am unable to accurately write the ...READ MORE

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

Deleting an element from an array in PHP

Is there a simple PHP method for ...READ MORE

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

PHP - CodeIgniter - Invalid argument supplied for foreach()

I'm attempting to use CodeIgniter to create ...READ MORE

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

Drawing a bar graph using mysql data using php

I am using PHP as the scripting ...READ MORE

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

PHP - Generating tokens for transactions

What would be a safe and suitable ...READ MORE

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

What's the maximum value for an int in PHP?

Ignoring the special libraries that allow you ...READ MORE

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

How to use $_FILES["file"]["size"]?

How can I see if the file ...READ MORE

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

jQuery Ajax POST example with PHP

I want to send data from a ...READ MORE

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

PHP form - Registration Successful Message on New Page

After each entry has been verified, the ...READ MORE

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

PHP's preg_match() and preg_match_all() functions

What do the preg_match() and preg_match_all() functions do and how can ...READ MORE

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

When to use Final in PHP?

Although I am aware of what a ...READ MORE

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

How to sort an array of associative arrays by value of a given key in PHP?

Given this array: $inventory = array( ...READ MORE

Jul 24, 2022 in PHP by Kithuzzz
• 38,000 points
703 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,685 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,452 views
0 votes
0 answers

php password_hash and password_verify issues no match

I'm testing out the new password hash ...READ MORE

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

How to call a PHP function on the click of a button

The two buttons on my functioncalling.php page ...READ MORE

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

DataTable using PHP

Is PHP capable of being used to ...READ MORE

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

PHP array printing using a loop

How can I print each value of ...READ MORE

Jul 23, 2022 in PHP by Kithuzzz
• 38,000 points
498 views
0 votes
0 answers

Multiple ways of calling parent method in PHP

I wasn't sure why both methods calls ...READ MORE

Jul 23, 2022 in PHP by Kithuzzz
• 38,000 points
2,556 views