Here you can find small codes and simple tricks in programming field.
|
|
Programming -
MySQL
|
|
Sunday, 05 December 2010 13:02 |
|
To backup a MySQL database we are using the command 'mysqldump'. The syntax to dump a mysql database is mysqldump -u [username] -p [password] [databasename] > [backupfile.sql] [username]- username of your database [password]- password of your database [databasename]- your database name [backupfile.sql]- name of the file to which the backup should be written
|
|
Last Updated on Sunday, 05 December 2010 13:18 |
|
Programming -
Bash
|
|
Tuesday, 29 June 2010 16:15 |
|
Below I give a small script that will help you to discover the machines that are plugged on to the network. It uses a small command called ping to discover the machines connected to the network. It will work only for the networks with subnet mask 255.255.255.0 #!/bin/bash
> validip > invalidip
echo "enter the first ip address" read i echo "enter the last ip address of the same subnet of mask 24 bit" read j
|
|
Last Updated on Sunday, 04 July 2010 17:59 |
|
Programming -
PHP
|
|
Wednesday, 02 June 2010 19:41 |
|
PHP program to upload a file on to the server. <html> <body> <?php if(isset($_POST['submit'])) {
|
|
Programming -
MySQL
|
|
Thursday, 11 March 2010 15:29 |
|
If you want to migrate your Mysql Server, you want to export data from one MySQL server to another server, and then import the data to a new server, It is very simple Log in to First Server and give the following command:
|
|
|
Programming -
MySQL
|
|
Monday, 02 November 2009 11:42 |
|
if using MySql for the first time then we use the command #mysqladmin -u root password 'yourpassword' give your own password for 'your password' but without quotes if you know your root password and want to reset it. then we can use the command #mysqladmin -u root -p'oldpassword' password 'newpassword' give your old password and new password but without quotes. if you forgot the root password
|
|
Last Updated on Monday, 02 November 2009 12:20 |
|
Programming -
PHP
|
|
Thursday, 30 July 2009 08:03 |
|
Conditional statements are used to perform different actions based on different conditions.
Conditional Statements Very often when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do this. In PHP we have the following conditional statements: - if statement - use this statement to execute some code only if a specified condition is true
- if...else statement - use this statement to execute some code if a condition is true and another code if the condition is false
- if...elseif....else statement - use this statement to select one of several blocks of code to be executed
- switch statement - use this statement to select one of many blocks of code to be executed
|
|
|
|
|
|
|
Page 1 of 4 |