Binod's Blog

Defining class in PHP

by on Sep.19, 2011, under PHP, Technology, Web Designing

This is a simple Example of Defining a class in PHP.

class test
{
function do_test()
{

Leave a Comment : more...

E-mail Script in PHP

by 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’;

Leave a Comment : more...

Embed your font in website

by 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”

Leave a Comment :, , more...

Write your sentence in reverse order [string manipulation]

by 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.

Leave a Comment : more...

Date() in PHP

by 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;

Leave a Comment : more...

Useful string functions for web development

by 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”;

1 Comment : more...

foreach in PHP

by 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 ){

Leave a Comment : more...

Defining a number Format in PHP

by on Sep.12, 2011, under PHP, Technology

This is a simple example of defining the number format in PHP

$a = 10;
$b = 250;

Leave a Comment :, more...

Difference between .MSI files and .EXE files

by 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).

1 Comment : more...

Post Increment and Pre increment

by 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.

Leave a Comment : more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...