Most viewed questions in PHP

0 votes
0 answers

Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted (CodeIgniter + XML-RPC)

My client point of sale (POS) systems ...READ MORE

Aug 1, 2022 in PHP by Kithuzzz
• 38,010 points
1,082 views
0 votes
0 answers

Php artisan make:auth command is not defined

I ran this command in Laravel 5.2 but ...READ MORE

Jul 21, 2022 in PHP by narikkadan
• 63,420 points
1,079 views
0 votes
0 answers

getenv() vs. $_ENV in PHP

What is the distinction between $_ENV and ...READ MORE

Aug 8, 2022 in PHP by narikkadan
• 63,420 points
1,075 views
0 votes
0 answers

How to base64 encode php in this format?

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

Jun 10, 2022 in PHP by narikkadan
• 63,420 points
1,072 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,050 points
1,072 views
0 votes
0 answers

PHP using extract() to pass array values as variables and display it on a page

In order to include a specific file ...READ MORE

Aug 6, 2022 in PHP by Kithuzzz
• 38,010 points
1,062 views
0 votes
1 answer

In PHP, how to detect the execution is from CLI mode or through browser ?

Hello @kartik, Use the php_sapi_name() function. if (php_sapi_name() == "cli") { ...READ MORE

Oct 22, 2020 in PHP by Niroj
• 82,880 points
1,060 views
0 votes
0 answers

What are the main differences between PHPExcel and PhpSpreadsheet?

In project of PHPOffice there are two projects associated ...READ MORE

Jun 23, 2022 in PHP by narikkadan
• 63,420 points
1,056 views
0 votes
0 answers

What is PHPSESSID?

I'm experimenting with cookies. I also don't ...READ MORE

Aug 8, 2022 in PHP by narikkadan
• 63,420 points
1,055 views
0 votes
0 answers

How can I solve this error "A PHP Error was encountered"?

Please give some idea. how to solve ...READ MORE

Jul 30, 2022 in PHP by Kithuzzz
• 38,010 points
1,054 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, 2022 in PHP by narikkadan
• 63,420 points
1,051 views
0 votes
1 answer

How to clear APC cache entries?

Hello @kartik, You can use the PHP function ...READ MORE

Apr 15, 2020 in PHP by Niroj
• 82,880 points
1,043 views
0 votes
1 answer

How do I disable the views caching?

Hello @kartik, There is now a php artisan view:clear command ...READ MORE

Oct 1, 2020 in PHP by Niroj
• 82,880 points
1,039 views
0 votes
0 answers

How to delete image form folder and database

With the code below, I'm displaying data ...READ MORE

Jul 26, 2022 in PHP by Kithuzzz
• 38,010 points
1,030 views
0 votes
1 answer

How to set upload_max_filesize in .htaccess?

Hello @kartik, php_value upload_max_filesize 30M is correct. You will have ...READ MORE

Oct 22, 2020 in PHP by Niroj
• 82,880 points
1,028 views
0 votes
1 answer

How to send email using php?

Hello @kartik 1.) Download PHPMailer, open the zip file ...READ MORE

Apr 1, 2020 in PHP by Niroj
• 82,880 points
1,021 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,050 points
1,013 views
0 votes
1 answer

mysql error 'TYPE=MyISAM'

Hello @kartik, Replace TYPE=MyISAM with ENGINE=MyISAM The problem was "TYPE=MyISAM" which should ...READ MORE

Nov 17, 2020 in PHP by Niroj
• 82,880 points
1,010 views
0 votes
1 answer

How can I expire a PHP session after 50 minutes?

Hii @kartik, Use the session_set_cookie_params funciton to set the session. If necessary call this function ...READ MORE

May 19, 2020 in PHP by Niroj
• 82,880 points
1,010 views
0 votes
1 answer

Error:mysql_fetch_array()/mysql_fetch_assoc()/mysql_fetch_row()/mysql_num_rows etc… expects parameter 1 to be resource

Hello, Error occurred here was due to the ...READ MORE

May 19, 2020 in PHP by Niroj
• 82,880 points
1,008 views
0 votes
0 answers

Warning: mysqli_query() expects at least 2 parameters, 1 given. What?

I have to build a PHP page ...READ MORE

May 12, 2022 in PHP by Kichu
• 19,050 points
991 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,050 points
986 views
0 votes
1 answer

Error:Cannot connect to database server Communications link failure

Hello @kartik, Setting the bind-address to the server's network IP ...READ MORE

Aug 19, 2020 in PHP by Niroj
• 82,880 points
984 views
0 votes
1 answer

How to increase the execution timeout in php?

Hello @kartik, You need to change some setting ...READ MORE

Sep 1, 2020 in PHP by Niroj
• 82,880 points
978 views
0 votes
0 answers

How to convert Unicode font to KrutiDev in PHP

In essence, I used JavaScript to generate ...READ MORE

Aug 4, 2022 in PHP by Kithuzzz
• 38,010 points
972 views
+1 vote
1 answer

How to restore MySQL database from physical files?

Hello @kartik, A MySQL MyISAM table is the ...READ MORE

Aug 20, 2020 in PHP by Niroj
• 82,880 points
970 views
0 votes
1 answer

How to cache fetched data in react without redux?

Hello @kartik, The best way to save data ...READ MORE

Jun 1, 2020 in PHP by Niroj
• 82,880 points
969 views
0 votes
1 answer

How to create a database from shell command?

Hello @kartik, Try: cat filename.sql | mysql -u username ...READ MORE

Aug 26, 2020 in PHP by Niroj
• 82,880 points
963 views
0 votes
1 answer

Connection with MySQL server using PHP. How can we do that?

Hey @kartik, You have to provide MySQL hostname, ...READ MORE

Mar 27, 2020 in PHP by Niroj
• 82,880 points
956 views
0 votes
1 answer

How to make form_rest() not display a field with Symfony2?

Hello @kartik, Another option is to explicitly mark ...READ MORE

Oct 20, 2020 in PHP by Niroj
• 82,880 points
955 views
0 votes
0 answers

NotFoundHttpException in RouteCollection.php line 161: in laravel 5

My CollectionController looks like this . <?php namespace App\Http\Controllers; use ...READ MORE

Jun 24, 2022 in PHP by narikkadan
• 63,420 points
945 views
0 votes
0 answers

PHP MySQL autocomplete

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

Jun 18, 2022 in PHP by narikkadan
• 63,420 points
941 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, 2022 in PHP by narikkadan
• 63,420 points
938 views
0 votes
0 answers

How to open php files through localhost?

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

Jun 10, 2022 in PHP by narikkadan
• 63,420 points
938 views
0 votes
1 answer

How to prevent my site page to be loaded via 3rd party site frame of iFrame?

Hello @kartik, You cannot check it from the ...READ MORE

Oct 19, 2020 in PHP by Niroj
• 82,880 points
937 views
0 votes
1 answer

How can I capture the result of var_dump to a string?

Hello @kartik, Try var_export You may want to check out var_export — ...READ MORE

Sep 16, 2020 in PHP by Niroj
• 82,880 points
928 views
0 votes
0 answers

Best way to initialize (empty) array in PHP

Because of object creation and instantiation, it ...READ MORE

Aug 2, 2022 in PHP by Kithuzzz
• 38,010 points
927 views
0 votes
1 answer

How can one check to see if a remote file exists using PHP?

Hello @kartik, You can instruct curl to use ...READ MORE

Nov 10, 2020 in PHP by Niroj
• 82,880 points
922 views
0 votes
0 answers

Send email with PHP from html form on submit with the same script

When a user has finished filling out ...READ MORE

Jul 29, 2022 in PHP by Kithuzzz
• 38,010 points
921 views
0 votes
0 answers

php form action php self

I have a php form like this. <form ...READ MORE

Jul 31, 2022 in PHP by Kithuzzz
• 38,010 points
915 views
0 votes
1 answer

How do I save value in my own session variable in Magento?

Hello @kartik, Try this: $session = Mage::getSingleton("core/session", array("name"=>"frontend")); // ...READ MORE

Nov 17, 2020 in PHP by Niroj
• 82,880 points
915 views
0 votes
2 answers

How can we create a session in PHP?

Hello, niroj. Here is my idea session_start(); $_SESSION['USERNAME'] ...READ MORE

Dec 7, 2020 in PHP by Famous
• 140 points
913 views
0 votes
0 answers

PHP with MySQL 8.0+ error: The server requested authentication method unknown to the client

I'm running MySQL version 8 on PHP ...READ MORE

Jun 18, 2022 in PHP by narikkadan
• 63,420 points
912 views
0 votes
1 answer

How to get innerHTML of DOMNode?

Hello @kartik, Here is a version in a functional ...READ MORE

Oct 22, 2020 in PHP by Niroj
• 82,880 points
907 views
0 votes
1 answer

How do I strip all spaces out of a string in PHP?

If I have understood your question right, ...READ MORE

Feb 23, 2022 in PHP by Aditya
• 7,680 points
902 views
0 votes
0 answers

php password_hash and password_verify issues no match

I'm testing out the new password hash ...READ MORE

Jul 24, 2022 in PHP by Kithuzzz
• 38,010 points
899 views
0 votes
1 answer

How to prevent XSS with HTML/PHP?

Hello, HTML Encoding htmlspecialchars will convert any "HTML special characters" ...READ MORE

Apr 1, 2020 in PHP by Niroj
• 82,880 points
898 views
0 votes
1 answer

CodeIgniter removing index.php from url

To solve your doubt, use the following ...READ MORE

Feb 23, 2022 in PHP by Aditya
• 7,680 points
896 views
0 votes
1 answer

How to get the sizes of the tables of a MySQL database?

Hello @kartik, You can use this query to ...READ MORE

Aug 18, 2020 in PHP by Niroj
• 82,880 points
890 views
0 votes
1 answer

What is Php Mysql Database? How php connect to database?

Hello kartik, MySQL is the most popular database ...READ MORE

Feb 25, 2020 in PHP by Dey
885 views