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 &-)

Now a days I can’t think one day without internet.  Guys i think you are in the same situation like me. Today’s tutorial for whom, who is new in ubuntu family. To use ubuntu properly u’ve Download packages of ubuntu. So you need a internet connection :-) . Thats why i write this tutorial. So let see how to use gprs/edge on ubuntu.

Now follows those steps for connecting internet.

first open your terminal, then type those command step by step..

#Now open your terminal, write this command for access superuser.

———————————————–
~$ su
———————————————–

after giving password ur now access root. For access root see my post on Using Root User in Ubuntu.

#Now write following command

———————————————–
~$ wvdialconf
———————————————–

# Now you have to edit wvdial.conf file. And to edit the wvdial.conf file type command:

———————————————–
~$ gedit /etc/wvdial.conf
———————————————–

#Edit user name and passwd. clear all semicolons .

#And to start using internet enter command:

———————————————–
~$ wvdial
———————————————–

That’s all. I hope u r using internet properly. I think this the most easiest work to do. If any prob just contact me.

I think Ubuntu is the best for the home user who use Linux. I’m also use ubuntu 8.04 & and i enjoy it. But the main difference between ubuntu and other Linux, is you can’t enter as a root user in ubuntu. But it is not impossible.

Now i’m tell you the process how to do this,

Step 1: you’ve to open the terminal.

Step 2: write the command

# su passwd

Step 3: Now enter the password for root user. And retype the Password

Step 4: Now write the command

# su //superuser//

enter the password.

Ok now you can access the root as a super user. You have the super power use it.

Thank you kamol for helping me to learn it.

Huy guys now i’m install hardy heron. Its cool….. jotil visualization ubuntu 8.04 . try its guys. If any one want hardy heron copy they just connact me.

Recently I’m working on bangla. The part of this work I learn how to insert & retrieve bangla into MYSQL database using PHP.
Now I’ll discuss the whole process of insert & retrieve bangla into MYSQL database.

It is very easy, we all know how insert & retrieve data from database. Bangla font inserting is almost same. Only two queries are extra needed.

First we have created a database & table using MYSQL to insert bangla.
Now open the mysql command prompt & create database named bangla, & create a table named data.
Now write those command:

  • mysql> set names ‘utf8′;
  • mysql> create database bangla character set utf8 collate utf8_general_ci;
  • mysql> use bangla;
  • mysql> create table data (name varchar(100) character set utf8 collate utf8_general_ci);

Insert Bngla into database:
So we create database & table for where we insert bangla font. Now we have to create a simple form where we input bangla word.

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>Untitled Document</title>
</head>
<form method=”get” action=”bangla.php”>
insert bangla<input name=”name” type=”text” />
<br />
<br />
<input type=”submit” value=”insert bangla” />
</form>
<body>
</body>
</html>

Now just copy the code & save as banglainput.php.

Now insert bangla font into database.

<?php

$cnt = mysql_connect(“localhost”,”root”) or die (“could not localhost”);

mysql_select_db(‘bangla’,$cnt);
//********This Two Lines for bangla*********//
mysql_query(‘SET CHARACTER SET utf8′);mysql_query(“SET SESSION collation_connection =’utf8_general_ci’”) or die (mysql_error());
//*******************************************//

$sql = mysql_query(“insert into data values(‘$_GET[name]‘)”) or die(“error to creating row”);

$results = mysql_query(“select *from data”,$cnt);

echo “the results is “;

while($row = mysql_fetch_array($results))

{

echo $row['name'] .’ ‘;

}

?>

Now copy these code and save as bangle.php.

You must add these two lines just after selecting the database, i.e mysql_select_db() function.
mysql_query(’SET CHARACTER SET utf8′);
mysql_query(”SET SESSION collation_connection =’utf8_general_ci’”);


Its very easy Just Copy those code paste and run. Ooo the most importnt thing, you need a unicode for insert & retrive. i use avro unicode. So you must download avro unicode.

this tutorial is referenced by saidur vai.

It would be nice if you could upload files from a form. Here a complete example how to upload a file in php.

Now start the work…..

1st you have to create a HTML form for uploading file.
The HTML form is following:

<html>
<body>
<table border=”1″ align=”center”>
<tr><td>
<form action=”upload_file.php” method=”post”
enctype=”multipart/form-data”>
<label for=”file”>Filename:</label>
<input type=”file” name=”file” id=”file” />
<input type=”submit” name=”submit” value=”Upload” />
</tr></td>
</form>
</body>
</html>

Then save it as file_upload.html.

Now create the file uploading script,

<?php
if ($_FILES["file"]["error"] > 0)
{
echo “Error: ” . $_FILES["file"]["error"] . “<br />”;
}
else
{
echo “Upload: ” . $_FILES["file"]["name"] . “<br />”;
echo “Type: ” . $_FILES["file"]["type"] . “<br />”;
echo “Size: ” . ($_FILES["file"]["size"] / 1024) . ” Kb<br />”;
echo “Stored in: ” . $_FILES["file"]["tmp_name"];
}
?>

save this as file_upload.php. Run this program.
By using the global PHP $_FILES array you can upload files from a client computer to the remote server.
This the very simple way to uploading file.

“আমি এক ভাঙ্গা বাড়ির ভাঙ্গা ঘরের ভাঙ্গা বারান্দা

আমি পথের মাঝে খুজে পাওয়া টাকা আধখানা

আমি বিদ্যাসাগর মাইকেলেরই মস্তো বড়ো ভুল

আমি কিশোরীর ঔ হারিয়ে যাওয়া মুক্তো গাথা দুল”

জানি না  কেন যে গানটা আমার এতো ভাল লাগছে, তা হয়তো লিখে বোঝাতে পারবো না। গানটা যেন আমার হৃদয় ছুয়ে গেছে। টপুকে অসংখ্য ধন্যবাদ এমন একটা গান উপহার দেবার জন্য।

“Make google your best friend”

Google is the world largest search engine in the web. There is some tips for searching

in google.

The Google Guide can help you to improve your search results and SERP analysis with less-
Known search Tips
First Things First
In this Google guide I’ll show you some less-known google operators and search tips. Please note that
Since this advanced operators are sometimes used by spam-bot, black hat seos and other people google
Does not loves, you may bump in 403-Access denied screens like the one I showed to you in my
Google hates Doughnuts (and Advanced Search Strings) article.
Don’t be scared if this happens, nothing is wrong with you / your pc / your search, is just google that
It’s a little nervous
Basic Operators
+
Forces words to be included in search results. Useful with stop words that otherwise will be discarded
-
Prevents a search term to show in results, for example searching for doughnut -cream can help you to
Avoid creamy doughnuts
OR
Returns documents with one of the given terms, like doughnut OR donut. You can also use | instead of
OR: doughnut | donut
” “
Using quotes forces google to search for the exact phrase (including stop words), try “doughnut at
Midnight” and doughnut at midnight (actually, using quotes is similar, but not equals, to doughnut-at-
Midnight … it would be interesting to know what is the exact difference in SERP)
~
Allow to search also for synonyms of the given word. searching for doughnut ~tips finds also pages
With the word help or guide etc.
*
Means every word. Try “doughnuts with *”
..
Used to search in a range of numbers, “2…20 doughnuts” will find pages containing “I eat 3 doughnuts
a day” and “I’ll never eat more than 15 doughnuts in a month”
This operators can be combined to create advanced queries, for example “I eat 1..100 doughnut OR
Doughnuts OR donut OR donuts each *”

আমি ইন্টারনেটে বাংলা লেখছি। সত্যই দারুন। আজ থেকে আমাদের গ্রীষ্মকালীণ ছুটি শুরু। খুবই ভালো লাগছে। আশা করি অনেক কাজ করতে পারবো এই ছুটিতে।

<?php
$host = ‘localhost’;
$user_name = ‘root’;
$user_password = ”;
$default_db_name = ‘mysql’;

if(!mysql_connect($host,root)) die (“connection failed”);
if(!mysql_select_db ($default_db_name)) die (“can’t select database”);
echo “succesfully connect database”;
?>

This process can connect to mysql databases very easily. For this code not need worry about password. Don’t give any password in ur mysql configure. Save it as phpconnect.php

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,245 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