
Search In
Welcome to Findnerd. Today we are going to discuss the multiple traits in php. Trait is also a classes, only difference is that we can not create object for traits. We can only use the methods which are implemented in it via use keyword. Please check
Why we perform Penetration Testing ?
Hello Readers..
As we know that, What is Penetration Testing? But do we know why we perform this penetration testing. By this blog we are able to understand that why we do this testing.
Below are mentioned few re
Playing sounds in Android
Copy your sounds in raw/ folder in res/ . If you do not have raw/ folder then make one by right clicking on
res/ folder, click on Android resource directory and then giving directory name as “raw” and selecting resource ty
What happens when the user views a form in the browser for a resource, rails application creates a random string as a authenticity token and store that random token in the session and when the form generates, it places that token in the form as a hid
In spring security bydefault the csrf protect in on. As a result it asks for token during login and other requests. Although its not a good practise to disable the protection but we can do it. As we can see in the code below,
http.csrf().disable() ,
To restrict directory access by IP address you need to follow the steps given below:
Create a file or open a file .htaccess(started with a dot) inside the directory that you want to protect.
Add the code given below to the file:
Order Deny,Allow
SQL injection is a technique where malicious users can inject the SQL commands /queries into an SQL statement, resulting in false input of the web page and the security of a web application.
Eventually CakePhp already protects the application again
Friend Function
These are special functions which can access the private members of a class.
Private and protected data of class can be accessed from a friend function.
Declaration of Friend Function
class className
{
...... .... ......
Here we will learn about the abstract classes and methods. When we define a classes as an abstract then we have to follow the below rules:
1- We can not create an object of this abstract class.
2- The class becomes abstract if the class contains at
An Asynctask doesn't depend on Activity life-cycle that contains it. Like if we start an AsyncTask inside an Activity and then we rotates the device, the Activity will be destroyed at that point but the AsyncTask will remain same or not die until it