Most viewed questions in PHP

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
• 86,360 points
583 views
0 votes
0 answers

Using session_name() in PHP - Cannot Access Data

When I use: session_name( 'fObj' ); session_start(); _SESSION['foo'] = 'bar'; Subsequently ...READ MORE

Jun 20, 2022 in PHP by Kithuzzz
• 38,000 points
582 views
0 votes
0 answers

What is the difference between POST and GET in HTML/PHP

I don't seem to understand what GET ...READ MORE

Jun 17, 2022 in PHP by narikkadan
• 86,360 points
582 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
572 views
0 votes
0 answers

How can I make a PHP counter?

I did this in Javascript but when ...READ MORE

Jun 7, 2022 in PHP by Kichu
• 19,040 points
571 views
0 votes
0 answers

When to use Final in PHP?

Although I am aware of what a ...READ MORE

Jul 24, 2022 in PHP by Kithuzzz
• 38,000 points
570 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
• 86,360 points
569 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
• 86,360 points
569 views
0 votes
0 answers

PHP NumberFormatter.format() shows strange output

I have this code in a PHP function: $fmt ...READ MORE

Jun 1, 2022 in PHP by Kichu
• 19,040 points
564 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, 2022 in PHP by narikkadan
• 86,360 points
557 views
0 votes
0 answers

How to use __dir__?

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

Jun 25, 2022 in PHP by narikkadan
• 86,360 points
552 views
0 votes
0 answers

Filter array by its keys using an array of allowed keys

The callback function in array_filter() only passes in the ...READ MORE

Jun 20, 2022 in PHP by narikkadan
• 86,360 points
551 views
0 votes
0 answers

Get user's current location

How can I utilize IP to determine ...READ MORE

Jul 29, 2022 in PHP by Kithuzzz
• 38,000 points
548 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
• 86,360 points
546 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
546 views
0 votes
0 answers

jQuery Ajax POST example with PHP

I want to send data from a ...READ MORE

Jul 25, 2022 in PHP by Kithuzzz
• 38,000 points
544 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
• 86,360 points
542 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
542 views
0 votes
0 answers

How are session variables accessed in PHP?

How does PHP or any other language ...READ MORE

Jun 20, 2022 in PHP by narikkadan
• 86,360 points
536 views
0 votes
0 answers

Static methods in PHP

I came to know about static methods ...READ MORE

Jun 19, 2022 in PHP by narikkadan
• 86,360 points
528 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
• 86,360 points
527 views
0 votes
0 answers

How to run php files on my computer?

How can I run a PHP file ...READ MORE

Jun 4, 2022 in PHP by Kichu
• 19,040 points
522 views
0 votes
0 answers

How to count same values are exists in my record

I have difficulty counting how many times ...READ MORE

Aug 1, 2022 in PHP by Kithuzzz
• 38,000 points
517 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
• 86,360 points
517 views
0 votes
0 answers

Using php extract function with numeric indexes

I needed to convert array values into variables ...READ MORE

May 30, 2022 in PHP by Kichu
• 19,040 points
517 views
0 votes
0 answers

How do I format time in php

I have a time returned by PHP ...READ MORE

Aug 1, 2022 in PHP by Kithuzzz
• 38,000 points
514 views
0 votes
0 answers

URL redirection in php for Opera Mini browser

I want to redirect URLs clicked in ...READ MORE

May 27, 2022 in PHP by Kichu
• 19,040 points
509 views
0 votes
0 answers

How to connect MySQL db using new XAMPP

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

Jun 26, 2022 in PHP by narikkadan
• 86,360 points
506 views
0 votes
0 answers

How do the PHP equality (== double equals) and identity (=== triple equals) comparison operators differ?

What is the difference between == and ===? How exactly does ...READ MORE

Jun 19, 2022 in PHP by narikkadan
• 86,360 points
503 views
0 votes
0 answers

PHP 5 disable strict standards error

I need to setup my PHP script ...READ MORE

Jul 30, 2022 in PHP by Kithuzzz
• 38,000 points
492 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
471 views
0 votes
0 answers

Why shouldn't I use mysql_* functions in PHP?

What are the technical reasons for why ...READ MORE

Jun 4, 2022 in PHP by Kichu
• 19,040 points
471 views
0 votes
0 answers

Convert one date format into another in PHP

How can I convert one date format ...READ MORE

Jun 20, 2022 in PHP by Kithuzzz
• 38,000 points
465 views
0 votes
0 answers

Escaping quotation marks in PHP

I am getting a parse error, and ...READ MORE

Jun 19, 2022 in PHP by narikkadan
• 86,360 points
464 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
463 views
0 votes
0 answers

$_REQUEST in PHP

This is my code: $message = ""; if($_REQUEST['msg'] == "new"){ ...READ MORE

May 30, 2022 in PHP by Kichu
• 19,040 points
388 views
0 votes
1 answer

How to configure PHP with the Apache Web Server?

To configure PHP with the Apache Web ...READ MORE

Dec 17, 2024 in PHP by Navya
360 views
0 votes
1 answer

What is the "RESTful" way of adding non-CRUD operations to a RESTful service?

In RESTful API design, accommodating operations beyond ...READ MORE

Dec 23, 2024 in PHP by Navya
308 views
0 votes
1 answer

How do I clear the server cache in asp.net?

Clearing Data from Cache Object (Application Cache) If ...READ MORE

Dec 17, 2024 in PHP by Navya
300 views
0 votes
1 answer

How to create WordPress themes?

Steps to Create a WordPress Theme Set Up ...READ MORE

Feb 24 in PHP by Kavya
294 views
0 votes
1 answer

Do i need to close connection of mongodb?

Yes, it's important to manage MongoDB connections ...READ MORE

Dec 31, 2024 in PHP by Navya
272 views
0 votes
1 answer

How to check enabled PHP extensions?

You can check the enabled PHP extensions ...READ MORE

Mar 11 in PHP by Sanvi
261 views
0 votes
1 answer

what is CURL ?

The cURL stands for ‘Client for URLs’, ...READ MORE

Mar 20 in PHP by Jyothi
238 views
0 votes
0 answers

Why Isn't the MongoDB Extension Loading in PHP Despite Following Installation Steps?

Can someone exlpain me with the code ...READ MORE

Mar 6 in PHP by Nidhi
• 16,260 points
233 views
0 votes
0 answers

create php live clock

How can I create a live clock ...READ MORE

May 30, 2022 in PHP by Kichu
• 19,040 points

edited Mar 4 195 views
0 votes
0 answers

PHP round to integer

I want to round the number and ...READ MORE

May 30, 2022 in PHP by Kichu
• 19,040 points

edited Mar 4 188 views
0 votes
0 answers

Warning: Undefined variable $userid in C:\Apache24\htdocs\MIS\user\pages\user_change_password.php on line 158

I'm running a PHP script and continue ...READ MORE

Jul 9, 2021 in PHP by kirankumar

edited Mar 4 159 views
0 votes
0 answers

Warning: Undefined variable $userid5 in C:/Apache24/htdocs/MIS\user/pages/user_change_password.php on line 158

I'm running a PHP script and continue ...READ MORE

Jul 9, 2021 in PHP by kirankumar

edited Mar 4 150 views
0 votes
0 answers

wish to read Data stored in div

Dear All Data is dumped in div basically insert ...READ MORE

May 8, 2021 in PHP by Prajakta

edited Mar 4 135 views
0 votes
0 answers