Trending questions in PHP

0 votes
0 answers

PHP & Case Sensitivity

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

Jul 26 in PHP by Kithuzzz
• 20,660 points
56 views
0 votes
0 answers

Remove the last character from a string

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

Jul 26 in PHP by Kithuzzz
• 20,660 points
52 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 in PHP by Kithuzzz
• 20,660 points
54 views
0 votes
0 answers

Redirect users to different pages based on role php

Depending on the responsibilities that have been ...READ MORE

Jul 21 in PHP by narikkadan
• 37,660 points
255 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 in PHP by Kithuzzz
• 20,660 points
127 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 in PHP by Kithuzzz
• 20,660 points
123 views
0 votes
0 answers

jQuery Ajax POST example with PHP

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

Jul 25 in PHP by Kithuzzz
• 20,660 points
62 views
0 votes
0 answers

Get last executed query in MySQL with PHP/CodeIgniter

In my_model.php, I have: $query1 = ( ...something... ); $query2 ...READ MORE

Jul 22 in PHP by Kithuzzz
• 20,660 points
188 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 in PHP by Kithuzzz
• 20,660 points
59 views
0 votes
0 answers

PHP - Generating tokens for transactions

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

Jul 25 in PHP by Kithuzzz
• 20,660 points
57 views
0 votes
0 answers

Deleting an element from an array in PHP

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

Jul 25 in PHP by Kithuzzz
• 20,660 points
56 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 in PHP by Kithuzzz
• 20,660 points
100 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 in PHP by Kithuzzz
• 20,660 points
172 views
0 votes
0 answers

How to stop PHP code execution?

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

Jul 23 in PHP by Kithuzzz
• 20,660 points
132 views
0 votes
0 answers

500 Internal Server Error for php file not for html

There are barely 4-5 static pages on ...READ MORE

Jul 22 in PHP by narikkadan
• 37,660 points
176 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 in PHP by Kithuzzz
• 20,660 points
39 views
0 votes
0 answers

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

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

Jul 25 in PHP by Kithuzzz
• 20,660 points
26 views
0 votes
0 answers

How to extract and access data from JSON with PHP?

This is intended to be a general ...READ MORE

Jul 22 in PHP by narikkadan
• 37,660 points
157 views
0 votes
0 answers

When to use Final in PHP?

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

Jul 24 in PHP by Kithuzzz
• 20,660 points
62 views
0 votes
0 answers

I can not access phpMyAdmin on XAMPP

Windows 8 is where I've installed my ...READ MORE

Jul 22 in PHP by narikkadan
• 37,660 points
147 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 in PHP by Kithuzzz
• 20,660 points
93 views
0 votes
0 answers

DataTable using PHP

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

Jul 24 in PHP by Kithuzzz
• 20,660 points
43 views
0 votes
0 answers
0 votes
0 answers

PHP array printing using a loop

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

Jul 23 in PHP by Kithuzzz
• 20,660 points
59 views
0 votes
0 answers

Laravel PackageManifest.php: Undefined index: name

I recently updated the composer on my ...READ MORE

Jul 22 in PHP by narikkadan
• 37,660 points
86 views
0 votes
0 answers

convert strtotime to date time format in php

I have to use PHP to convert ...READ MORE

Jul 21 in PHP by narikkadan
• 37,660 points
102 views
0 votes
0 answers

How to upload image and save path to database?

I have a page with some displayed ...READ MORE

Jul 22 in PHP by Kithuzzz
• 20,660 points
53 views
0 votes
0 answers

PHP array mapping

Is there a cleaner way than foreach to get ...READ MORE

Jul 22 in PHP by narikkadan
• 37,660 points
48 views
0 votes
0 answers

Artisan, creating tables in database

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

Jul 22 in PHP by Kithuzzz
• 20,660 points
41 views
0 votes
0 answers

Remove a cookie

I try to erase cookies whenever I ...READ MORE

Jul 21 in PHP by narikkadan
• 37,660 points
58 views
0 votes
0 answers

The basics of php routing

I'm seeking for a how-to guide or ...READ MORE

Jul 21 in PHP by narikkadan
• 37,660 points
56 views
0 votes
0 answers

phpMyAdmin: secret passphrase?

Every time I go into phpMyAdmin using ...READ MORE

Jul 21 in PHP by narikkadan
• 37,660 points
46 views
0 votes
1 answer

How to find the php.ini file from the command line?

Hello @kartik, You can get a full phpinfo() using : php ...READ MORE

May 19, 2020 in PHP by Niroj
• 82,800 points
33,999 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 in PHP by narikkadan
• 37,660 points
852 views
0 votes
0 answers

MySQL error - #1932 - Table 'phpmyadmin.pma user config' doesn't exist in engine

I am working on creating a database ...READ MORE

Jun 23 in PHP by narikkadan
• 37,660 points
918 views
0 votes
0 answers

Add Bootstrap Table With Sorting, Searching and Paging into my PHP function

I have an issue adding  bootstrap Table ...READ MORE

Jun 27 in PHP by narikkadan
• 37,660 points
732 views
0 votes
0 answers

PHPMailer SMTP ERROR: Failed to connect to server

This Code: <?php include("class.phpmailer.php"); include("class.smtp.php"); $mail = new PHPMailer(); $mail->IsSMTP(); // ...READ MORE

Jun 27 in PHP by narikkadan
• 37,660 points
586 views
0 votes
0 answers

Uploading multiple image files to php mysql gallery

I am close to 65% close to ...READ MORE

Jun 27 in PHP by narikkadan
• 37,660 points
550 views
0 votes
0 answers

PHPMyAdmin Default login password

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

Jun 25 in PHP by narikkadan
• 37,660 points
618 views
0 votes
0 answers

How to retrieve data from multiple tables using a PHP form?

I want to retrieve data from multiple ...READ MORE

Jun 25 in PHP by narikkadan
• 37,660 points
598 views
0 votes
0 answers

How to set php executable path php.validate.executablePath in vscode when php is set inside docker container?

I have a development environment based on ...READ MORE

Jun 18 in PHP by narikkadan
• 37,660 points
892 views
0 votes
0 answers

PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP

I am working on creating an application ...READ MORE

Jun 24 in PHP by narikkadan
• 37,660 points
559 views
0 votes
0 answers

PHP Create and Save a txt file to root directory

I want to create and save a file ...READ MORE

Jun 20 in PHP by narikkadan
• 37,660 points
665 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 in PHP by Kichu
• 19,040 points
1,235 views
0 votes
0 answers

PHP Composer update "cannot allocate memory" error (using Laravel 4)

I'm on Linode 1G RAM basic plan. ...READ MORE

Jun 27 in PHP by narikkadan
• 37,660 points
305 views
0 votes
0 answers

How to retrieve images from MySQL database and display in an html tag

I created a table using the  BLOB column ...READ MORE

Jun 19 in PHP by narikkadan
• 37,660 points
668 views
0 votes
0 answers

How to pass a PHP variable using the URL

I need to pass some PHP variables ...READ MORE

Jun 19 in PHP by narikkadan
• 37,660 points
621 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 in PHP by Kithuzzz
• 20,660 points
533 views
0 votes
0 answers

NotFoundHttpException in RouteCollection.php line 161: in laravel 5

My CollectionController looks like this . <?php namespace App\Http\Controllers; use ...READ MORE

Jun 24 in PHP by narikkadan
• 37,660 points
368 views
0 votes
0 answers

How to enable PHP's openssl extension to install Composer?

I was trying to install Laravel in ...READ MORE

Jun 19 in PHP by narikkadan
• 37,660 points
576 views