Trending questions in PHP

0 votes
0 answers

Fatal error: Call to undefined function base_url() in C:\wamp\www\Test-CI\application\views\layout.php on line 5

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

May 5, 2022 in PHP by Kichu
• 19,040 points
2,401 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,648 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,366 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,315 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,450 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,249 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,334 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,278 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,844 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,193 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
651 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,264 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,696 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,952 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,095 views
0 votes
0 answers

Implode array values?

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

Jun 27, 2022 in PHP by narikkadan
• 86,360 points
579 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,272 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,682 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,402 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
1,931 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,823 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
941 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,424 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,581 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,008 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,105 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,232 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,128 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,161 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
873 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,158 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,579 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,258 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,532 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
949 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
937 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 3,735 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
775 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
765 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,048 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
751 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,611 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
762 views
0 votes
0 answers

php create object without class

How can I create an object in ...READ MORE

Jun 20, 2022 in PHP by narikkadan
• 86,360 points
899 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
• 86,360 points
716 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
974 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,197 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
675 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
718 views
0 votes
0 answers

How can I remove a package from Laravel using PHP Composer?

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

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