Most viewed questions in PHP

0 votes
0 answers

Multi-line strings in PHP

Consider: $xml = "l"; $xml = "vv"; echo $xml; This will ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 86,360 points
674 views
0 votes
1 answer

How do I see the extensions loaded by PHP?

Hello @kartik, Running php -m will give you all the ...READ MORE

Sep 15, 2020 in PHP by Niroj
• 82,800 points
674 views
0 votes
0 answers

PHP array printing using a loop

How can I print each value of ...READ MORE

Jul 23, 2022 in PHP by Kithuzzz
• 38,000 points
672 views
0 votes
0 answers

Retrieve data from db and display it in table in php .. see this code whats wrong with it?

$db = mysql_connect("localhost", "root", ""); ...READ MORE

Jul 25, 2022 in PHP by Kithuzzz
• 38,000 points
666 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
664 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
663 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
• 86,360 points
661 views
0 votes
0 answers

Artisan, creating tables in database

In Laravel 5, I'm attempting to build ...READ MORE

Jul 22, 2022 in PHP by Kithuzzz
• 38,000 points
656 views
0 votes
0 answers

Methods to remove specific characters from string?

I am trying to remove the brackets ...READ MORE

Jun 11, 2022 in PHP by narikkadan
• 86,360 points
654 views
0 votes
0 answers

php extension mcrypt must be loaded

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

Jun 16, 2022 in PHP by narikkadan
• 86,360 points
652 views
0 votes
0 answers

What in layman's terms is a Recursive Function using PHP

Can someone please explain the recursive function ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 86,360 points
650 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, 2022 in PHP by narikkadan
• 86,360 points
649 views
0 votes
0 answers

How to use $_FILES["file"]["size"]?

How can I see if the file ...READ MORE

Jul 25, 2022 in PHP by Kithuzzz
• 38,000 points
648 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
647 views
0 votes
0 answers

Create PDF file using PHP

I want to create a PDF file ...READ MORE

Jun 24, 2022 in PHP by narikkadan
• 86,360 points
646 views
0 votes
0 answers

Difference between call by value and call by reference in php and also $$ means?

What is the difference between call by ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 86,360 points
645 views
0 votes
0 answers

PHP max_input_vars

I'm getting a max_input_vars error message. I'm ...READ MORE

Jun 11, 2022 in PHP by narikkadan
• 86,360 points
644 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
643 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, 2022 in PHP by narikkadan
• 86,360 points
642 views
0 votes
0 answers

Remove the last character from a string

What is the fastest way to remove ...READ MORE

Jul 26, 2022 in PHP by Kithuzzz
• 38,000 points
641 views
0 votes
0 answers

How to validate an Email in PHP?

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

Jun 16, 2022 in PHP by narikkadan
• 86,360 points
640 views
0 votes
0 answers

How to use Unlink() function

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

Jun 13, 2022 in PHP by narikkadan
• 86,360 points
639 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
636 views
0 votes
0 answers

How can I write to the console in PHP?

Is it possible to write a string ...READ MORE

Jul 25, 2022 in PHP by Kithuzzz
• 38,000 points
635 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
• 86,360 points
633 views
0 votes
0 answers

phpMyAdmin: secret passphrase?

Every time I go into phpMyAdmin using ...READ MORE

Jul 21, 2022 in PHP by narikkadan
• 86,360 points
632 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
• 86,360 points
631 views
0 votes
0 answers

How can I access the XAMPP 7.0.9 Security page?

I have trouble getting to xampp 7.0.9's ...READ MORE

Aug 1, 2022 in PHP by Kithuzzz
• 38,000 points
627 views
0 votes
0 answers

Format die(); Message in PHP

Is there a way to style the ...READ MORE

Jun 10, 2022 in PHP by narikkadan
• 86,360 points
623 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
• 86,360 points
620 views
0 votes
0 answers

Creating a search form in PHP [duplicate]

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

Jun 9, 2022 in PHP by Kichu
• 19,040 points
620 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
620 views
0 votes
0 answers

Implode array values?

My array: Array ( [0] => ...READ MORE

Jun 27, 2022 in PHP by narikkadan
• 86,360 points
619 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
• 86,360 points
619 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
613 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
613 views
0 votes
0 answers

How to use PHP htmlentities()?

 I currently use htmlentities() to filter data coming from ...READ MORE

Jun 10, 2022 in PHP by narikkadan
• 86,360 points
612 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
608 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, 2022 in PHP by narikkadan
• 86,360 points
607 views
0 votes
0 answers

PHP array mapping

Is there a cleaner way than foreach to get ...READ MORE

Jul 22, 2022 in PHP by narikkadan
• 86,360 points
606 views
0 votes
0 answers

Hashing a string in php

This is the hashed output "bWNgAQW2FLc" I ...READ MORE

Jun 27, 2022 in PHP by narikkadan
• 86,360 points
605 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
605 views
0 votes
1 answer

Error:Add myBundle to the asseticBundle config symfony2 exception?

Hello @kartik, Try the below steps: edit app/config/config.yml then go to assetic: under ...READ MORE

Nov 10, 2020 in PHP by Niroj
• 82,800 points
603 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
• 86,360 points
600 views
0 votes
0 answers

How to write a PHP ternary operator

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

Jun 14, 2022 in PHP by narikkadan
• 86,360 points
600 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
599 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
594 views
0 votes
0 answers

What is .htaccess file?

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

Jun 16, 2022 in PHP by narikkadan
• 86,360 points
593 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
590 views