Trending questions in PHP

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
• 86,360 points
1,817 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,581 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
2,538 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
• 86,360 points
1,670 views
0 votes
0 answers

Completely removing phpMyAdmin

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

Jun 25, 2022 in PHP by narikkadan
• 86,360 points
1,507 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
• 86,360 points
1,818 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
• 86,360 points
1,447 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
• 86,360 points
1,537 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
• 86,360 points
1,386 views
0 votes
0 answers

How to access function value in another function in PHP Classes

How can I return a variable value ...READ MORE

Jun 10, 2022 in PHP by narikkadan
• 86,360 points
1,464 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
• 86,360 points
1,974 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
• 86,360 points
802 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
• 86,360 points
1,297 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
• 86,360 points
1,944 views
0 votes
0 answers

mysqli_fetch_array while loop columns

I have this code to iterate over ...READ MORE

Jun 4, 2022 in PHP by Kichu
• 19,040 points
1,857 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
2,108 views
0 votes
0 answers

Implode array values?

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

Jun 27, 2022 in PHP by narikkadan
• 86,360 points
724 views
0 votes
0 answers

Object of class mysqli_result could not be converted to string

Code: $result = mysqli_query($con, "SELECT classtype FROM learn_users ...READ MORE

May 15, 2022 in PHP by Kichu
• 19,040 points
2,133 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
• 86,360 points
1,574 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
• 86,360 points
1,403 views
0 votes
0 answers

How to open php files through localhost?

I am creating a student management program ...READ MORE

Jun 10, 2022 in PHP by narikkadan
• 86,360 points
1,868 views
0 votes
0 answers

How to calculate the difference between two dates using PHP?

I have two dates on the form: Start ...READ MORE

Jun 24, 2022 in PHP by narikkadan
• 86,360 points
1,267 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,954 views
0 votes
1 answer

How to get request string without GET arguments?

dsihhidsvhhdi READ MORE

Sep 18, 2023 in PHP by ijoddi

edited Mar 5 4,142 views
0 votes
0 answers

PHP Fatal error: Using $this when not in object context

I am working on a new WebApp without ...READ MORE

Jun 18, 2022 in PHP by narikkadan
• 86,360 points
1,433 views
0 votes
0 answers

How to base64 encode php in this format?

Can someone please guide me on how ...READ MORE

Jun 10, 2022 in PHP by narikkadan
• 86,360 points
1,765 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
• 86,360 points
1,583 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
• 86,360 points
1,357 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
• 86,360 points
1,055 views
0 votes
0 answers

PHP Notice: Undefined offset: 1 with array when reading data

I am getting this error : PHP Notice: ...READ MORE

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

Using Jquery Ajax to retrieve data from Mysql

list.php: A simple ajax code that I ...READ MORE

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

PHP page redirect

I am working on a function where ...READ MORE

Jun 23, 2022 in PHP by narikkadan
• 86,360 points
1,243 views
0 votes
0 answers

Encrypt and Decrypt md5

I am using code $enrypt=md5($pass) and inserting ...READ MORE

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

PHP - exit or return which is better?

Case I: <?php if ( $fileSize > 100 ) { ...READ MORE

Jun 23, 2022 in PHP by narikkadan
• 86,360 points
1,148 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
• 86,360 points
1,292 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
• 86,360 points
1,397 views
0 votes
0 answers

PHP is not recognized as an internal or external command in command prompt

I am getting this error when I ...READ MORE

May 7, 2022 in PHP by narikkadan
• 86,360 points
3,097 views
0 votes
0 answers

How to send email with SMTP in php

I need to send an email using SMTP. ...READ MORE

Jun 24, 2022 in PHP by narikkadan
• 86,360 points
1,098 views
0 votes
0 answers

PHP | define() vs. const

In PHP, there are two ways to ...READ MORE

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

PHP sleep delay

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

Jun 26, 2022 in PHP by narikkadan
• 86,360 points
913 views
0 votes
0 answers

php is a scripting language or server side language?

I read that the scripting languages run ...READ MORE

Jun 18, 2022 in PHP by narikkadan
• 86,360 points
1,244 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
• 86,360 points
944 views
0 votes
2 answers

Error:“Cannot Connect to Server - A network-related or instance-specific error”?

Hello, The "sql server error 40" is appears mostly ...READ MORE

Aug 18, 2020 in PHP by Fantazma
• 140 points
30,703 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
• 86,360 points
932 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
• 86,360 points
948 views
0 votes
0 answers

When to generate a new Application Key in Laravel?

As it automatically sets it for me ...READ MORE

Jun 25, 2022 in PHP by narikkadan
• 86,360 points
930 views
0 votes
0 answers

Remove all html tags from php string

I want to display the first 110 ...READ MORE

Jun 16, 2022 in PHP by narikkadan
• 86,360 points
1,165 views
0 votes
0 answers

PHP function to generate v4 UUID

I am working on a function that ...READ MORE

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

PHP Unset Array value effect on other indexes

I want to know how unset affects ...READ MORE

Jun 25, 2022 in PHP by narikkadan
• 86,360 points
925 views