Trending questions in PHP

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,388 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,210 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,654 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,110 views
0 votes
0 answers

PHP page redirect

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

Jun 23, 2022 in PHP by narikkadan
• 63,600 points
870 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
935 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
• 63,600 points
1,385 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
• 63,600 points
693 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
• 63,600 points
1,042 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
• 63,600 points
752 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
• 63,600 points
850 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
• 63,600 points
717 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,358 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
• 63,600 points
573 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
• 63,600 points
586 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
• 63,600 points
712 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
• 63,600 points
1,260 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
• 63,600 points
606 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
• 63,600 points
602 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
• 63,600 points
641 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,490 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
• 63,600 points
627 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
• 63,600 points
493 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
• 63,600 points
564 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
• 63,600 points
650 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
• 63,600 points
563 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
• 63,600 points
648 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
• 63,600 points
551 views
0 votes
0 answers

PHP sleep delay

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

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
494 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
• 63,600 points
834 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
• 63,600 points
706 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, 2022 in PHP by narikkadan
• 63,600 points
467 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
• 63,600 points
511 views
0 votes
0 answers

Implode array values?

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

Jun 27, 2022 in PHP by narikkadan
• 63,600 points
415 views
0 votes
0 answers

Multi-line strings in PHP

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

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
452 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,393 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
• 63,600 points
573 views
0 votes
0 answers

Hashing a string in php

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

Jun 27, 2022 in PHP by narikkadan
• 63,600 points
399 views
0 votes
0 answers

Find PHP version on windows command line

I wanted to know the version of ...READ MORE

Jun 14, 2022 in PHP by narikkadan
• 63,600 points
955 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, 2022 in PHP by narikkadan
• 63,600 points
420 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, 2022 in PHP by narikkadan
• 63,600 points
403 views
0 votes
0 answers

Generate Controller and Model

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

Jun 27, 2022 in PHP by narikkadan
• 63,600 points
335 views
0 votes
0 answers

Automatic conversion from int to string in PHP

In PHP the variable of type integer ...READ MORE

Jun 12, 2022 in PHP by narikkadan
• 63,600 points
993 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
• 63,600 points
515 views
0 votes
0 answers

How are echo and print different in PHP?

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

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
376 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
• 63,600 points
1,054 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
• 63,600 points
437 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
• 63,600 points
779 views
0 votes
0 answers

php index of item

I have this array: $fruit = array('apple','orange','grape'); How can ...READ MORE

May 29, 2022 in PHP by Kichu
• 19,040 points
1,550 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
557 views