Thursday 22 August 2013

Php-training-Thursday-august-22-2013


Introduced New Array Functions in PHP

array_combine() - Creates an array by using one array for keys and another for its values.
Definition and Usage
Syntax
array_diff_uassoc() - Computes the difference of arrays with additional index check which is performed by a user supplied callback function.
Definition and Usage
Syntax
More Examples
array_udiff() - Computes the difference of arrays by using a callback function for data comparison.
Definition and Usage
Syntax
Examples
array_udiff_assoc() - Computes the difference of arrays with additional index check. The data is compared by using a callback function.
Example
Definition and Usage
Syntax
array_udiff_uassoc() - Computes the difference of arrays with additional index check. The data is compared by using a callback function. The index check is done by a callback function also.
Example
Definition and Usage
Syntax
array_walk_recursive() - Apply a user function recursively to every member of an array.
Example
Definition and Usage
Syntax
array_uintersect_assoc() - Computes the intersection of arrays with additional index check. The data is compared by using a callback function.
Example
Definition and Usage
Syntax
array_uintersect_uassoc() - Computes the intersection of arrays with additional index check. Both the data and the indexes are compared by using separate callback functions.
Example
Definition and Usage
Syntax
array_uintersect() - Computes the intersection of arrays. The data is compared by using a callback function.
 
Definition and Usage
Syntax
Example

Saturday 17 August 2013

Php-training-Saturday-august-17-2013


How to Implement CAPTCHA Image in PHP Module


                     PHP Module
                     Stages
                                -Quering
                                -Checking



                 The AJAX HTML Page (the Front-end)
                     The JavaScript
                     The PHP Server Page (the Backend)
                     The Ways to Make It More Secure


                 How does a CAPTCHA work?
                     Creating the random text
                     Writing the text to the image
                     Check if the user entered the code correctly
                     Improvements and Conclusion

Thursday 15 August 2013

php-training-Thursday-august-15-2013




Build your own PHP Survey / Poll Application


The Survey itself
The Results Page
Set a Question for your Survey
Getting prepared - Check if your downloaded files work


Create a Database for a Survey Application


PHP Code to Set a question for a survey


PHP Survey Code


Adding the Survey Vote to the Database


View the Survey Results

How Many People voted for a particular Option?             

Display a Graphics for the results

Wednesday 14 August 2013

php-training-Wednesday-august-14-2013




Learn about PHP User Authentication


           A word about the database used for this section


           Setting a Session


           PHP Session Variable



           Register a New User with PHP and MySql


          PHP User Authentication
          Validation
          Passwords
          Some more things worth considering on your login/signup pages
          Conclusion

Tuesday 13 August 2013

php-training-Tuesday-august-13-2013


Learn PHP and AJAX (Asynchronous JavaScript and XML)


What is AJAX ?
How AJAX Works
AJAX is Based on Internet Standards
AJAX Google Suggest
Start Using PHP And AJAX Today


Client Side HTML file      
Server Side PHP file


 AJAX XML Example
 The HTML Page Example
 The PHP File


AJAX Live Search Example – The HTML Page
AJAX Live Search The PHP File

 
The AJAX RSS Reader PHP File


Example Explained – AJAX Poll HTML Page
AJAX Poll PHP File
AJAX Poll Text File