+
by Peter De Vos
1. PHP
1.1. include("file.inc");
1.2. $_GET['veld'];
1.3. $_POST['veld'];
1.4. header("Location: test.php");
1.5. $_REQUEST['veld'];
1.6. $_COOKIE['veld']
1.7. $_SESSION['veld']
1.8. $forbidden = array("<", ">", " ", "'"); $correction = array("<", ">", " ", "‘"); $strNaam = str_replace($forbidden, $correction, $strNaam);
1.9. trigger_error('fout', E_USER_ERROR);
1.9.1. E_USER_ERROR
1.9.2. E_USER_WARNING
1.9.3. E_USER_NOTICE
1.10. function errorfunctie ($level, $boodschap, $bestand, $regelnr) set_error_handler('errorfunctie');
1.11. session_start();
1.12. unset($_SESSION[‘views’]);
1.13. session_destroy();
1.14. if(isset($_SESSION[‘views’]))
1.15. setcookie(“userid”, “14”, time()+60*60*24*30);
2. MySQL
2.1. ORDER BY veld
2.1.1. DESC: aflopend (10,9,8...)
2.1.2. ASC: oplopend (1,2,3...)
2.2. LIMIT 1
3. HTML
3.1. <form name="test" action="test.php" method=...>
3.1.1. method = GET
3.1.2. method = POST