Search string from a set of string
i got a problem to search a string from a set of string. but i solved it by using a php function. the function is strpbrk.

for more help or detials about the function please check http://www.php.net/manual/en/function.strpbrk.php
Add comment June 8, 2009
Centre a div
How to centre a div. It’s actually very easy, although you need to a few hacks in browsers.
body {
text-align: center;
min-width: 700px;
}
#wrapper {
margin: 0px auto;
width: 700px;
text-align: left;
}
IE also misinterprets text-align: center. Applying this to the body centres the div in IE. However it also centres the body text in all the other browsers as well. To get round this you need to use text-align: left. on the div that you’re centering.
try it, its really simple.
Add comment February 25, 2009
A Free Hosting Package
If you wish to have a professional shared hosting quality in a free hosting package, come and host with www.000webhost.com and experience the best service you can get absolutely free.
I just found this free host with:
- 1500 MB of Disk Space
- 100 GB Bandwidth
- unlimited subdomain in one account
- Your own domain hosting
- unlimited mysql databases
- cPanel Control panel
- Website Builder
- Over 500 website templates ready for download
- Free POP3 Email Box and Webmail access
- FTP and Web based File Manager
- PHP, MySQL, Perl, CGI, Ruby.
- No Ads at all !
They provide hosting absolutely free, there is no catch. You get 1500 MB of disk space and 100 GB bandwidth. They also have cPanel control panel which is amazing and easy to use website builder. Moreover, there is no any kind of advertising on your pages:D
You can register here: www.000webhost. com
and visit www.000webhost. com for more info…
This is not the end there also have more fun just check it
ow i just forget to tell you, that sometimes they want IP verifications for bangladeshi signUP. To make it simple use US proxy.
Add comment February 5, 2009
Multilanguage web site in PHP
Few day earlier I have a done a project that have Multilanguage supported. It was quite interesting for me. Because it is automatically select your language. Like if you come from Bangladesh then its show bangle and if you come from England then its show English. Just not stop there its show the currency automatically. But I want to give thanks to the phpclasses forum that’s help me a lot to do this project.
Now this article I want to share a little tool of PHP. That tool helps who want to make Multilanguage website. Now a days many site use this Multilanguage option in there website. I write a few PHP code here for how to add Multilanguage options in your site. This gives you an idea. Its very easy code here downloads the codes from here and run into your localhost or your server.
Here I write the PHP code of the language change function that I create.
Here it is,
This code is not enough to run. To make it functionally, download Multilanguagesite.rar and test it into you server. Few more things needed a bangla unicode for change into bangla. And modify the language files and make different your website with Multilanguage support.:-)
2 comments January 21, 2009
Installing WordPress MU on windows localhost
WordPress has finalized a stable multi-user version of its world famous blogging software. if you wanted to have more than one blog in WordPress you had to have multiple installs. WordPressMU let’s you do the same thing with a single install and run them under sub-domains if you desire. You can also continue to add blogs and users to those blogs until you get tired.
I was encountering some difficulties installing WordPress MU using different subdomains, and I finally figured it out after some time, so I thought I’d do a walkthough to help fellow MU-wannabes. Just follow few step to install. Installing wordpressmu is difficult then wordpress. So lets start…
Here I discuss about install wordpressMU into localhost. For this you need few change in windows configuretion and localhost server. First I discuss how to change your http://localhost to http://localhost.com .
step 1: Setting up locally on Windows!
WordPressmu will not run on the address http://localhost/ so will have to change the Windows HOST file a bit. I added this to the file:
127.0.0.1 localhost.com
This file can be found in this path in Windows.
c:\windows\system32\drivers\etc\hosts
OR there are another option to change this. Just download HostsXpert software and install. To using this software you change your localhost domain what you need.
Step 2. Download WordPress MU and extract the files!
You can download from here http://mu.wordpress.org/download/ . grab a copy of the source code. It should be a zip or tar.gz file. Doesn’t matter.
Step 3. Upload Those Files!
Extract all files into desired folder (ex: http://localhost.com/wordpressmu/) for host (ex: http://www.yourdomain.com/wordpressmu/)
Step 4: Enable mod-rewrite!
For Apache on my machine, mod-rewrite is not enabled by default. To enable mod-rewrite goto this file httpd.conf. you find this file here Open your httpd.conf file.(I install my server in c directory.
Search and change the following code:
#LoadModule rewrite_module modules/mod_rewrite. so
Remove the # at the beginning of the line. Should look like this
LoadModule rewrite_module modules/mod_rewrite.so
Save changes and Restart Apache Server.
Step 5: Create Database!
Create Database (without any tables). In PHPMyAdmin this task is fairly simple.
Step 6: Enter the details!
Select “subdomains” in the Blog Addresses section, enter your mySQL credentials into the page, and the details of your main blog.
Hit submit and you will seeing that you are done! 
Step 7: Log in !
Log in and make sure everything looks good.

now its install. enjoy the wordpress MU
you can use it many way.
9 comments January 11, 2009
Count text from file using C
i have a problem when count something in a text file with 1. like done a work and write 1 in the text file. but the problem arise when i want to count those. here i want to share a somple C programming code. its very simple task. i had done this kind of programming at 1st semister. but after 2yrs i need this code :)
any wany here is the code:
#include <stdio.h>
#include <conio.h>
int main(int argc, const char *const *argv)
{
clrscr();
FILE *file = fopen(”count.txt”, “r”);
if ( file )
{
int ch, prev = ‘0′ /* so empty files have no lines */, text = 0;
while ( (ch = fgetc(file)) != EOF ) /* Read all chars in the file. */
{
if ( ch == ‘1′ )
{
text++; /* Bump the counter for every text. */
}
prev = ch; /* Keep a copy to later test whether… */
}
fclose(file);printf(”lines = %d\n”, text);
}getch();
return 0;
}
copy this and paste to the root directories. and enjoy counting
here is my counting file count.txt download here the file.
Add comment December 11, 2008
My First WP themes
XYLO, I designed my first wordpress theme last night. It took 8 hrs. Started at 9PM and went to bed at 5AM. I tested it in firefox, Opera and internet explorer. Its is completely PHP, div and css based design. I didnt use any table. here is a screenshot of this file.
preview of XYLO:
Download XYLO: Xylo theme for WordPress
3 comments November 14, 2008
A Digital Clock Using JavaScript’s
Hi friends, today’s I want to share a JavaScript’s program. Actually few days ago I started reading JavaScript’s. I found that JavaScript’s is very essential for web programming. JavaScript’s add dynamic things to a program.
Here I give a JavaScript’s code using date object. I use some build in JavaScript’s function. Here I created a clock using JavaScript’s. Here the code for a digital clock. You can use the clock in your website. The code is very simple to understand. The clock gives you hours, minutes, seconds and A.M and P.M. So guys lets check it out.
<HEAD>
<script type=”text/javascript”>
<!–
function startclock()
{
var time=new Date();var hours=time.getHours();
var mins=time.getMinutes();
var sec=time.getSeconds();
var AandP=” “;
if (hours>=12)
AandP=”P.M.”;
else
AandP=”A.M.”;
if (hours>=13)
hours-=12;
if (hours==0)
hours=12;
if (sec<10)
sec=”0″+sec;
if (mins<10)
mins=”0″+mins;
document.clock.clockspot.value=hours+”:”+mins+”:”+sec+” “+AandP;
setTimeout(’startclock()’,1000);
} //–>
</script>
</HEAD>
<BODY onLoad=”startclock()”>
<FORM name=”clock”>
Current Time: <INPUT TYPE=”text” name=”clockspot”>
</FORM>
</BODY>
To run this code just copy the code and paste it. Open to your browser. And enjoy JavaScript’s.
4 comments September 26, 2008
Install xampp in ubuntu
At last i start my web programming into ubuntu using lampp. Its really fun. But first Time I’ve a problem to install xampp server. So I start to finding solve of this problem. And I done it. Now I want to share this solution to you.
First You have to download xampp for ubuntu/linux. Then save the installation file into your home folder. Now open terminal & write the following command
————————————————————————————
sudo tar xvfz xampp-linux-1.6.6.tar.gz /opt
————————————————————————————
Then this will extract the file into opt folder.
If extraction complete properly then your installation complete.
For start your xampp server type the following commed
———————————————————
sudo /opt/lampp/lampp start
———————————————————
And stop the server write the command
————————————————————
sudo /opt/lampp/lampp stop
————————————————————
Now enjoy lampp server &-)
3 comments May 28, 2008











