Trending questions in PHP

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
• 63,600 points
415 views
0 votes
0 answers

Creating a config file in PHP

I am working on creating config file ...READ MORE

Jun 24, 2022 in PHP by narikkadan
• 63,600 points
408 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
• 63,600 points
364 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
• 63,600 points
313 views
0 votes
0 answers

What does this mean in PHP: -> or =>

Possible duplicate: where we use object operator “->” ...READ MORE

Jun 18, 2022 in PHP by narikkadan
• 63,600 points
662 views
0 votes
0 answers

PHP Unset Session Variable

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

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

What is autoload in php?

What is autoload in PHP? READ MORE

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

How to increase maximum execution time in php

I want to increase the maximum execution time in ...READ MORE

Jun 17, 2022 in PHP by narikkadan
• 63,600 points
670 views
0 votes
0 answers

Using sessions & session variables in a PHP Login Script

I have created a login and register ...READ MORE

Jun 17, 2022 in PHP by narikkadan
• 63,600 points
654 views
0 votes
0 answers

How to write into a file in PHP?

I have this script on one free ...READ MORE

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

strlen() php function giving the wrong length of unicode characters

I want to get the length of ...READ MORE

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

How to check whether an array is empty using PHP?

I have an array named players, what ...READ MORE

Jun 20, 2022 in PHP by Kithuzzz
• 38,000 points
471 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, 2022 in PHP by Kichu
• 19,040 points
1,064 views
0 votes
0 answers

Simplest way to profile a PHP script

How can I profile a PHP script?  I tried the microtime function: then ...READ MORE

Jun 20, 2022 in PHP by narikkadan
• 63,600 points
467 views
0 votes
0 answers

What is function overloading and overriding in php?

What is function overloading and function overriding? ...READ MORE

Jun 18, 2022 in PHP by narikkadan
• 63,600 points
582 views
0 votes
0 answers

How can I remove part of a string in PHP?

How can I remove part of a ...READ MORE

Jun 19, 2022 in PHP by narikkadan
• 63,600 points
534 views
0 votes
0 answers

PHP Merge 2 Images (Insert Face To An Image)

I have 2 images. one face image ...READ MORE

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

How to get the PHP Version?

How can I  check the version of ...READ MORE

Jun 19, 2022 in PHP by narikkadan
• 63,600 points
493 views
0 votes
0 answers

Generate an N-digit random number

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

Jun 17, 2022 in PHP by narikkadan
• 63,600 points
576 views
0 votes
0 answers

Combine two arrays

I have two arrays like this: array( '11' ...READ MORE

Jun 18, 2022 in PHP by narikkadan
• 63,600 points
531 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, 2022 in PHP by narikkadan
• 63,600 points
694 views
0 votes
0 answers

How to convert an array to object in PHP?

How can I convert an array like ...READ MORE

Jun 18, 2022 in PHP by narikkadan
• 63,600 points
503 views
0 votes
0 answers

How to change maximum viewable tables from 250 to anything in PhpMyadmin?

I wanted to increase my list of ...READ MORE

Jun 10, 2022 in PHP by narikkadan
• 63,600 points
837 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
373 views
0 votes
0 answers

PHP server on local machine?

I want to test my PHP file ...READ MORE

Jun 19, 2022 in PHP by narikkadan
• 63,600 points
435 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
• 63,600 points
357 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, 2022 in PHP by narikkadan
• 63,600 points
777 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
• 63,600 points
350 views
0 votes
0 answers

Hot to display 😀😠as emoji to PHP

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

Jun 12, 2022 in PHP by narikkadan
• 63,600 points
718 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, 2022 in PHP by narikkadan
• 63,600 points
676 views
0 votes
0 answers

What is the difference between ' and " in PHP?

What is the difference between ' and ...READ MORE

Jun 17, 2022 in PHP by narikkadan
• 63,600 points
501 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,053 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,091 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
321 views
0 votes
0 answers

PHP typecasting

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

Jun 14, 2022 in PHP by narikkadan
• 63,600 points
604 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, 2022 in PHP by narikkadan
• 63,600 points
602 views
0 votes
0 answers

What is mod_php?

Note that the php_flag settings in .htaccess ...READ MORE

Jun 17, 2022 in PHP by narikkadan
• 63,600 points
464 views
0 votes
0 answers

Merge PDF files with PHP

Is it possible to merge multiple pdf ...READ MORE

May 27, 2022 in PHP by Kichu
• 19,040 points
1,367 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
• 63,600 points
364 views
0 votes
0 answers

How can I parse a JSON file with PHP?

I want to parse a JSON file ...READ MORE

Jun 17, 2022 in PHP by narikkadan
• 63,600 points
452 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,057 views
0 votes
0 answers

How to detect faulty JPEG in PHP? (Issue with SOFn, DQT or DHT JPEG marker missing before a JPEG SOS marker)

Is there a way to detect if ...READ MORE

Jun 7, 2022 in PHP by Kichu
• 19,040 points
881 views
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, 2022 in PHP by narikkadan
• 63,600 points
448 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, 2022 in PHP by narikkadan
• 63,600 points
618 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
• 63,600 points
340 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, 2022 in PHP by narikkadan
• 63,600 points
459 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,015 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
• 63,600 points
309 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
• 63,600 points
399 views
0 votes
0 answers

Creating a very simple 1 username/password login in php

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

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