Snippets tagged “security”
10 snippets use this tag.
- How to Get Remote IP Address in PHPPHP
Sometimes getting the IP address of the client can be tricky. With the help of this snippet, you will manage to get the real remote IP address in PHP.
- How to Use serialize() and unserialize() in PHPPHP
This tutorial can be quite helpful for you, if you are interested in using the PHP serialize() and unserialized() functions in your programming practice.
- Invoking a PHP script from a MySQL triggerPHP
It is possible to invoke a PHP script from a MySQL trigger by using the system() function in the trigger's body.
- Main differences between SOAP and RESTful web services in JavaJava
SOAP (Simple Object Access Protocol) and REST (Representational State Transfer) are two different styles of web services that can be used to expose the functionality of a web-based system over the internet.
- PHP setcookie "SameSite=Strict"?PHP
The "SameSite=Strict" attribute is a security feature that can be added to a cookie when using the PHP setcookie() function.
- phpMyAdmin allow remote usersPHP
phpMyAdmin is a web-based tool for managing MySQL and MariaDB databases.
- The CSRF token is invalid. Please try to resubmit the formPHP
This error message is typically related to a security feature called "Cross-Site Request Forgery" (CSRF) protection.
- What is mod_php?PHP
mod_php is an Apache module that allows PHP code to be executed directly by the Apache web server.
- What is PHPSESSID?PHP
PHPSESSID is a session cookie that is used to identify a user's session on a website.
- XSS filtering function in PHPPHP
Here is an example of a basic XSS filtering function in PHP: