Trending questions in PHP

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
618 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
355 views
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,361 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
426 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
285 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
515 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
609 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
498 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
370 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
597 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
597 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
527 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
340 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
334 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
559 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
555 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
489 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
654 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
515 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
473 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
627 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
511 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
392 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
731 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
415 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
361 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
454 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
433 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
506 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
615 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
567 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
402 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
631 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
278 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,276 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
355 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
531 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
498 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
406 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
489 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
436 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
521 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
510 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
414 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
413 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
356 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
304 views
0 votes
0 answers

How to play video in new (blank) window?

I made this: http://imgur.com/Moc84HD.jpg in WordPress. What it does ...READ MORE

May 28, 2022 in PHP by Kichu
• 19,040 points
369 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
236 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
376 views