Most voted questions in PHP

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,010 points
1,205 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,010 points
921 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,010 points
457 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,010 points
221 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,010 points
363 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,010 points
2,615 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,010 points
555 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,010 points
8,657 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,010 points
278 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,010 points
2,692 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,010 points
9,193 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,010 points
283 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,010 points
583 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,010 points
1,030 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,010 points
307 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,010 points
1,245 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,010 points
1,182 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,010 points
248 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,010 points
9,272 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,010 points
1,440 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,010 points
1,334 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,010 points
188 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,010 points
1,593 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,010 points
258 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,010 points
1,493 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,010 points
472 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,010 points
365 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,010 points
822 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,010 points
467 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,010 points
226 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,010 points
337 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,010 points
279 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,010 points
238 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,010 points
1,959 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,010 points
494 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,010 points
242 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,010 points
408 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,010 points
1,246 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,010 points
1,175 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,010 points
899 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,010 points
9,892 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,010 points
228 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,010 points
258 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,010 points
1,822 views
0 votes
0 answers

When I run ''yum install php-pgsql" I got "You need to be root to perform this command." as an error . how to be the root?

When I attempted to run "yum install ...READ MORE

Jul 23, 2022 in PHP by Kithuzzz
• 38,010 points
386 views
0 votes
0 answers

Javascript Equivalent to PHP Explode()

I have this string: 0000000020C90037:TEMP:data I need this string: TEMP:data. With ...READ MORE

Jul 23, 2022 in PHP by Kithuzzz
• 38,010 points
421 views
0 votes
0 answers

How to stop PHP code execution?

Is there a way to immediately stop PHP code ...READ MORE

Jul 23, 2022 in PHP by Kithuzzz
• 38,010 points
571 views
0 votes
0 answers

Laravel 5.4 Storage link

When I go to the link folder ...READ MORE

Jul 22, 2022 in PHP by Kithuzzz
• 38,010 points
669 views
0 votes
0 answers

Artisan, creating tables in database

In Laravel 5, I'm attempting to build ...READ MORE

Jul 22, 2022 in PHP by Kithuzzz
• 38,010 points
250 views
0 votes
0 answers

phpMyAdmin Error: The mbstring extension is missing. Please check your PHP configuration

The phpMyAdmin is not running properly for ...READ MORE

Jul 22, 2022 in PHP by Kithuzzz
• 38,010 points
553 views