Trending questions in PHP

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,294 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,062 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,456 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,159 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,108 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,629 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,241 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
803 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,572 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,777 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,661 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,374 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,830 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,331 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,830 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,668 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,042 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,465 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,534 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,393 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
775 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,388 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,233 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
812 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
878 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,335 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,113 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,634 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
770 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,488 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
889 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,615 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,391 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,570 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
1,182 views
0 votes
1 answer

Error: Global Variable is not accessable to local function

Hey kartik, A variable declared outside a function has a ...READ MORE

Feb 19, 2020 in PHP by Niroj
• 82,840 points
1,116 views
0 votes
1 answer

What is Php json?

Hii @kartik, JSON stands for JavaScript Object Notation, ...READ MORE

Feb 14, 2020 in PHP by Niroj
• 82,840 points
619 views