Most voted questions in PHP

0 votes
0 answers

How to check if PHP array is associative or sequential?

Can someone please suggest to me an ...READ MORE

Jun 14, 2022 in PHP by narikkadan
• 86,360 points
916 views
0 votes
0 answers

What's the difference between :: (double colon) and -> (arrow) in PHP?

I know that there are two distinct ways ...READ MORE

Jun 14, 2022 in PHP by narikkadan
• 86,360 points
885 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
• 86,360 points
832 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
• 86,360 points
1,164 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
• 86,360 points
625 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
• 86,360 points
657 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
• 86,360 points
758 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
• 86,360 points
586 views
0 votes
0 answers

How to create cron job using PHP?

 I want to create a cron job ...READ MORE

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

PHP Array to JSON Array using json_encode();

I have encoded an Array I've made using ...READ MORE

Jun 13, 2022 in PHP by narikkadan
• 86,360 points
1,009 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
• 86,360 points
665 views
0 votes
0 answers

phpmailer error "Could not instantiate mail function"

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

Jun 13, 2022 in PHP by narikkadan
• 86,360 points
2,702 views
0 votes
0 answers

Multiple Image Upload PHP form with one input

I want to have multiple image upload forms ...READ MORE

Jun 13, 2022 in PHP by narikkadan
• 86,360 points
880 views
0 votes
0 answers

PHP: implode() Invalid arguments passed

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

Jun 13, 2022 in PHP by narikkadan
• 86,360 points
2,280 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
• 86,360 points
644 views
0 votes
0 answers

Check if user is admin PHP

I have a users table with this ...READ MORE

Jun 13, 2022 in PHP by narikkadan
• 86,360 points
2,520 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
• 86,360 points
561 views
0 votes
0 answers

Hot to display 😀😠as emoji to PHP

I stored emojis in my database and ...READ MORE

Jun 12, 2022 in PHP by narikkadan
• 86,360 points
939 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
• 86,360 points
715 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
• 86,360 points
1,281 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
• 86,360 points
740 views
0 votes
0 answers

How to reverse an array in php WITHOUT using the array reverse method

I have an array called reverse array ...READ MORE

Jun 12, 2022 in PHP by narikkadan
• 86,360 points
2,788 views
0 votes
0 answers

PHP: Split string

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

Jun 12, 2022 in PHP by narikkadan
• 86,360 points
718 views
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
• 86,360 points
1,752 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
• 86,360 points
618 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
• 86,360 points
489 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
• 86,360 points
566 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, 2022 in PHP by narikkadan
• 86,360 points
4,335 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
• 86,360 points
759 views
0 votes
0 answers

I can't enter to "localhost:8080/phpmyadmin"

When I tried to enter it returns ...READ MORE

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

Prevent nginx 504 Gateway timeout using PHP set_time_limit()

I am getting 504 timeout messages from ...READ MORE

Jun 11, 2022 in PHP by narikkadan
• 86,360 points
952 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
• 86,360 points
659 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
• 86,360 points
798 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
• 86,360 points
653 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
• 86,360 points
830 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
• 86,360 points
863 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, 2022 in PHP by narikkadan
• 86,360 points
2,565 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
• 86,360 points
1,655 views
0 votes
0 answers

How to change maximum viewable tables from 250 to anything in PhpMyadmin?

I wanted to increase my list of ...READ MORE

Jun 10, 2022 in PHP by narikkadan
• 86,360 points
1,208 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
• 86,360 points
471 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
• 86,360 points
1,341 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
• 86,360 points
620 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
• 86,360 points
1,643 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
• 86,360 points
640 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
943 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,040 points
623 views
0 votes
0 answers

PHP Unset Session Variable

I am working on creating a product ...READ MORE

Jun 9, 2022 in PHP by Kichu
• 19,040 points
1,334 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
970 views
0 votes
0 answers

PHP - Notice: Undefined index

I wanted to do a registration form ...READ MORE

Jun 9, 2022 in PHP by Kichu
• 19,040 points
2,005 views