Trending questions in PHP

0 votes
0 answers

How to validate an Email in PHP?

How can I validate the input value ...READ MORE

Jun 16, 2022 in PHP by narikkadan
• 63,600 points
439 views
0 votes
0 answers

Creating default object from empty value in PHP?

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

Jun 10, 2022 in PHP by narikkadan
• 63,600 points
690 views
0 votes
0 answers

Dynamically generating a QR code with PHP

I want to generate QR codes on ...READ MORE

Jun 17, 2022 in PHP by narikkadan
• 63,600 points
385 views
0 votes
0 answers

How can I store and retrieve images from a MySQL database using PHP?

How can I insert an image in ...READ MORE

Jun 14, 2022 in PHP by narikkadan
• 63,600 points
505 views
0 votes
0 answers

php extension mcrypt must be loaded

When I tried to install Magento on ...READ MORE

Jun 16, 2022 in PHP by narikkadan
• 63,600 points
417 views
0 votes
0 answers

Encrypt and Decrypt md5

I am using code $enrypt=md5($pass) and inserting ...READ MORE

Jun 9, 2022 in PHP by Kichu
• 19,040 points
715 views
0 votes
0 answers

How to create a JSON object

I want to create a JSON object ...READ MORE

Jun 16, 2022 in PHP by narikkadan
• 63,600 points
411 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,600 points
535 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,040 points
910 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,600 points
396 views
0 votes
0 answers

Parameter must be an array or an object that implements Countable in phpmyadmin

I am getting this error message When ...READ MORE

Jun 11, 2022 in PHP by narikkadan
• 63,600 points
611 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,040 points
953 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,040 points
1,101 views
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,600 points
582 views
0 votes
0 answers

Php function returning associate array

How can I make a function return ...READ MORE

Jun 17, 2022 in PHP by narikkadan
• 63,600 points
324 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,600 points
2,094 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,040 points
2,154 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,600 points
580 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,040 points
664 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,600 points
526 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,600 points
442 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,040 points
655 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,600 points
560 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,600 points
341 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,600 points
502 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,040 points
710 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
934 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,600 points
435 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,600 points
412 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,600 points
367 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,040 points
1,091 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,600 points
392 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,040 points
654 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,600 points
433 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,600 points
472 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,600 points
423 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,600 points
313 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,587 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,600 points
367 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,600 points
405 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,040 points
917 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,600 points
440 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,600 points
427 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,040 points
785 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,040 points
543 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,600 points
353 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,040 points
743 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,040 points
733 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,040 points
427 views