Thursday, October 13, 2011

form upload image with PHP

to upload a file or image is usually in PHP usually people think veryhard but this time it will no longer
try to download below

Monday, July 25, 2011

How to Set IP Address and Other Network Information in Windows XP

1) Go to Start and click on Control Panel.

2) Control Panel window will appear. Double click on Network Connections.

3) Network Connections window will appear. Right click correct Local Area Connection by identifying correct network card and click Properties.

4) Select Internet Protocol (TCP/IP). Click on Properties.

Manual IP Assigning

You can now key in the IP address, Subnet mask, Default gateway and DNS servers. Here is IP logical network Designing Guide.

Note: IP address of your computer must be unique. None of the 2 computers in the network can share same IP address, it causes IP address conflict.

Note: Default gateway is a router that can route the traffic to the other network or Internet. DNS server is an application server that can translate URL to IP address. As an example, www.cert.org is URL and it can be translated to 192.88.209.6 by DNS server. Check with your ISP on what DNS servers you should use. If not, you can try this free Opendns.

IP Assigned by DHCP server

If you have DHCP server setup on your router or you have DHCP server in home network, your computer can be assigned IP address automatically by selecting Obtain an IP address automatically and Obtain DNS server address automatically.

You can also check out simple way to check IP address after knowing the way to set IP.

Note: If you have a notebook, using static IP at home and the IP assigned by DHCP server at the office, you can make use of alternate configuration to set IP and network information for these 2 different network.

Set Obtain an IP address automatically on General tab which is same as what I specified above, so that the notebook will be assigned IP addresses automatically at the office. After that, click Alternate Configuration tab, select User configured option and key in your home network’s static IP information. By setting this, when there is no IP information assigned due to no DHCP server at home, this alternate configuration will be applied automatically, so that you don’t have to set IP manually every time at home.

Friday, March 11, 2011

How to Make IP By Text: and grafis

How to Make IP By Text:

1. Open up Terminal dg clicking Applications and then select Acessoris and click Terminal.
2. Then go pd dg Root login SU typing commands and enter the password.
3. Type lspci to find out whether the computer Ethernet card is active or detected.
4. Then type ifconfig.
5. After that, type the IP number that will be made dg typing ifconfig eth0 xxx.xxx.xxx.xxx (the IP number).


How to Make IP In Graphics:

1. Select Desktop and then select Administration then select and click on Networking.
2. If the exit command dialog box to enter a password then entering the password of your root.
3. In the Connection dialog box click 2x on an Ethernet Connection or dg can also click on the Properties box.
4. In Configuration select Static IP Address.
5. Then in the IP Address box: write an IP number that will be made.
6. And in the Subnet Mask box will automatically exit from the Subnet Mask number after we write our IP numbers.
7. After that the Gateway Address box: write the number gateway.
8. Then click OK.

or dowload my file
make mikrotic

Thursday, March 10, 2011

mSQL connection to php






The author would like to present this simple article about how to connect from PHP to MySQL database. This is the result of some feedback that go into Sony AK Knowledge Center and we want to share it in writing. Moreover, there are a lot who are interested in web-based programming with open source solutions, because of free and cheap.
Preparation
In this case the author uses the Win32 version of Apache web server 1.3.33, Windows XP and PHP version 4.3.11. For MySQL, I use version 4.1.11 for Win32. Apache can you download at http://www.apache.org/, can be found at http://www.php.net/ PHP and MySQL can be downloaded from http://www.mysql.com/. The author assumes you've installed all these components and has been running well. Turn all the necessary services, to run the Apache service then type net start apache from the command prompt on Windows. Similarly to the MySQL service, type net start mysql from the command prompt to turn it on. After all ready let's make way connection from PHP to MySQL her.

Sample connection
To connect to MySQL there are two functions that can be used. The first is to use the function mysql_connect. Function syntax is as follows.

resource mysql_connect ([string server [, string username [, string password [, bool new_link [, int client_flags ]]]]])

Examples of its use are as follows.

$ conn = mysql_connect ('localhost', 'root', 'passwordku');
if (! $ conn) {
die ('Connection to MySQL failed:'. mysql_error ());
}
echo 'Connection to MySQL with mysql_connect success!';
mysql_close ($ conn);
?>

We see above there mysql_connect command whose main function is to connect to the MySQL database. As the above example the MySQL server is on localhost with the username root and password is passwordku. There are important notes to remember here. Since version 4.1, MySQL has been using a new system of authentication protocol based on hashing algorithms. This makes the connection using the old client will fail and will generate an error message like the following.

Client does not support authentication protocol requested by server; Consider upgrading MySQL client
During the hold connection then this function will look for a persistent link else already connected to the host, username and password are the same. If the link is found then the identifier of the connection or link will be provided to the client and the client will not be entered into a new connection to the server dataase.
Connection to the database will not be closed when the execution of an SQL script is complete. In the mysql_connect function, the connection will be disconnected automatically shortly after a SQL script is executed. In the mysql_pconnect function, connection to the database will continue to occur and not be disconnected even if you use the mysql_close function.
Basic syntax of the use mysql_pconnect function is as follows.

resource mysql_pconnect ([string server [, string username [, string password [, int client_flags ]]]])

Example of PHP code it from mysql_pconnect function can be seen in the following code.
$ conn = mysql_pconnect ('localhost', 'root', 'ariesa2001');
if (! $ conn) {
die ('Connection to MySQL failed:'. mysql_error ());
}
echo 'Connection to MySQL successfully with mysql_pconnect!!';
?>

In PHP 5, for connection to MySQL already using MySQLi extension (whichabbreviation of MySQL Improved ) . Further information about this can be seen at www.php.net / MySQLi. Writing about these MySQLi hopefully we discuss on another occasion.

Thus the simple inscription on how to connect from PHP to MySQL. May be useful for you all. If any comments or suggestions can be sent to pratiwi.mileniawati @ gmail.com. To read other interesting sites please go to Sony AK Knowledge Center at the address http://www.sony-ak.com/.

Wednesday, March 09, 2011

how to install windows seven

All of you readers of this blog there that has never installed windows operating system right? perhaps for fear of mistake, error ato mbleduk would probably be scared coba2. hehe ... continue if notdaring coba2 when venom donk . learn the computer must have the courage coba2, do not be afraid either, precisely if we ever make a mistake so know how to overcome those mistakes in the future.
Well now is you know how I am trying to install windows seven (7) step by step installation windows yes ... Oya seven (7) is almost the same like the installation of windows vista, certainly more modest than the installation of windows xp down solanya no Question2 in center installation, setingan2 dilakukansetelah time zone etc. installation process is complete. not like pas install windows xp in tengah2 down the rather disturbing because the installation process should be in tongkrongin, can not be left continue so.
Ok yes immediately wrote

* Provide computer that meets the requirement to install windows seven (7) if not comfortably at least dual core with 1GB memory
* DVD installation of Windows Seven (7)
* 1 liter Gasoline
* Pour gasoline into the computer and then burn! Hahaha ... joke bro ...
* Arrange for your computer to boot from dvd, done via the bios settings, usually press delete or f2 when the new computer is turned on select settings then select the dvd rom boot into the first order. save the configuration bios by pressing F10.
* Insert the Installation DVD
* Click on any key if you have any questions whether want to boot from cd or dvd
* Appears look like the following

Furthermore, the display appears as below, just click next

Do not stare bro ... click Install Now

If yes please read first (almost no one ever read), also not directly check what is an angry kok ga, continue next
Since we're doing the clean install then select the Custom (advanced)

Select the partition that will be used to install windows seven (7), the example below the hard drive is not in bagi2 into multiple partitions, if you want to divide into several partitions before the installation process select the Drive options (advanced) there we can create, delete and resize partitions. but from the confused for the first time mending the installation of windows directly select the next course, yet the division of the partition can be done after the installation process is complete.

The installation process begins in the live well bro ... may, takes several tens of minutes depending on computer specifications Brader, he does already have a tried to install on your computer pentium 2 and takes dozens of hours! haha ... if a new computer less than an hour

After the above process selese computer will automatically restart itself. kumudian appears as below

Type a user name and the name of the computer, whatever you wrote, eg Brader own name
Then let the computer make your password safe bro, write 2x and should be the same, then the password hint is filled with a clue if such Brader forget ama passwornya. not the content is also not what's what.

Insert the Windows Product key, usually in his intalasi dvd package. if for example Brader poduct not have his key in the blank, Brader given the opportunity to try windows 7 for 30 days

Next Brader given the choice of setting whether the windows will automatically update itself ato not, select it at will bro

Then adjust the time zone settings residence Bro

Go enjoy bro

How to Perform a dynamic search enggine

First we create his first form

To search melakuakan

enggine search now started fingering my world of IT because it provides materials on how to create search enggine

direct download
Search enggine

territorial download video converter



very useful for converting video melkukan download for free with this I offer you to medowload here
video convert1
Xilosoft

Sunday, March 06, 2011

database connection with mysql



Step 1 Check the configuration
To smooth our programming later then the first thing we should do is check the configuration by typing the phpinfo (). To do this you need to create a simple php file that calls the function phpinfo (). Consider the following code:




Write the code in notepad and save it as info.php and place it in the htdocs folder. Then open a browser and type localhost / info.php

Consider the system configuration, especially on the MySQL because this part is very important to know because if this part does not exist we would not be able to work without MySQL.



Step 2 Create Database
In this tutorial I will use the MySQL database named test with a table named user. Look at the code below:

CREATE DATABASE if NOT EXISTS `test`;
USE test;

CREATE TABLE `user` (
`id` int(3) NOT NULL auto_increment,
`user` text character set latin1 NOT NULL,
`pass` text character set latin1 NOT NULL,
`nama` varchar(50) character set latin1 NOT NULL default '',
`status` text character set latin1 NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=29 DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=29 ;

INSERT INTO `user` VALUES (1, 'admin1', 'rahasia1', 'Nuzuli', 'user');
INSERT INTO `user` VALUES (2, 'admin2', 'rahasia2', 'Fitriadi', 'admin');Langkah 3 - make conection database



As his case with other programming that uses a database, the first thing we must do is connect to the database server. Connecting to MySQL database in PHP requires some information that is:

* hostname
* database username
* password
* database name

To connect to a database first you will connect to the MySQL database and in the next step you must select the database to be used. Remember if we fail then the connection we will not be able to proceed to the next script. Consider the following code:
Code:

$host = "localhost";
$user = "nama_username";
$pass = "tentu";
$db = "tentu";

$koneksi=mysql_connect($host,$user,$pass) or die ("koneksi ke database gagal") ;
$koneksi_database= mysql_select_db($db,$koneksi);

Function mysql_connect () is to establish a connection to MySQL server and if the connection is successful then the next step we can choose the database with the command mysql_select_db ().

Step 4 - Retrieve data from database
Now it's time to make something more interesting. For example, let's try to retrieve data from user table in database test. To do this make a connection to the database and select database test. The next step is to create SQL queries - in this case a SELECT statement - to the database. Now try to get all records from MySQL. SQL statement for this are:

$ get = mysql_query ("SELECT * FROM user");

Now after selecting the table, then how is a way to display the contents of that table? How to use the following code:

$get = mysql_query("SELECT * FROM user");
While ($row=mysql_fetch_object($ambil)) {
$name = stripslashes($row->nama);
Echo "$name";
}
?>

In the above code, I used to take mysql_fetch_object SQLnya results of the query so that the resulting rows will be defined as an object. We also can use other functions such as the following:
1. mysql_fetch_assoc () - Ambil hasil baris sebagai array asosiatif
2. mysql_fetch_row () - Ambil hasil enumerated baris sebagai array
3. mysql_fetch_array () - Ambil hasil baris sebagai array asosiatif, array numerik, else twice

The above code will display all existing data in the user table. How can if we want to display some data alone? We will use the limit to limit the number of display data and let a more regular basis we will use the order by to sort the data based on the ASC (az) or DESC (za).

$ get = mysql_query ("SELECT * FROM user ORDER BY name ASC limit of 0.2");
Basic PHP and MySQL Programming

As we already know about web programming using the database will be able to create a dynamic website content. Examples of what we can see for example the online registration application or news on news websites are kept updated every second.

One website that dynamic programming is to use PHP and MySQL database. Why PHP using MySQL database? Actually use the MySQL database is only because of habit. In addition to MySQL we can also use PostgreSQL, MS Access, Oracle, etc..

In this section I will try to explain how to use PHP and MySQL to create dynamic content and of course I just explain the basics in advance to avoid excessive hehe.

in this case I use the xampp php 5 if you can not please fetching in www.cnet.com search on the search form with the name of xampp 1.7.3

how to make LAN network


in this post, I will discuss about how to create a network (LAN) with 2 small computer using UTP cable. For that you need to prepare the UTP cable and RJ-45 Jack is already installed and the network card in each computer. Normally computers are now equipped with Lan Card on the computer motherboard. If no you can buy it at a computer store along with UTP cable and RJ-45 Jack.
If only connect 2 computers, you do not need a hub or switch. However, the cord is slightly different configuration. If you create a network for 2 computers without using a hub or switch, the configuration used is immune from Cross cable. Conversely, if use traditional a hub or switch, to create a network of more than 2 computers, the configuration of the cable wire used is Straight. Ok I just discussed about how to create a network (Lan) for connecting 2 computers. Beriikut steps:
1. Plug the UTP cable that is configured with a cross cable to the LAN port of your first computer card.
2. If you are using Windows XP, open the Control Panel »Network and Internet Connections» »Network Connections.
3. If menngunakan Windows 7 or Vista, open Control Panel. In the Network and Internet icon, click View Status and Task Networks.
4.next will appear dialogNetworks city and Sharing Center. On the left side of this window, click on Change Adapter Settings
5.Klik Networkd right on your Card and select Properties.

6. In the Local Area Connection Properties window, select Internet Protocol (TCP / IP) in Windows XP or Internet Protocol Version 4 (TCP/IPv4) in Windows 7 and Vista. Then click the Properties button.

7.Pada Properties window that appears, select the option Use the followinf IP Address and fill in 192.168.0.1 in the IP Adrees, 255.255.255.0 in Subnetmask. The remaining inputs can you empty.
8. 8. Click OK to save the settings and click the OK button is also on the Local Area Connection Properties
Furthermore, for the second computer can be connected, then the Workgroup of these computers should be the same. For that, give the same workgroup name on the second computer. Do the following:
1. For users of Windows XP, open System Properties by right clicking the My Computer icon and select Properties. You can also press the keyboard combination Win + Break.
2. For users of Windows 7, the same way that is slightly open system properties in a way like on windows XP. In the window that appears click on Change Settings in the Computer name, domain, and workgroup settings.
3 In the System Properties window, either Windows XP, Vista or Windows 7, click the Change button.
4.Di next window provide a name for the computer 1 with the desired name. Suppose DK-1. And give the name of your workgroup.and the sample Computer World.
5. Click OK and click OK also on the System Properties window.
In order for the new changes you make affect the system, it is necessary to restart the process. For that retart your computer. Do the same steps as above to configure the network card and change the computer name and workgroup on both computers. However, the difference in computer 2, the IP address given is 192.168.0.2. Same Subnet 255.255.255.0. While the computer name must be different. Suppose the given name of the DK-2. However, the workgroup should be the same.
To determine whether the second computer is connected lakukanlanh ping from computer 1 to computer 2 or vice versa. How sebagia follows:
1. Open Command Prompt by pressing the Win + R keyboard
2. In CMD type the command "ping IP address". Ip Addrees filled with computer IP that you want to ping. If you do a ping from computer 1, then filled with an IP address IP 2. Vice versa. Example of ping command from computer 1 to computer 2:
ping 192.168.0.2
3. If the connection between two computers is successful then it will be like this:

Pinging 192.168.0.2 with 32 bytes of data:
Reply from 192.168.0.2: bytes=32 time<1ms TTL=128
Reply from 192.168.0.2: bytes=32 time<1ms TTL=128
Reply from 192.168.0.2: bytes=32 time<1ms TTL=128
Reply from 192.168.0.2: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.0.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
4. Jika hasilnya seperti ini:
Pinging 192.168.0.2 with 32 bytes of data:
Request time out
Request time out
Request time out
Request time out
Ping statistics for 192.168.0.2:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)

Means that the second computer is not connected. Try to check if the cable is connected properly or there might be a broken cable.
If everything is fine and the ping is good, it means you successfully mengubungkan these 2 computers. At Computer World next article will discuss how to share folders, printers and internet on the second computer. Similarly, a brief tutorial for
This tutorial is far from perfect and probably many mistakes that I made. If there is any among you who are more familiar about the network