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.

review_1
for more help or detials about the function please check http://www.php.net/manual/en/function.strpbrk.php

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

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

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,

change_lang1This 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.:-)

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!

enter-bl
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! :D
Step 7: Log in !

Log in and make sure everything looks good.

wpmu-ins
now its install. enjoy the wordpress MU :D  you can use it many way.

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 :D

here is my counting file count.txt download here the file.

This script is a example of date() function. That displays the date and time in the title bar, all you do is just insert the code in between the <title> and </title> tags.
Here the code,

<title>
<?php
echo “( Date”;
echo date(“l”);  //Parameter for  A full textual representation of a  day of a week.
echo “, “;
echo date(“F d, o”); //Parameter for The Months, Dates, Years.
echo ” Time “;
echo date(“g:h:i A”);  //Parameter for The Hours, Minutes, Seconds with leading zeros.
echo “)”;
?>
</title>

you can download the PHP file from here . Download the file and put it into your server and run. very simple try it :) .

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:

xylo2

Download XYLO: Xylo theme for WordPress

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.

WELLCOME

Hi, I’m saeed Ahmed. Study in computer science & engineering at Rajshahi University of engineering & Technology. I enjoy programming; recently I work on web applications. Please feel free to share and suggest me your good thoughts. Email me: saeedmail@yahoo.com

 

November 2009
S S M T W T F
« Aug    
 123456
78910111213
14151617181920
21222324252627
282930  

My Linkedin Profile

FOLLOW ME ON TWITTER :)

Categories

Archives

Blog Stats

  • 11,130 hits

Some Moment Can't Never Forget

Image013

profile

5493_1195770810448_1113791260_30638811_5916842_n

5493_1195767570367_1113791260_30638805_6606845_n

amre dhakkay sob agune pheltace

rokib guru, emon ganju, me & rasel ghoti

More Photos