Trending questions in PHP

0 votes
0 answers

Creating a config file in PHP

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

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

PHP - Notice: Undefined index

I wanted to do a registration form ...READ MORE

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

file_get_contents("php://input") or $HTTP_RAW_POST_DATA, which one is better to get the body of JSON request?

The file_get_contents("php://input") or $HTTP_RAW_POST_DATA - which one ...READ MORE

Jun 23 in PHP by narikkadan
• 37,660 points
56 views
0 votes
0 answers

What is the best IDE for PHP?

I use Notepad++ for code editing, I need an ...READ MORE

Jun 23 in PHP by narikkadan
• 37,660 points
53 views
0 votes
0 answers

MySQL mysql_num_rows();

The variable: "$num_rows" is not even being ...READ MORE

Jun 23 in PHP by narikkadan
• 37,660 points
51 views
0 votes
0 answers

PHP MySQL autocomplete

I have an auto-complete search field in ...READ MORE

Jun 18 in PHP by narikkadan
• 37,660 points
260 views
0 votes
0 answers

Why PHP variables start with a $ sign symbol?

Why should we write $var_name = value; ...READ MORE

Jun 23 in PHP by narikkadan
• 37,660 points
43 views
0 votes
0 answers

PHP - exit or return which is better?

Case I: <?php if ( $fileSize > 100 ) { ...READ MORE

Jun 23 in PHP by narikkadan
• 37,660 points
34 views
0 votes
0 answers

This localhost page can’t be found :Phpmyadmin

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

May 30 in PHP by Kichu
• 19,040 points
1,030 views
0 votes
0 answers

Showing all errors and warnings

The following script is generating a warning ...READ MORE

Jun 23 in PHP by narikkadan
• 37,660 points
27 views
0 votes
0 answers

localhost/phpinfo.php

Wen I tried - http://localhost/phpinfo.php in google chrome ...READ MORE

Jun 14 in PHP by narikkadan
• 37,660 points
408 views
0 votes
0 answers

php create object without class

How can I create an object in ...READ MORE

Jun 20 in PHP by narikkadan
• 37,660 points
109 views
0 votes
0 answers

Laravel 5 – Clear Cache in Shared Hosting Server

php artisan cache:clear Is there any workaround to ...READ MORE

Jun 20 in PHP by Kithuzzz
• 20,660 points
100 views
0 votes
0 answers

Cannot access to localhost/xampp/index.php

When I type localhost in my browser ...READ MORE

May 30 in PHP by Kichu
• 19,040 points
1,028 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 in PHP by Kithuzzz
• 20,660 points
66 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 in PHP by narikkadan
• 37,660 points
61 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 in PHP by Kithuzzz
• 20,660 points
53 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 in PHP by Kithuzzz
• 20,660 points
53 views
0 votes
0 answers

PHP Notice: Undefined offset: 1 with array when reading data

I am getting this error : PHP Notice: ...READ MORE

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

What is autoload in php?

What is autoload in PHP? READ MORE

Jun 20 in PHP by Kithuzzz
• 20,660 points
43 views
0 votes
0 answers

How to reverse an array in php WITHOUT using the array reverse method

I have an array called reverse array ...READ MORE

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

How to write into a file in PHP?

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

Jun 20 in PHP by Kithuzzz
• 20,660 points
38 views
0 votes
0 answers

Convert one date format into another in PHP

How can I convert one date format ...READ MORE

Jun 20 in PHP by Kithuzzz
• 20,660 points
38 views
0 votes
0 answers

How are session variables accessed in PHP?

How does PHP or any other language ...READ MORE

Jun 20 in PHP by narikkadan
• 37,660 points
33 views
0 votes
0 answers

What is function overloading and overriding in php?

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

Jun 18 in PHP by narikkadan
• 37,660 points
154 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 in PHP by narikkadan
• 37,660 points
30 views
0 votes
0 answers

Check if user is admin PHP

I have a users table with this ...READ MORE

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

Remove all html tags from php string

I want to display the first 110 ...READ MORE

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

How to base64 encode php in this format?

Can someone please guide me on how ...READ MORE

Jun 10 in PHP by narikkadan
• 37,660 points
463 views
0 votes
0 answers

PHP Fatal error: Using $this when not in object context

I am working on a new WebApp without ...READ MORE

Jun 18 in PHP by narikkadan
• 37,660 points
120 views
0 votes
0 answers

PHP server on local machine?

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

Jun 19 in PHP by narikkadan
• 37,660 points
60 views
0 votes
0 answers

Escaping quotation marks in PHP

I am getting a parse error, and ...READ MORE

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

php is a scripting language or server side language?

I read that the scripting languages run ...READ MORE

Jun 18 in PHP by narikkadan
• 37,660 points
89 views
0 votes
0 answers

Static methods in PHP

I came to know about static methods ...READ MORE

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

How to get the PHP Version?

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

Jun 19 in PHP by narikkadan
• 37,660 points
36 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 in PHP by narikkadan
• 37,660 points
32 views
0 votes
0 answers

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

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

Jun 18 in PHP by narikkadan
• 37,660 points
74 views
0 votes
0 answers

How can i send an image map area id to a php file?

This is my image map: <map name="frozen"> ...READ MORE

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

Combine two arrays

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

Jun 18 in PHP by narikkadan
• 37,660 points
66 views
0 votes
0 answers

How to locate the php.ini file (xampp)?

I am using xampp server for PHP ...READ MORE

Jun 9 in PHP by Kichu
• 19,040 points
455 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 in PHP by narikkadan
• 37,660 points
58 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 in PHP by narikkadan
• 37,660 points
89 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 in PHP by narikkadan
• 37,660 points
82 views
0 votes
0 answers

What is mod_php?

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

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

How to open a file named index.php which is in htdocs/project1 folder in xampp?

I have a folder named project1 in ...READ MORE

May 29 in PHP by Kichu
• 19,040 points
880 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 in PHP by narikkadan
• 37,660 points
62 views
0 votes
0 answers

Find PHP version on windows command line

I wanted to know the version of ...READ MORE

Jun 14 in PHP by narikkadan
• 37,660 points
192 views
0 votes
0 answers

What is the difference between ' and " in PHP?

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

Jun 17 in PHP by narikkadan
• 37,660 points
56 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 in PHP by narikkadan
• 37,660 points
53 views