Difference between echo and print in php

There is slight difference between echo and print. But both are used to print line of code to the browser. There are two main difference between echo and print:- echo does not return any value while print returns true or false on successful print. echo is faster than print. I advice you to use echo in your code and don't use echo and print both because [...]

By |2017-09-12T19:15:35+00:00April 17, 2011|Programming|0 Comments

Email validation form in php

To verify email first we make our form and in this form make one input text field where user enters its email id and a submit button which when pressed shows that email is valid or not. In our php code we use regular expression to check the email whether its valid or not. In our php code we first check that whether form is submitted or not [...]

By |2017-09-12T19:15:36+00:00February 8, 2011|Programming|0 Comments

Find IP address, referrer, uri , operating system using php

Today i will teach you how to find IP address, referrer, uri , operating system using php. We will use $_SERVER to get all this information. $_SERVER['HTTP_REFERER'] is used to get the url of the page that refered the user to the current location. $_SERVER['REMOTE_ADDR'] is used the get the client IP address $_SERVER['REQUEST_URI'] is used to get the uri of the URL. For example the [...]

By |2017-09-12T19:15:36+00:00February 8, 2011|Programming|0 Comments
Go to Top