Latest questions in PHP

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
• 86,360 points
596 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
820 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
822 views
0 votes
0 answers

How to use __dir__?

I want to use __dir__. I don't ...READ MORE

Jun 25, 2022 in PHP by narikkadan
• 86,360 points
566 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, 2022 in PHP by narikkadan
• 86,360 points
2,547 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,347 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
788 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
776 views
0 votes
0 answers

PHPMyAdmin Default login password

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

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

Sending email with PHP from an SMTP server

I get an error: SMTP server response: 530 ...READ MORE

Jun 25, 2022 in PHP by narikkadan
• 86,360 points
803 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
809 views
0 votes
0 answers

mysql not working with php

 I'm using Apache2, php5, and MySQL. Every time I try ...READ MORE

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

PHP Connection failed: SQLSTATE[HY000] [2002] Connection refused

I am trying to connect MySQL Database ...READ MORE

Jun 24, 2022 in PHP by narikkadan
• 86,360 points
3,753 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,414 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
• 86,360 points
1,824 views
0 votes
0 answers

Get URL query string parameters

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

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

Show a number to two decimal places

What's the correct way to round a ...READ MORE

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

Create PDF file using PHP

I want to create a PDF file ...READ MORE

Jun 24, 2022 in PHP by narikkadan
• 86,360 points
661 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,093 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
989 views
0 votes
0 answers

Creating a config file in PHP

I am working on creating config file ...READ MORE

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

What is the best IDE for PHP?

I use Notepad++ for code editing, I need an ...READ MORE

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

Showing all errors and warnings

The following script is generating a warning ...READ MORE

Jun 23, 2022 in PHP by narikkadan
• 86,360 points
829 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, 2022 in PHP by narikkadan
• 86,360 points
3,004 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,512 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,157 views
0 votes
0 answers

Why PHP variables start with a $ sign symbol?

Why should we write $var_name = value; ...READ MORE

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

MySQL mysql_num_rows();

The variable: "$num_rows" is not even being ...READ MORE

Jun 23, 2022 in PHP by narikkadan
• 86,360 points
718 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
• 86,360 points
1,698 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,313 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,189 views
0 votes
0 answers

ErrorDocument 404 /404.php is not working in .htaccess file in PHP

This is the Content of my .htaccess file is: ErrorDocument ...READ MORE

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

Filter array by its keys using an array of allowed keys

The callback function in array_filter() only passes in the ...READ MORE

Jun 20, 2022 in PHP by narikkadan
• 86,360 points
581 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
• 86,360 points
2,237 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
935 views
0 votes
0 answers

How are session variables accessed in PHP?

How does PHP or any other language ...READ MORE

Jun 20, 2022 in PHP by narikkadan
• 86,360 points
545 views
0 votes
0 answers

PHP password validation

I made a registration validation in PHP. ...READ MORE

Jun 20, 2022 in PHP by narikkadan
• 86,360 points
11,997 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,224 views
0 votes
0 answers

Simplest way to profile a PHP script

How can I profile a PHP script?  I tried the microtime function: then ...READ MORE

Jun 20, 2022 in PHP by narikkadan
• 86,360 points
685 views
0 votes
0 answers

How to write into a file in PHP?

I have this script on one free ...READ MORE

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

How to redirect a page using onclick event in php?

I tried this, but it didn't work: <input ...READ MORE

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

What is autoload in php?

What is autoload in PHP? READ MORE

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

Convert one date format into another in PHP

How can I convert one date format ...READ MORE

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

How to check whether an array is empty using PHP?

I have an array named players, what ...READ MORE

Jun 20, 2022 in PHP by Kithuzzz
• 38,000 points
716 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,199 views
0 votes
0 answers

Laravel 5 – Clear Cache in Shared Hosting Server

php artisan cache:clear Is there any workaround to ...READ MORE

Jun 20, 2022 in PHP by Kithuzzz
• 38,000 points
770 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, 2022 in PHP by Kithuzzz
• 38,000 points
4,384 views
0 votes
0 answers

strlen() php function giving the wrong length of unicode characters

I want to get the length of ...READ MORE

Jun 20, 2022 in PHP by Kithuzzz
• 38,000 points
693 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,808 views