Trending questions in PHP

0 votes
1 answer

SQL injection that gets around mysql_real_escape_string()?

Hello @kartik, Consider the following query: $iId = mysql_real_escape_string("1 ...READ MORE

Apr 9, 2020 in PHP by Niroj
• 82,840 points
4,153 views
0 votes
1 answer

Fatal error: Class 'PHPUnit_Framework_TestCase' not found in .?

Hello @kartik, You may get this error because ...READ MORE

May 19, 2020 in PHP by Niroj
• 82,840 points
2,370 views
0 votes
1 answer

How to get xdebug var_dump to show full object/array?

Hello. These are configurable variables in php.ini: ; with ...READ MORE

Apr 7, 2020 in PHP by Niroj
• 82,840 points
3,960 views
0 votes
1 answer

How to convert an image to base64 encoding?

Hello @kartik, You can also do this via ...READ MORE

Apr 1, 2020 in PHP by Niroj
• 82,840 points
4,204 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,840 points
1,337 views
0 votes
1 answer

How to install a specific version of package using Composer?

Hello, Just use php composer.phar require For example : php ...READ MORE

Apr 1, 2020 in PHP by Niroj
• 82,840 points
3,801 views
0 votes
1 answer

What are the differences between mysqli_connect and mysqli_pconnect?

Hello, mysqli_pconnect() function is used for making a persistence ...READ MORE

Mar 27, 2020 in PHP by Niroj
• 82,840 points
4,012 views
0 votes
1 answer

How to put an 'if clause' in an SQL string?

Hello @kartik, For your specific query, you can ...READ MORE

Jun 1, 2020 in PHP by Niroj
• 82,840 points
1,015 views
0 votes
1 answer

Error:Enabling error display in PHP via htaccess only?

Hello, To turn the actual display of errors ...READ MORE

May 19, 2020 in PHP by Niroj
• 82,840 points
1,432 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,840 points
1,438 views
0 votes
1 answer

How to merge two arrays while keeping keys instead of reindexing?

Hello, Considering that you have $replaced = array('1' => ...READ MORE

Apr 15, 2020 in PHP by Niroj
• 82,840 points
2,824 views
0 votes
1 answer

How to retrieve or obtain data from the MySQL database using PHP?

Hello kartik,  Actually there are many functions that  ...READ MORE

Mar 27, 2020 in PHP by Niroj
• 82,840 points
3,600 views
0 votes
1 answer

Error:while importing Table for WORDPRESS

Hello @kartik, I had the same error when ...READ MORE

May 8, 2020 in PHP by Niroj
• 82,840 points
1,766 views
0 votes
1 answer

What is the use of $_REQUEST variable in php?

Hii @kartik, The $_REQUEST variable is used to read the ...READ MORE

Mar 27, 2020 in PHP by Niroj
• 82,840 points
3,573 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,840 points
1,258 views
0 votes
0 answers

How to compile PHP code and upload a binary-ish file, which will just be run by the byte code interpreter?

PHP is compiled to byte code before ...READ MORE

Apr 2, 2020 in PHP by kartik
• 37,520 points
3,182 views
0 votes
1 answer

What is meant by passing the variable by value and reference in PHP?

Hello, When the variable is passed as value ...READ MORE

Mar 27, 2020 in PHP by Niroj
• 82,840 points
3,394 views
0 votes
1 answer

How can I add PHP page to WordPress?

Hii @kartik, First, duplicate post.php or page.php in your theme folder. Rename the ...READ MORE

May 8, 2020 in PHP by Niroj
• 82,840 points
1,558 views
0 votes
1 answer

How to merge two arrays while keeping keys instead of reindexing in php?

Hello, Considering that you have $replaced = array('1' => ...READ MORE

Apr 1, 2020 in PHP by Niroj
• 82,840 points
3,147 views
0 votes
1 answer

Error:Issue when trying to use IN() in wordpress database

Hello @kartik, Try this code : // Create an ...READ MORE

May 8, 2020 in PHP by Niroj
• 82,840 points
1,285 views
0 votes
1 answer

Error:WP_Query() does not return all entries

Hello, Try adding posts_per_page=-1 to the string of parameters passed ...READ MORE

May 8, 2020 in PHP by Niroj
• 82,840 points
1,231 views
0 votes
1 answer

How can we track Google Analytics on a redirection page with PHP?

Hello @kartik, Since the page that is sending ...READ MORE

Apr 29, 2020 in PHP by Niroj
• 82,840 points
1,432 views
0 votes
1 answer

How to load Javascript in Wordpress Plugin?

Hello kartik, You need to specify when the ...READ MORE

May 8, 2020 in PHP by Niroj
• 82,840 points
925 views
0 votes
1 answer

How to query all the GraphQL type fields without writing a long query?

Hello @kartik, GraphQL query format was designed in order ...READ MORE

Apr 20, 2020 in PHP by Niroj
• 82,840 points
1,685 views
0 votes
1 answer

Error:SSL certificate error: unable to get local issuer certificate

Hii, If you don't have access to php.ini, adding ...READ MORE

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

How to Debug Variables like in PHP var_dump()?

Hello @kartik, Try out with the Smarty Session: {$smarty.session|@debug_print_var} or {$smarty.session|@print_r} To ...READ MORE

Apr 20, 2020 in PHP by Niroj
• 82,840 points
1,653 views
0 votes
1 answer

How to get current route in Symfony 2?

Hii,  The easiest way to do this: class MyController ...READ MORE

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

How to detect search engine bots with php?

Hello, You can checkout if it's a search ...READ MORE

Apr 20, 2020 in PHP by Niroj
• 82,840 points
1,430 views
0 votes
1 answer

How to shrink Navigation menu or bar on Scroll?

Hey, You can follow the steps below in ...READ MORE

Feb 19, 2020 in PHP by varun
3,961 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,840 points
1,391 views
0 votes
1 answer

What is a Cookie? How to create Cookies With PHP?

A cookie is often used to identify ...READ MORE

Feb 13, 2020 in PHP by Niroj
• 82,840 points
3,937 views
0 votes
1 answer

How to implement a callback in PHP?

Hello, Implementation of a callback is done like ...READ MORE

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

How to get thumbnail of youtube video from youtube API?

Hii @kartik, If you want the biggest image ...READ MORE

Apr 1, 2020 in PHP by Niroj
• 82,840 points
1,723 views
0 votes
1 answer

Error:PDOException SQLSTATE[HY000] [2020] No such file or directory in php?

Hello, I checked php -i | grep pdo and noticed ...READ MORE

Apr 2, 2020 in PHP by Niroj
• 82,840 points
1,583 views
0 votes
1 answer

How can you display the error messages?

Hey, In the HTML form, we add ...READ MORE

Feb 13, 2020 in PHP by Niroj
• 82,840 points
3,662 views
0 votes
1 answer

What is the best way to allow plugins for a PHP application?

Hello @kartik, I've used, it's an attempt to ...READ MORE

Apr 15, 2020 in PHP by Niroj
• 82,840 points
885 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,840 points
1,453 views
0 votes
1 answer

How to Validate Form Data With PHP?

Hey @kartik, The first thing we will do ...READ MORE

Feb 13, 2020 in PHP by Niroj
• 82,840 points
3,507 views
0 votes
1 answer

I am trying to run following command But I end up with an error :

Hello Nishant, You are getting this error because your ...READ MORE

Apr 9, 2020 in PHP by Niroj
• 82,840 points
951 views
0 votes
1 answer

What are the vulnerability related to PHP Form?

Hii, The $_SERVER["PHP_SELF"] variable can be used by ...READ MORE

Feb 13, 2020 in PHP by Niroj
• 82,840 points
3,364 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,840 points
1,491 views
0 votes
0 answers

What are the differences in die() and exit() in PHP?

I think both have the same functionality, ...READ MORE

Apr 8, 2020 in PHP by kartik
• 37,520 points
934 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,840 points
1,161 views
0 votes
2 answers

Define a SQL query? What is the difference between SELECT and UPDATE Query? How do you use SQL in SAS?

HI.. SQL is Structured Query Language, which is ...READ MORE

Aug 8, 2020 in PHP by anonymous
10,942 views
0 votes
0 answers

How to Upload Aws lightsail increase upload size

Aws lightsail wordpress increase upload size limit ...READ MORE

Mar 16, 2020 in PHP by anonymous
• 120 points
1,606 views
0 votes
1 answer

What are the best way to allow plugins for a PHP application?

Hii, Here is an approach I have  used, it's ...READ MORE

Apr 1, 2020 in PHP by Niroj
• 82,840 points
825 views
0 votes
1 answer

How can you upload a file using PHP?

Hello, To upload a file by using PHP, ...READ MORE

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

How can we avoid my php form from hacking?

Hii @kartik, If you want to know php ...READ MORE

Feb 13, 2020 in PHP by Niroj
• 82,840 points
2,683 views
0 votes
1 answer

How to validate E-mail and URL of Php form?

hey, The code below shows a simple way ...READ MORE

Feb 13, 2020 in PHP by manish
2,478 views
0 votes
1 answer

Complete PHP form with proper validation and syntax

Hey @kartik, It's quite simple to have php ...READ MORE

Feb 19, 2020 in PHP by Niroj
• 82,840 points
1,662 views