Most voted questions in PHP

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,000 points
716 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,000 points
728 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,000 points
864 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,000 points
966 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,000 points
484 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,000 points
845 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, 2022 in PHP by Kithuzzz
• 38,000 points
864 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, 2022 in PHP by Kithuzzz
• 38,000 points
878 views
0 votes
0 answers

I can not access phpMyAdmin on XAMPP

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

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

PHP array mapping

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

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

Decode base64 string - php

Is there any way to decode this ...READ MORE

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

How to filter data from a MySQL Database Table with PHP

I'm attempting to code a search box ...READ MORE

Jul 22, 2022 in PHP by narikkadan
• 63,600 points
6,794 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,539 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, 2022 in PHP by narikkadan
• 63,600 points
935 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, 2022 in PHP by narikkadan
• 63,600 points
833 views
0 votes
0 answers

PHP - Get key name of array value

I have an array of the following: function ...READ MORE

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

Laravel PHP Command Not Found

I successfully installed Laravel using Composer, but ...READ MORE

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

Laravel PackageManifest.php: Undefined index: name

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

Jul 22, 2022 in PHP by narikkadan
• 63,600 points
707 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, 2022 in PHP by narikkadan
• 63,600 points
4,693 views
0 votes
0 answers

Remove a cookie

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

Jul 21, 2022 in PHP by narikkadan
• 63,600 points
603 views
0 votes
0 answers

convert strtotime to date time format in php

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

Jul 21, 2022 in PHP by narikkadan
• 63,600 points
821 views
0 votes
0 answers

The basics of php routing

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

Jul 21, 2022 in PHP by narikkadan
• 63,600 points
621 views
0 votes
0 answers

Php artisan make:auth command is not defined

I ran this command in Laravel 5.2 but ...READ MORE

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

phpMyAdmin: secret passphrase?

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

Jul 21, 2022 in PHP by narikkadan
• 63,600 points
494 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, 2022 in PHP by narikkadan
• 63,600 points
1,043 views
0 votes
0 answers

indexOf and lastIndexOf in PHP?

In Java, we can use indexOf and ...READ MORE

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

PHP json encode - Malformed UTF-8 characters, possibly incorrectly encoded

I am using json_encode($data) on an array ...READ MORE

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

Generate Controller and Model

How can I generate Controller and Model ...READ MORE

Jun 27, 2022 in PHP by narikkadan
• 63,600 points
357 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,641 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, 2022 in PHP by narikkadan
• 63,600 points
2,002 views
0 votes
0 answers

php convert date to mktime function

I posted a date input $_POST['date'] with format 2013/11/22 and time $_POST['time'] with ...READ MORE

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

Implode array values?

My array: Array ( [0] => ...READ MORE

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

Localhost giving an error "ERR_NAME_NOT_RESOLVED "

I created a folder in the "www" ...READ MORE

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

Uploading multiple image files to php mysql gallery

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

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

Hashing a string in php

This is the hashed output "bWNgAQW2FLc" I ...READ MORE

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

How to download file from database/folder using php

I want to know how to create ...READ MORE

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

MySQL fetch assoc VS mysql fetch array

These are the commonly used methods to ...READ MORE

Jun 27, 2022 in PHP by narikkadan
• 63,600 points
944 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, 2022 in PHP by narikkadan
• 63,600 points
1,720 views
0 votes
0 answers

PHP sleep delay

I want to put a number of ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
525 views
0 votes
0 answers

XXHash for PHP (without module/extension)

I want to create a plugin for ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
621 views
0 votes
0 answers

Read a plain text file with php

How do I read all the information ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
723 views
0 votes
0 answers

Multi-line strings in PHP

Consider: $xml = "l"; $xml = "vv"; echo $xml; This will ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
476 views
0 votes
0 answers

Difference between call by value and call by reference in php and also $$ means?

What is the difference between call by ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
490 views
0 votes
0 answers

How to connect MySQL db using new XAMPP

What is the best way to connect ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
328 views
0 votes
0 answers

PHP Simple Form Validation

I want a form validation like the following. Name: ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
1,018 views
0 votes
0 answers

How are echo and print different in PHP?

What is the Fundamental difference between these ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
407 views
0 votes
0 answers

What in layman's terms is a Recursive Function using PHP

Can someone please explain the recursive function ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
450 views
0 votes
0 answers

How Can I add HTML And CSS Into PDF

The HTML document I have renders perfectly fine ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
440 views
0 votes
0 answers

Why use $_SERVER['PHP_SELF'] instead of ""

In a form on a PHP page, ...READ MORE

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

Insert current date in datetime format mySQL

I am having an issue inserting date ...READ MORE

Jun 25, 2022 in PHP by narikkadan
• 63,600 points
624 views