Trending questions in PHP

0 votes
0 answers

indexOf and lastIndexOf in PHP?

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

Jun 27 in PHP by narikkadan
• 37,660 points
158 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 in PHP by narikkadan
• 37,660 points
896 views
0 votes
0 answers

MySQL fetch assoc VS mysql fetch array

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

Jun 27 in PHP by narikkadan
• 37,660 points
147 views
0 votes
0 answers

PHP Simple Form Validation

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

Jun 26 in PHP by narikkadan
• 37,660 points
174 views
0 votes
0 answers

phpmailer error "Could not instantiate mail function"

I'm getting the error "Mailer Error: Could ...READ MORE

Jun 13 in PHP by narikkadan
• 37,660 points
726 views
0 votes
0 answers

Need XAMPP with PHP 5.4 version - windows

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

Jun 21 in PHP by narikkadan
• 37,660 points
380 views
0 votes
0 answers

Localhost giving an error "ERR_NAME_NOT_RESOLVED "

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

Jun 27 in PHP by narikkadan
• 37,660 points
114 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 in PHP by Kithuzzz
• 20,660 points
376 views
0 votes
0 answers

"SMTP Error: Could not authenticate" in PHPMailer

I want to send emails in Gmail ...READ MORE

May 7 in PHP by narikkadan
• 37,660 points
2,307 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 in PHP by Kithuzzz
• 20,660 points
361 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 in PHP by narikkadan
• 37,660 points
92 views
0 votes
0 answers

Implode array values?

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

Jun 27 in PHP by narikkadan
• 37,660 points
74 views
0 votes
0 answers

XXHash for PHP (without module/extension)

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

Jun 26 in PHP by narikkadan
• 37,660 points
107 views
0 votes
0 answers

Generate Controller and Model

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

Jun 27 in PHP by narikkadan
• 37,660 points
29 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 in PHP by narikkadan
• 37,660 points
308 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 in PHP by narikkadan
• 37,660 points
76 views
0 votes
0 answers

Hashing a string in php

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

Jun 27 in PHP by narikkadan
• 37,660 points
37 views
0 votes
0 answers

PHP sleep delay

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

Jun 26 in PHP by narikkadan
• 37,660 points
74 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 in PHP by narikkadan
• 37,660 points
207 views
0 votes
0 answers

Multi-line strings in PHP

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

Jun 26 in PHP by narikkadan
• 37,660 points
70 views
0 votes
0 answers

highlight the current page in menu in php

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

Jun 23 in PHP by narikkadan
• 37,660 points
203 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 in PHP by narikkadan
• 37,660 points
366 views
0 votes
0 answers

login system via on localhost not working

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

Jun 20 in PHP by Kithuzzz
• 20,660 points
289 views
0 votes
0 answers

Read a plain text file with php

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

Jun 26 in PHP by narikkadan
• 37,660 points
60 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 in PHP by narikkadan
• 37,660 points
106 views
0 votes
0 answers

Login using PHP and JavaScript from SQL database

I have developed a drop-down login panel using ...READ MORE

Jun 11 in PHP by narikkadan
• 37,660 points
702 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 in PHP by narikkadan
• 37,660 points
49 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 in PHP by narikkadan
• 37,660 points
44 views
0 votes
0 answers

PHP generate file for download then redirect

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

Jun 20 in PHP by narikkadan
• 37,660 points
266 views
0 votes
0 answers
0 votes
0 answers

How are echo and print different in PHP?

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

Jun 26 in PHP by narikkadan
• 37,660 points
35 views
0 votes
0 answers

Passing variable from JS to PHP within the same page

I know that PHP is a server-side ...READ MORE

Jun 18 in PHP by narikkadan
• 37,660 points
384 views
0 votes
0 answers

How to connect MySQL db using new XAMPP

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

Jun 26 in PHP by narikkadan
• 37,660 points
28 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 in PHP by narikkadan
• 37,660 points
111 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 in PHP by narikkadan
• 37,660 points
64 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 in PHP by narikkadan
• 37,660 points
63 views
0 votes
0 answers

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

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

Jun 25 in PHP by narikkadan
• 37,660 points
57 views
0 votes
0 answers

PHP Unset Array value effect on other indexes

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

Jun 25 in PHP by narikkadan
• 37,660 points
58 views
0 votes
0 answers

Completely removing phpMyAdmin

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

Jun 25 in PHP by narikkadan
• 37,660 points
55 views
0 votes
0 answers

How to use __dir__?

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

Jun 25 in PHP by narikkadan
• 37,660 points
43 views
0 votes
0 answers

Insert current date in datetime format mySQL

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

Jun 25 in PHP by narikkadan
• 37,660 points
26 views
0 votes
0 answers

PHP page redirect

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

Jun 23 in PHP by narikkadan
• 37,660 points
114 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 in PHP by narikkadan
• 37,660 points
329 views
0 votes
0 answers

Get URL query string parameters

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

Jun 24 in PHP by narikkadan
• 37,660 points
66 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 in PHP by narikkadan
• 37,660 points
64 views
0 votes
0 answers

Remove Image background with php and save transparent png

I am working on functionality that removes the ...READ MORE

May 27 in PHP by Kichu
• 19,040 points
1,270 views
0 votes
0 answers

Create PDF file using PHP

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

Jun 24 in PHP by narikkadan
• 37,660 points
51 views
0 votes
0 answers

PHP: implode() Invalid arguments passed

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

Jun 13 in PHP by narikkadan
• 37,660 points
518 views
0 votes
0 answers

Show a number to two decimal places

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

Jun 24 in PHP by narikkadan
• 37,660 points
38 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 in PHP by narikkadan
• 37,660 points
37 views