Trending questions in PHP

0 votes
2 answers

Error:“Cannot Connect to Server - A network-related or instance-specific error”?

Hello, The "sql server error 40" is appears mostly ...READ MORE

Aug 18, 2020 in PHP by Fantazma
• 140 points
29,428 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,600 points
281 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
790 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,040 points
594 views
0 votes
0 answers

Show values from a MySQL database table inside a HTML table on a webpage

I am working on retrieving the values ...READ MORE

May 29, 2022 in PHP by Kichu
• 19,040 points
838 views
0 votes
0 answers

Create a Subdomain in godaddy hosting using PHP

Is there any easiest way to create ...READ MORE

Jun 3, 2022 in PHP by Kichu
• 19,040 points
626 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
365 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,040 points
434 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,600 points
292 views
0 votes
0 answers

Increase max_execution_time in PHP?

My server support post_max_size 192MB and max_execution_time 600 sec so when ...READ MORE

Jun 1, 2022 in PHP by Kichu
• 19,040 points
631 views
0 votes
0 answers

Is it possible to write strictly typed PHP code?

Is it possible to write code like ...READ MORE

Jun 6, 2022 in PHP by Kichu
• 19,040 points
400 views
0 votes
0 answers

PHP upload image

I have a config.php file that connects ...READ MORE

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

How to efficiently use try...catch blocks in PHP

I was using try..catch blocks in my ...READ MORE

Jun 1, 2022 in PHP by Kichu
• 19,040 points
626 views
0 votes
0 answers

How can I check if an array contains a specific value in php?

I have a PHP variable of the ...READ MORE

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

Php, wait 5 seconds before executing an action

I am working on a PHP script ...READ MORE

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

PHP, cURL, and HTTP POST example?

I needed t to send data like ...READ MORE

Jun 1, 2022 in PHP by Kichu
• 19,040 points
604 views
0 votes
0 answers

What's the use of ob_start() in php?

Is ob_start() used for output buffering so ...READ MORE

Jun 3, 2022 in PHP by Kichu
• 19,040 points
536 views
0 votes
0 answers

How to convert a string to an array in php

I want to convert a string into ...READ MORE

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

when to use index.php instead of index.html

I wanted to know when do I ...READ MORE

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

Simple PHP Pagination script

I have some data from the database ...READ MORE

Jun 1, 2022 in PHP by Kichu
• 19,040 points
562 views
0 votes
0 answers

Establishing PHP connection with localhost server?

I am having trouble connecting my PHP ...READ MORE

Jun 3, 2022 in PHP by Kichu
• 19,040 points
502 views
0 votes
0 answers

What Does 6k views mean and how can I format the number in PHP?

What does "6k views" mean and how ...READ MORE

Jun 2, 2022 in PHP by Kichu
• 19,040 points
528 views
0 votes
0 answers

How to pop an alert message box using PHP?

How to pop an alert message box ...READ MORE

Jun 3, 2022 in PHP by Kichu
• 19,040 points
484 views
0 votes
0 answers

How to convert an array to a string in PHP?

What can I do to get the ...READ MORE

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

What's quicker and better to determine if an array key exists in PHP?

$key = 'jim'; // example 1 if (isset($array[$key])) { ...READ MORE

Jun 1, 2022 in PHP by Kichu
• 19,040 points
519 views
0 votes
0 answers

PHP5 - I want to write a Hindi text on image

I want to write Hindi text on ...READ MORE

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

Check if variable empty

Code: if ($user_id == NULL || $user_name == ...READ MORE

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

Edit PHP query code depending on image map clicked area using AJAX

I am working on an image map ...READ MORE

Jun 3, 2022 in PHP by Kichu
• 19,040 points
427 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
372 views
0 votes
0 answers

What is the correct syntax for PHP/SQL prepared statements?

The PHP/SQL statement that I have created ...READ MORE

Jun 1, 2022 in PHP by Kichu
• 19,040 points
461 views
0 votes
0 answers

Problem to shorten URL using PHP-Bitly v4

I wanted to shorten URL using the ...READ MORE

May 29, 2022 in PHP by Kichu
• 19,040 points
594 views
0 votes
0 answers

How do I create a copy of an object in PHP?

As far as I know, PHP objects ...READ MORE

Jun 1, 2022 in PHP by Kichu
• 19,040 points
440 views
0 votes
0 answers

Getting PHP registration form to connect with MYSQL

I'm building a test site and my ...READ MORE

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

how to change to english number to nepali number in php

I want to change the English numerals ...READ MORE

May 28, 2022 in PHP by Kichu
• 19,040 points
624 views
0 votes
0 answers

What php timezone I use for San Francisco, California, United Stated

What PHP time zone can I use ...READ MORE

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

When do I use the PHP constant "PHP_EOL"?

When is it a good idea to ...READ MORE

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

Warning: mysqli_query() expects at least 2 parameters, 1 given. What?

I have to build a PHP page ...READ MORE

May 12, 2022 in PHP by Kichu
• 19,040 points
1,282 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
361 views
0 votes
0 answers

php var_dump() vs print_r()

What is the difference between var_dump() and print_r() in terms of ...READ MORE

May 28, 2022 in PHP by Kichu
• 19,040 points
542 views
0 votes
0 answers

How do I replace part of a string in PHP?

I want to replace space in the first ...READ MORE

May 28, 2022 in PHP by Kichu
• 19,040 points
518 views
0 votes
0 answers

"facebook.com" missing from login page URL

I am not able to login using ...READ MORE

May 28, 2022 in PHP by Kichu
• 19,040 points
504 views
0 votes
0 answers

How to create a timer

Using mysqli the $dbSessionDuration variable can bind ...READ MORE

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

How can I sort arrays and data in PHP?

How do I sort an array in ...READ MORE

May 29, 2022 in PHP by Kichu
• 19,040 points
454 views
0 votes
0 answers

php-How to get date wise unique transaction number?

 was thinking of formatting it like this TYYYYMMDDNNNN ...READ MORE

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

Type hinting - specify an array of objects

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

May 29, 2022 in PHP by Kichu
• 19,040 points
430 views
0 votes
0 answers

PHP LONDON time to INDIA time change

I want to change GMT time to ...READ MORE

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

file_get_contents and php code

I have an engine that processes the ...READ MORE

May 29, 2022 in PHP by Kichu
• 19,040 points
418 views
0 votes
0 answers

How do I display PHP information using phpinfo()?

I have phpinfo() text which I want to post ...READ MORE

May 29, 2022 in PHP by Kichu
• 19,040 points
364 views