DVWA-CSRF (Cross-Station Request Forgery)

CSRF: (Cross Site Request Forgery), an attacker constructs a request address of a functional interface in the background of a website, induces users to click on it or uses special methods to load the request address automatically. When the user is lo ...

Posted by FlyingIsFun1217 on Tue, 20 Aug 2019 00:30:39 -0700

Basic knowledge of php

Basic introduction php marker <? php?> If the content of the file is pure PHP code, delete the PHP end tag at the end of the file. You can avoid accidentally adding spaces or newlines after the end tag of PHP, which will cause PHP to start outputting these blanks without the intention of output in the script at this time. <? ...

Posted by makeshift on Mon, 01 Apr 2019 12:24:29 -0700

thinkphp Distributed Database

1. distributed data base What is it? The distributed database of tp is mainly through this configuration: DB_DEPLOY_TYPE'=> 1, //database deployment: 0 centralized (single server), 1 distributed (master-slave server) 2. What is the read-write separation between master and slave servers? A master-slave database is a master database with n ...

Posted by geek_girl_2020 on Fri, 29 Mar 2019 22:57:28 -0700

The use of pdo in php

Step 1: Test whether pdo is enabled: Run the following code to indicate that the PDO has been installed if the parameter is wrong. If the description object does not exist, modify the PHP configuration file php.ini and cancel the previous comment on php_pdo_yourssqlserverhere.extis. $test=new PDO(); Warning: PDO::__construct() expects a ...

Posted by pstevereynolds on Mon, 25 Mar 2019 01:57:27 -0700

PHP Design Patterns - DAO (Data Access Objects) Data Access Object Patterns

Tidy up your study Aaron Saray Write some demo s of PHP design patterns and their own understanding. If you find that your contempt has misunderstood, please point out immediately. Thank you for patting bricks and kneeling for whipping. /** * DAO (Data Access Objects) Data Access Objects * ------------------------------------- * ** From Exp ...

Posted by chigley on Tue, 12 Feb 2019 18:27:19 -0800