How to protect your WordPress from XML-RPC attack

WordPress is the most popular Content Management System. This popularity makes WordPress a perfect target for hackers. The most common attack faced by a WordPress site is XML-RPC attack. The WordPress XML-RPC is a specification that aims to standardize communications between different systems. It uses HTTP as the transport mechanism and XML as encoding mechanism which allows for a wide range of data to be transmitted. Today in this tutorial …

Continue reading

Create Dynamic Tree View Menu with PHP, MySQL, CSS

In this tutorial I will describe how to create dynamic tree view menu with PHP, MySQL, CSS. If you want to display menu items as a tree view structure following tutorial will help you. Steps to generate tree view menu: Step 1: First we need to create a table ‘items’ in MySQL database. This table contains four column, The column id is the item id and name is the item …

Continue reading

jQuery Interview Questions and answers Set – 2

In this tutorial we are providing some set of jQuery Interview Questions and answers and explanation for freshers and professionals, which will help to prepare for technical interviews. What is the use of jQuery.ajax method ()? jQuery.ajax method is used for asynchronous HTTP requests. Is jQuery is a replacement of JavaScript? No, jQuery is not a replacement of JavaScript. What is the use of jQuery each function? jQuery each function …

Continue reading

jQuery Interview Questions with answers

In this tutorial we are providing some set of jQuery Interview Questions with answers and explanation for freshers and professionals, which will help to prepare for technical interviews. What is jQuery? jQuery is not a programming language but a well written JavaScript code. It is a JavaScript code, which do document traversing, event handling, Ajax interactions and Animations. Whether jQuery HTML work for both HTML and XML documents? No, jQuery …

Continue reading

HTML5 interview Questions and Answers

HTML5 is a markup language used for structuring and presenting content on the World Wide Web. It is the fifth and current major version of the HTML standard. In this tutorial we are providing some set of frequently asked HTML5 interview Questions. Read PHP interview Questions and Answers. What are the new features in HTML5? Key new features of HTML5 include: Improved support for embedding graphics, audio, and video content …

Continue reading

How to use the PHP Ternary Operator

In this tutorial I will show you how to use the PHP ternary operator. PHP Ternary operator logic is the process of using “(condition) ? (true return value) : (false return value)” statements to shorten your if/else structures. It is called the ternary operator because it takes three operands – a condition, a result for true, and a result for false. Following example with if/else logic: Ternary Operator Ternary operator …

Continue reading

PHP Interview Questions and Answers Set – 5

In this tutorial we are providing some set of frequently asked PHP Interview Questions for experienced candidates which will help them to get success in interview. Read PHP Interview Questions and Answers Set – 4. What is the difference between ereg_replace() and eregi_replace()? The function eregi_replace() is identical to the function ereg_replace() except that it ignores case distinction when matching alphabetic characters. Is it possible to protect special characters in …

Continue reading

PHP Interview Questions and Answers Set – 4

In this tutorial we are providing some set of frequently asked PHP Interview Questions for experienced candidates which will help you to get success in interview. Read PHP MySQL Interview Questions and Answers Set – 3. How to find current date and time? The date() function provides you with a means of retrieving the current date and time, applying the format integer parameters indicated in your script to the timestamp …

Continue reading