Welcome! If you like our Blog so please Follow this blog and also +1 this blog here---->
Showing posts with label PHP Advanced. Show all posts
Showing posts with label PHP Advanced. Show all posts

Sunday, 19 August 2012

PHP Advanced Tutorial 10: PHP Exception Handling

0 Comments
Exceptions are used to change the normal flow of a script if a specified error occurs. What is an Exception With PHP 5 came a new object oriented way of dealing with errors. Exception handling is used to change the normal flow of the code execution if a specified error (exceptional) condition occurs. This condition is called an exception.This is what normally happens when an exception is triggered: The current code state is saved The code...[Readmore]

PHP Advanced Tutorial 9: PHP Error Handling

0 Comments
The default error handling in PHP is very simple. An error message with filename, line number and a message describing the error is sent to the browser. PHP Error Handling When creating scripts and web applications, error handling is an important part. If your code lacks error checking code, your program may look very unprofessional and you may be open to security risks. This tutorial contains some of the most common error checking methods...[Readmore]

PHP Advanced Tutorial 8: PHP Secure E-mails

0 Comments
There is a weakness in the PHP e-mail script in the previous chapter. PHP E-mail Injections First, look at the PHP code from the previous chapter: <html><body><?phpif (isset($_REQUEST['email']))//if "email" is filled out, send email  {  //send email  $email = $_REQUEST['email'] ;  $subject = $_REQUEST['subject'] ;  $message = $_REQUEST['message'] ;  mail("someone@example.com",...[Readmore]