Trending questions in PHP

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, 2022 in PHP by narikkadan
• 63,600 points
1,988 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
427 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
384 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
589 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, 2022 in PHP by narikkadan
• 63,600 points
1,877 views
0 votes
0 answers

Parse error: Syntax error, unexpected end of file in my PHP code

I am getting this error: Parse error: syntax ...READ MORE

Jun 10, 2022 in PHP by narikkadan
• 63,600 points
2,329 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
381 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
345 views
0 votes
0 answers

How to reverse an array in php WITHOUT using the array reverse method

I have an array called reverse array ...READ MORE

Jun 12, 2022 in PHP by narikkadan
• 63,600 points
2,218 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
533 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
388 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
416 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
366 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
402 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
446 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
363 views
0 votes
1 answer

How to store values from foreach loop into an array?

Hello @kartik, Declare the $items array outside the loop and ...READ MORE

Sep 1, 2020 in PHP by Niroj
• 82,840 points
30,078 views
0 votes
0 answers

Check if user is admin PHP

I have a users table with this ...READ MORE

Jun 13, 2022 in PHP by narikkadan
• 63,600 points
2,040 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, 2022 in PHP by narikkadan
• 63,600 points
1,523 views
0 votes
0 answers

PHP: implode() Invalid arguments passed

I am using Codeigniter and its validation ...READ MORE

Jun 13, 2022 in PHP by narikkadan
• 63,600 points
1,968 views
0 votes
1 answer

MySQL - UPDATE multiple rows with different values in one query

Hello @kartik You can use a CASE statement to handle ...READ MORE

Jun 1, 2020 in PHP by Niroj
• 82,840 points
33,857 views
0 votes
0 answers

login system via on localhost not working

I have a login system built and ...READ MORE

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

If isset $_POST

I have a form on one page ...READ MORE

May 28, 2022 in PHP by Kichu
• 19,040 points
2,502 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, 2022 in PHP by narikkadan
• 63,600 points
1,464 views
0 votes
0 answers

What are the main differences between PHPExcel and PhpSpreadsheet?

In project of PHPOffice there are two projects associated ...READ MORE

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

How to sum all column values in multi-dimensional array?

How can I add all the columnar ...READ MORE

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

Cannot access to localhost/xampp/index.php

When I type localhost in my browser ...READ MORE

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

How to create cron job using PHP?

 I want to create a cron job ...READ MORE

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

file_get_contents("php://input") or $HTTP_RAW_POST_DATA, which one is better to get the body of JSON request?

The file_get_contents("php://input") or $HTTP_RAW_POST_DATA - which one ...READ MORE

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

PHPMailer: SMTP Error: Could not connect to SMTP host

I am having trouble sending mail through ...READ MORE

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

Google Unicode Fonts not rendered properly in mpdf for PHP

I want to use Baloo2 Google Font ...READ MORE

Jun 9, 2022 in PHP by Kichu
• 19,040 points
1,743 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
978 views
0 votes
0 answers

how to make tiktok downloader without watermark php

I want to make a PHP downloader ...READ MORE

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

PHP - Notice: Undefined index

I wanted to do a registration form ...READ MORE

Jun 9, 2022 in PHP by Kichu
• 19,040 points
1,709 views
0 votes
0 answers

Completely removing phpMyAdmin

I installed Virtualmin and phpmyadmin separately using ...READ MORE

Jun 25, 2022 in PHP by narikkadan
• 63,600 points
1,013 views
+1 vote
1 answer

ERROR: Cannot add or update a child row: a foreign key constraint fails

Hello @kartik, You are getting this constraint check ...READ MORE

Aug 20, 2020 in PHP by Niroj
• 82,840 points
29,997 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
902 views
0 votes
0 answers

highlight the current page in menu in php

I wanted to make an active page ...READ MORE

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

How to locate the php.ini file (xampp)?

I am using xampp server for PHP ...READ MORE

Jun 9, 2022 in PHP by Kichu
• 19,040 points
1,625 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
782 views
0 votes
0 answers

PHP with MySQL 8.0+ error: The server requested authentication method unknown to the client

I'm running MySQL version 8 on PHP ...READ MORE

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

Need XAMPP with PHP 5.4 version - windows

Can someone please share with me any ...READ MORE

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

PHP generate file for download then redirect

I have a PHP app that creates ...READ MORE

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

Why is PHP session_destroy() not working?

Why is session_destroy() not working? Is there any other way ...READ MORE

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

How can i send an image map area id to a php file?

This is my image map: <map name="frozen"> ...READ MORE

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

PHP MySQL autocomplete

I have an auto-complete search field in ...READ MORE

Jun 18, 2022 in PHP by narikkadan
• 63,600 points
1,097 views
0 votes
1 answer

Error:PHP Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

Hello @kartik, 8388608 bytes is 8M, the default ...READ MORE

Sep 17, 2020 in PHP by Niroj
• 82,840 points
28,586 views