Subscribe to ITTreats.com - PHP

PHP Interview Questions and Answers Part-3

PHP Interview Questions and Answers Part-3 For printing out strings, there are echo, print and printf. Explain the differences. echo is the most primitive of them, and just outputs the contents following the construct to the screen. print is also a construct (so parentheses are optional when calling it), but it returns TRUE on successful [...]

PHP Interview Questions and Answers Part 2

How can we send mail using JavaScript? No. There is no way to send emails directly using JavaScript. But you can use JavaScript to execute a client side email program send the email using the “mailto” code. Here is an example: function myfunction(form) { tdata=document.myform.tbox1.value; location=”mailto:mailid@domain.com?subject=…”; return true; } What is the functionality of the [...]

PHP Interview Questions and Answers Part 1

PHP Interview Questions and Answers Part-1 What’s PHP The PHP Hypertext Preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications. What Is a Session? A session is a logical object created by the PHP engine to allow [...]

Parsing Pay Per Click XML FEED

Parsing PPC XML feed is now easy, use the following  2functions  and get your required result in multi dimensional array format and go ahead with your own html  version  of the feeds.. The functions require is 1. parse_ppc 2.getcontents

Sending Emails using PHP Applications

Sending Emails using php is very easy we have predefined mail function for sending emails.

working with XML Files in PHP

Tutorial for  Working with XML Files in PHP

PHP pagination tutorial

Use Pagination to display results of your MySQL query over multiple pages in PHP. This php pagination tutorial will help you out in sorting out problems with pagination

Sessions in PHP

Using Sessions in PHP Session variables hold information about one single user, and are available to all pages in one application. over internet to maintain state of the user we will use sessions, sessions are temporary, by a unique id web server will keep the user data in the web server with which user state [...]

Using Cookies in PHP

Using Cookies in PHP cookie is a piece of information stored on to the users computer.We can set timestamp for cookie which will stores the data till the date of expiry until and unless user clear off the cookies. in PHP we can create, reset, clear the cookies <br> Creating Cookie by using setcookie function [...]