PHP
< Languages
< Web Design
< Design
< karl.chvojka
I’ve compiled a small list of some useful code snippets which might help you when writing your PHP scripts… Email address check Checks for a valid email address using the php-email-address-validation class.
Warning : SimpleXMLElement::__construct() [ simplexmlelement.--construct ]: Entity: line 2: parser error : AttValue: " or ' expected in /home/postscript5/gracesmith.co.uk/wp-content/themes/viewport/functions.php on line 565 Warning : SimpleXMLElement::__construct() [ simplexmlelement.--construct ]: in /home/postscript5/gracesmith.co.uk/wp-content/themes/viewport/functions.php on line 565 Warning : SimpleXMLElement::__construct() [ simplexmlelement.--construct ]: ^ in /home/postscript5/gracesmith.co.uk/wp-content/themes/viewport/functions.php on line 565 Warning : SimpleXMLElement::__construct() [ simplexmlelement.--construct ]: Entity: line 2: parser error : attributes construct error in /home/postscript5/gracesmith.co.uk/wp-content/themes/viewport/functions.php on line 565 Warning : SimpleXMLElement::__construct() [ simplexmlelement.
When it comes to security, remember that in addition to actual platform and operating system security issues, you need to ensure that you write your application to be secure. When you write PHP applications, apply these seven habits to make sure your applications are as secure as possible: Validate input Guard your file system Guard your database Guard your session data Guard against Cross-Site Scripting (XSS) vulnerabilities Verify form posts Protect against Cross-Site Request Forgeries (CSRF) Validate input
Introduction If you are developing a web-based system whereby a user, or users, are logging in and staying logged in (sessions, cookies), the following ideas are written with you in mind. Making sure your authentication and authorization schemes are secure is going to be part of your task. All of those things fall under the umbrella term: security. Any competent, security conscious person should already know that most intrusions/attacks are undertaken as follows:
Une résumé en français est disponible en fin d’article. Lately, I’ve been looking for ways to detect faces in photos with PHP. Nowadays, face detection is built in many consumer products (camera obviously, but also Google and iPhoto), and seems to be a pretty common job. So I expected to find many solutions for doing it with PHP.