Defining class in PHP
by Binod on Sep.19, 2011, under PHP, Technology, Web Designing
Leave a Comment :PHP more...E-mail Script in PHP
by Binod on Sep.18, 2011, under PHP, Web Designing
This is an example of simple e-mail script for PHP that can be used.
//define the receiver of the email
$to = ‘someone@somemail.com’;
//define the subject of the email
$subject = ‘Test email’;
Embed your font in website
by Binod on Sep.17, 2011, under Tips & Tricks, Tutorial, Web Designing
I was thinking to embed my own font to the website but How?? suppose i am making a website with a nepali font ie Preeti. But the problem is there is no font installed in my clients computer, so i receive the unwanted output. to fix it i started to search n finally i m with the solution. Here it goes.
Demo Font Taken is “PREETI_1.TTF”
Write your sentence in reverse order [string manipulation]
by Binod on Sep.17, 2011, under PHP, Tips & Tricks
Its time for fun. after writing few blogs about PHP basics syntax i wished to play with strings. I want to Display the sentence in a reverse order.
Suppose i have a sentence “ Hello Binod How Are you” i wish to display it as “you Are How Binod Hello”
Enjoy the Code. Here it goes.
Date() in PHP
by Binod on Sep.15, 2011, under PHP, Technology
This is a simple example of printing the date in different format that can be applicable for various purposes.
< ?php
// Assuming today is: September 10th, 2011, 5:16:18 pm
$today = date("F j, Y, g:i a"); // September 10, 2011, 2:34 am
echo "
“.$today;
Useful string functions for web development
by Binod on Sep.14, 2011, under PHP, Technology, Tips & Tricks
Here i have shared some useful string manipulation functions that can be very important in website development. I had not explained it but the explanation code is all here. i guess the example will explain itself. if you need any help feel free to comment.
$string_a = “This is a long string”;
foreach in PHP
by Binod on Sep.13, 2011, under PHP, Technology
This is a simple example of playing with an array and a for loop with keyword FOREACH in PHP.
$arr = array(“zero” , “one” , “two” , “three” , “four” );
/*For each example 1 */
foreach ( $arr as $value ){
Defining a number Format in PHP
by Binod on Sep.12, 2011, under PHP, Technology
Leave a Comment :PHP, PHP Web Designing more...Difference between .MSI files and .EXE files
by Binod on Sep.11, 2011, under General, Technology, Tips & Tricks
MSI files are database files, used by Windows Installer. They contain information about an application which is divided into features and components, and every component may hold files, registry data, shortcuts etc. The MSI file also contains the UI that is to be used for installing, and various other data such as any prerequisites to look for, custom actions to execute, the order of the installation procedure, whether to support Administrative installations, etc. It can also contain the actual files to be installed themselves (this isn’t always the case though, the files can also be in an external CAB file or just as plain uncompressed files in a location where MSI can find them).
Post Increment and Pre increment
by Binod on Sep.10, 2011, under PHP, Tips & Tricks
Most of the Programmer along with me are confused in Post Increment/decrement and Pre Increment/decrement of the Operator. I am here posting an example of Post Increment and Pre increment done in PHP. This must help us all.