Trending questions in PHP

0 votes
0 answers

local host and port number in Server variable

I want to figure out getting the port ...READ MORE

Jun 11, 2022 in PHP by narikkadan
• 63,420 points
416 views
0 votes
0 answers

PHP "php://input" vs $_POST

I want to know what is the ...READ MORE

Jun 9, 2022 in PHP by Kichu
• 19,050 points
495 views
0 votes
0 answers

Where are $_SESSION variables stored?

Are $_SESSION variables stored on the client ...READ MORE

Jun 16, 2022 in PHP by narikkadan
• 63,420 points
194 views
0 votes
0 answers

What is .htaccess file?

 I want to know more about the .htaccess ...READ MORE

Jun 16, 2022 in PHP by narikkadan
• 63,420 points
188 views
0 votes
0 answers

URL rewriting with PHP

I have this URL: url.com/picture.php?id=51 And I want the ...READ MORE

Jun 13, 2022 in PHP by narikkadan
• 63,420 points
309 views
0 votes
0 answers

PHP: Split string

How do I split a string by ...READ MORE

Jun 12, 2022 in PHP by narikkadan
• 63,420 points
337 views
0 votes
0 answers

Undefined index error PHP

I'm getting this error: Notice: Undefined index: productid ...READ MORE

Jun 11, 2022 in PHP by narikkadan
• 63,420 points
379 views
0 votes
0 answers

Can anyone confirm that phpMyAdmin AllowNoPassword works with MySQL databases?

I have a version of phpMyAdmin located ...READ MORE

Jun 3, 2022 in PHP by Kichu
• 19,050 points
717 views
0 votes
0 answers

Changing upload_max_filesize on PHP

When I run this code: <?php ini_set('upload_max_filesize', '10M'); echo ini_get('upload_max_filesize'), ", ...READ MORE

Jun 14, 2022 in PHP by narikkadan
• 63,420 points
242 views
0 votes
0 answers

Check if file exists in php

I have this code: if (!(file_exists(http://mysite.com/images/thumbnail_1286954822.jpg))) { ...READ MORE

Jun 4, 2022 in PHP by Kichu
• 19,050 points
666 views
0 votes
0 answers

Merge PDF files with PHP

Is it possible to merge multiple pdf ...READ MORE

May 27, 2022 in PHP by Kichu
• 19,050 points
1,014 views
0 votes
0 answers

How to add elements to an empty array in PHP?

I define an array in PHP : $cart ...READ MORE

Jun 3, 2022 in PHP by Kichu
• 19,050 points
707 views
0 votes
0 answers

Static variables in PHP

Can someone please explain to me what ...READ MORE

Jun 12, 2022 in PHP by narikkadan
• 63,420 points
310 views
0 votes
0 answers

What is the difference between Sessions and Cookies in PHP?

What is the distinction between Sessions and Cookies ...READ MORE

Jun 13, 2022 in PHP by narikkadan
• 63,420 points
265 views
0 votes
0 answers

Whats the point of running Laravel with the command 'php artisan serve'?

Why do we need to run a ...READ MORE

Jun 7, 2022 in PHP by Kichu
• 19,050 points
518 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
• 63,420 points
1,853 views
0 votes
0 answers

PHP multidimensional array search by value

I want to search for the uid ...READ MORE

May 30, 2022 in PHP by Kichu
• 19,050 points
849 views
0 votes
0 answers

How to use Unlink() function

I tried using the PHP unlink() function to ...READ MORE

Jun 13, 2022 in PHP by narikkadan
• 63,420 points
238 views
0 votes
0 answers

PHP - If variable is not empty, echo some html code

I want to display some HTML code ...READ MORE

Jun 4, 2022 in PHP by Kichu
• 19,050 points
622 views
0 votes
0 answers

How to write a PHP ternary operator

How can I write a PHP ternary operator ...READ MORE

Jun 14, 2022 in PHP by narikkadan
• 63,420 points
193 views
0 votes
0 answers

Difference between require, include, require_once and include_once?

In PHP: When should I use require vs. include? When should I ...READ MORE

Jun 14, 2022 in PHP by narikkadan
• 63,420 points
184 views
0 votes
0 answers

What does the variable $this mean in PHP?

Can someone please explain how the variable ...READ MORE

Jun 11, 2022 in PHP by narikkadan
• 63,420 points
310 views
0 votes
0 answers

Editing image colors in PHP - color exchange

I am trying to convert all colors ...READ MORE

Jun 12, 2022 in PHP by narikkadan
• 63,420 points
257 views
0 votes
0 answers

How to echo or print an array in PHP?

I have this array: Array ( [data] => ...READ MORE

Jun 13, 2022 in PHP by narikkadan
• 63,420 points
207 views
0 votes
0 answers

PHP Fibonacci Sequence

This PHP method should print the Fibonacci sequence up ...READ MORE

Jun 12, 2022 in PHP by narikkadan
• 63,420 points
233 views
0 votes
0 answers

How do I use PHP to get the current year?

I want to put a copyright notice ...READ MORE

Jun 9, 2022 in PHP by Kichu
• 19,050 points
350 views
0 votes
0 answers

Format die(); Message in PHP

Is there a way to style the ...READ MORE

Jun 10, 2022 in PHP by narikkadan
• 63,420 points
294 views
0 votes
0 answers

How to use PHP htmlentities()?

 I currently use htmlentities() to filter data coming from ...READ MORE

Jun 10, 2022 in PHP by narikkadan
• 63,420 points
275 views
0 votes
0 answers

Can I use PHP reserved names for my functions and classes?

I wanted to create a function called ...READ MORE

Jun 12, 2022 in PHP by narikkadan
• 63,420 points
186 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,050 points
624 views
0 votes
0 answers

PHP max_input_vars

I'm getting a max_input_vars error message. I'm ...READ MORE

Jun 11, 2022 in PHP by narikkadan
• 63,420 points
219 views
0 votes
0 answers

What is encapsulation with simple example in php?

What is encapsulation with simple example in ...READ MORE

Jun 12, 2022 in PHP by narikkadan
• 63,420 points
162 views
0 votes
0 answers

How do I get class name in PHP?

public class MyClass { } In Java, we can ...READ MORE

Jun 11, 2022 in PHP by narikkadan
• 63,420 points
201 views
0 votes
0 answers

Methods to remove specific characters from string?

I am trying to remove the brackets ...READ MORE

Jun 11, 2022 in PHP by narikkadan
• 63,420 points
183 views
0 votes
0 answers

How to add php repositories to debian kali linux for php files?

I added: packages.sury.org/php through the script, I got on ...READ MORE

Jun 1, 2022 in PHP by Kichu
• 19,050 points
575 views
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,050 points
1,742 views
0 votes
0 answers

How to use api.dpd.co.uk api integration with php

I have been assigned the task of ...READ MORE

Jun 2, 2022 in PHP by Kichu
• 19,050 points
545 views
0 votes
0 answers

How to check if a defined constant exists in PHP?

I am using fuelphp a PHP framework and I ...READ MORE

May 30, 2022 in PHP by Kichu
• 19,050 points
664 views
0 votes
0 answers

Delete a database in phpMyAdmin

How to delete a database in phpMyAdmin? READ MORE

Jun 7, 2022 in PHP by Kichu
• 19,050 points
325 views
0 votes
0 answers

PHP - how to create a newline character?

I am working on creating a newline character: echo $clientid; echo ...READ MORE

Jun 10, 2022 in PHP by narikkadan
• 63,420 points
179 views
0 votes
0 answers

In php, how do I load txt file as a string?

I want to load a file as ...READ MORE

Jun 7, 2022 in PHP by Kichu
• 19,050 points
312 views
0 votes
0 answers

Creating a search form in PHP [duplicate]

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

Jun 9, 2022 in PHP by Kichu
• 19,050 points
221 views
0 votes
0 answers

PHP switch statement returns invalid output

The PHP switch statement returns invalid output : $cond ...READ MORE

Jun 9, 2022 in PHP by Kichu
• 19,050 points
216 views
0 votes
0 answers

How to convert rupee as paise with php?

What is the correct way to display ...READ MORE

Jun 4, 2022 in PHP by Kichu
• 19,050 points
405 views
0 votes
0 answers

PHP: Inserting Values from the Form into MySQL

I created a user table in MySQL from the ...READ MORE

Jun 7, 2022 in PHP by Kichu
• 19,050 points
280 views
0 votes
0 answers

Strtotime() doesn't work with dd/mm/YYYY format

The strtotime() function user manual doesn't give ...READ MORE

May 28, 2022 in PHP by Kichu
• 19,050 points
704 views
0 votes
0 answers

Split string into 2 pieces by length using PHP

I want to split my long string ...READ MORE

Jun 1, 2022 in PHP by Kichu
• 19,050 points
500 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,880 points
27,330 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,050 points
1,257 views