Web Toolbar by Wibiya

Archive for the ‘PHP’ Category

Smarty – Passing ‘title’ variable to header template

Sunday, January 23rd, 2011

Generally when majority of your templates use the same headers and footers, it is obviously a good choice to split those out into their own templates and include them. But what if the header needs to have a different title, depending on what page you are coming from? For this ...

Smarty – Handle blank variables

Sunday, January 23rd, 2011

Sometimes instead of printing an empty variable you may need to print a default value. For example printing a sign "*" instead of printing nothing so that the page should appear in understandable form. Yes! you can use rather most of the people use {if} statement for this but there ...

How to access template variables from PHP script ?

Saturday, January 22nd, 2011

Using Smarty method get_template_vars(), you can access the smarty template variables  in PHP scripts. However, these template variables are only available after or  during the execution of template. The other way to use those template variables can be achieved by embedding PHP code directly into the smarty template using {php}  ...

JSON and PHP

Saturday, January 15th, 2011

JSON stands for JavaScript Object Notation and used by many technologies like PHP and Java.Its data interchange data format used for transferring the data over the internet.it was made to be used with JavaScript for accessing remote data, but now it is used by many other languages as JSON data ...

How to send e-mail from localhost in php (windows environment) ?

Thursday, December 9th, 2010

You may have thought several times that why e-mail not sent from the localhost while using any of the server whether it is XAMPP,  WAMP or any other in windows environment? well you can send email from localhost in PHP, only you need to do is make some changes in ...