Open Source Tips : Networking,Linux/Unix,Programming,News,Howto..

  • Increase font size
  • Default font size
  • Decrease font size
Programming
Here you can find small codes and simple tricks in programming field.

reset mysql root password

E-mail Print PDF
Your Ad Here

 

 

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
  Your Ad Here

PHP if-else

E-mail Print PDF

 

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

 

Introduction to J2ME

E-mail Print PDF

 

 

 Welcome to J2ME,

 Java underwent series of changes through out its life.One major change is introduction of Java into mobile devices.

The explosion of mobile device usage along with J2ME provided many developers never before reach into lives of common man.Yes,that obviously is the main advantage of Java ..as SUN will put it "Write Once Run Anywhere" .This amazing reach which is fuelled by absence of need for recompilation when run on different operating systems  made it a favourite platform for may developers.

Last Updated on Monday, 27 July 2009 13:10
 

PHP Operators

E-mail Print PDF

 

 

This section lists the different operators used in PHP that is arithmetic operators, assignment operators, logical operators and comparison operators with examples.

 

String Variables in PHP

E-mail Print PDF
User Rating: / 1
PoorBest 

 

 

String variables are used for values that contains characters.

In this chapter we are going to look at the most common functions and operators used to manipulate strings in PHP.

After we create a string we can manipulate it. A string can be used directly in a function or it can be stored in a variable.

Below, the PHP script assigns the text "Hello World" to a string variable called $txt:

<?php
$txt="Hello World";
echo $txt;
?>

The output of the code above will be:

Hello World

Now, lets try to use some different functions and operators to manipulate the string.


 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  Next 
  •  End 
  • »


Page 1 of 3

AdBrite

_____ _Visitors Counter_ _____

mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterToday:222
mod_vvisit_counterYesterday:378
mod_vvisit_counterThis week:1572
mod_vvisit_counterLast week:2530
mod_vvisit_counterThis month:3765
mod_vvisit_counterLast month:10280

Your IP: 38.107.191.83
Now is: 2010-03-11 14:07