Most voted questions in PHP

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
692 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
405 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
735 views
0 votes
0 answers

Send mail using an email account created on Hostinger (PHP)

I am using an email I created ...READ MORE

Jun 7, 2022 in PHP by Kichu
• 19,040 points
3,977 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
567 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
384 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
437 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
394 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
627 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
432 views
0 votes
0 answers

PHP function to generate v4 UUID

I am working on a function that ...READ MORE

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

mysqli_fetch_array while loop columns

I have this code to iterate over ...READ MORE

Jun 4, 2022 in PHP by Kichu
• 19,040 points
1,526 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
956 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
322 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
545 views
0 votes
0 answers

Check if file exists in php

I have this code: if (!(file_exists(http://mysite.com/images/thumbnail_1286954822.jpg))) { ...READ MORE

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

json_decode to array

I want to decode a JSON string ...READ MORE

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

Can anyone confirm that phpMyAdmin AllowNoPassword works with MySQL databases?

I have a version of phpMyAdmin located ...READ MORE

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

how to make tiktok downloader without watermark php

I want to make a PHP downloader ...READ MORE

Jun 3, 2022 in PHP by Kichu
• 19,040 points
2,057 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
552 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
662 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
456 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
509 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
590 views
0 votes
0 answers

How to extract img src, title and alt from html using php?

I am working on a page where ...READ MORE

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

Mailer Error: SMTP connect() failed in php mailer( https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting)

Here is code for sending email from ...READ MORE

Jun 2, 2022 in PHP by Kichu
• 19,040 points
13,266 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
784 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
816 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
784 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
395 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
546 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
587 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
651 views
0 votes
0 answers

PHP header(Location: ...): Force URL change in address bar

I have a new webpage but the ...READ MORE

Jun 1, 2022 in PHP by Kichu
• 19,040 points
4,313 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
651 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
654 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
991 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
487 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
480 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
667 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
429 views
0 votes
0 answers

This localhost page can’t be found :Phpmyadmin

I solved an issue with Apache and ...READ MORE

May 30, 2022 in PHP by Kichu
• 19,040 points
4,038 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
540 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
260 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
823 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,163 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
662 views