Trending questions in PHP

0 votes
0 answers

Get file content from URL?

When I use this URL: https://chart.googleapis.com/chart?cht=p3&chs=250x100&chd=t:60,40&chl=Hello|World&chof=json I am prompted ...READ MORE

Jun 17 in PHP by narikkadan
• 37,660 points
52 views
0 votes
0 answers

Generate an N-digit random number

I want to generate a 6-digit random ...READ MORE

Jun 17 in PHP by narikkadan
• 37,660 points
51 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 in PHP by Kichu
• 19,040 points
711 views
0 votes
0 answers

Php function returning associate array

How can I make a function return ...READ MORE

Jun 17 in PHP by narikkadan
• 37,660 points
45 views
0 votes
0 answers

Dynamically generating a QR code with PHP

I want to generate QR codes on ...READ MORE

Jun 17 in PHP by narikkadan
• 37,660 points
36 views
0 votes
0 answers

php extension mcrypt must be loaded

When I tried to install Magento on ...READ MORE

Jun 16 in PHP by narikkadan
• 37,660 points
78 views
0 votes
0 answers

Hot to display 😀😠as emoji to PHP

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

Jun 12 in PHP by narikkadan
• 37,660 points
242 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 in PHP by narikkadan
• 37,660 points
202 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 in PHP by narikkadan
• 37,660 points
283 views
0 votes
0 answers

PHP Unset Session Variable

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

Jun 9 in PHP by Kichu
• 19,040 points
366 views
0 votes
0 answers

Automatic conversion from int to string in PHP

In PHP the variable of type integer ...READ MORE

Jun 12 in PHP by narikkadan
• 37,660 points
230 views
0 votes
0 answers

Google Unicode Fonts not rendered properly in mpdf for PHP

I want to use Baloo2 Google Font ...READ MORE

Jun 9 in PHP by Kichu
• 19,040 points
359 views
0 votes
0 answers

What is .htaccess file?

 I want to know more about the .htaccess ...READ MORE

Jun 16 in PHP by narikkadan
• 37,660 points
54 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 in PHP by narikkadan
• 37,660 points
221 views
0 votes
0 answers

How to validate an Email in PHP?

How can I validate the input value ...READ MORE

Jun 16 in PHP by narikkadan
• 37,660 points
47 views
0 votes
0 answers

What is the difference between public, private, and protected?

When and why should I use public, ...READ MORE

Jun 16 in PHP by narikkadan
• 37,660 points
44 views
0 votes
0 answers

Where are $_SESSION variables stored?

Are $_SESSION variables stored on the client ...READ MORE

Jun 16 in PHP by narikkadan
• 37,660 points
38 views
0 votes
0 answers

How to create a JSON object

I want to create a JSON object ...READ MORE

Jun 16 in PHP by narikkadan
• 37,660 points
36 views
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 in PHP by narikkadan
• 37,660 points
111 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 in PHP by narikkadan
• 37,660 points
110 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 in PHP by narikkadan
• 37,660 points
101 views
0 votes
0 answers

How to create cron job using PHP?

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

Jun 13 in PHP by narikkadan
• 37,660 points
128 views
0 votes
0 answers

mysqli_fetch_array while loop columns

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

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

Cant Find Xampp setup for windows 32 bit (Php 7.3.2 )

I downloaded a 64-bit version of xampp ...READ MORE

Jun 7 in PHP by Kichu
• 19,040 points
373 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 in PHP by narikkadan
• 37,660 points
226 views
0 votes
0 answers

PHP typecasting

what is the best way to typecast ...READ MORE

Jun 14 in PHP by narikkadan
• 37,660 points
44 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 in PHP by narikkadan
• 37,660 points
43 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 in PHP by narikkadan
• 37,660 points
44 views
0 votes
0 answers

Undefined index error PHP

I'm getting this error: Notice: Undefined index: productid ...READ MORE

Jun 11 in PHP by narikkadan
• 37,660 points
169 views
0 votes
0 answers

How to write a PHP ternary operator

How can I write a PHP ternary operator ...READ MORE

Jun 14 in PHP by narikkadan
• 37,660 points
33 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 in PHP by narikkadan
• 37,660 points
68 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 in PHP by narikkadan
• 37,660 points
64 views
0 votes
0 answers

Creating default object from empty value in PHP?

I am getting this error after I ...READ MORE

Jun 10 in PHP by narikkadan
• 37,660 points
187 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 in PHP by narikkadan
• 37,660 points
59 views
0 votes
0 answers

Static variables in PHP

Can someone please explain to me what ...READ MORE

Jun 12 in PHP by narikkadan
• 37,660 points
94 views
0 votes
0 answers

How to echo or print an array in PHP?

I have this array: Array ( [data] => ...READ MORE

Jun 13 in PHP by narikkadan
• 37,660 points
49 views
0 votes
0 answers

how to make tiktok downloader without watermark php

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

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

Encrypt and Decrypt md5

I am using code $enrypt=md5($pass) and inserting ...READ MORE

Jun 9 in PHP by Kichu
• 19,040 points
222 views
0 votes
0 answers
0 votes
0 answers

How to use Unlink() function

I tried using the PHP unlink() function to ...READ MORE

Jun 13 in PHP by narikkadan
• 37,660 points
34 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 in PHP by narikkadan
• 37,660 points
110 views
0 votes
0 answers

PHP "php://input" vs $_POST

I want to know what is the ...READ MORE

Jun 9 in PHP by Kichu
• 19,040 points
198 views
0 votes
0 answers

Editing image colors in PHP - color exchange

I am trying to convert all colors ...READ MORE

Jun 12 in PHP by narikkadan
• 37,660 points
59 views
0 votes
0 answers

PHP Fibonacci Sequence

This PHP method should print the Fibonacci sequence up ...READ MORE

Jun 12 in PHP by narikkadan
• 37,660 points
52 views
0 votes
0 answers

PHP: Split string

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

Jun 12 in PHP by narikkadan
• 37,660 points
44 views
0 votes
0 answers

What is encapsulation with simple example in php?

What is encapsulation with simple example in ...READ MORE

Jun 12 in PHP by narikkadan
• 37,660 points
44 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 in PHP by Kichu
• 19,040 points
256 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 in PHP by narikkadan
• 37,660 points
34 views
0 votes
0 answers

How to open php files through localhost?

I am creating a student management program ...READ MORE

Jun 10 in PHP by narikkadan
• 37,660 points
122 views