• Archives

  • AddThis Social Bookmark Button

    Add to Technorati Favorites

  • Upcoming Conferences

  • Archive for December, 2007

    Sending a mail from your script

    Thursday, December 13th, 2007

    Many a times you want to send a mail to someone through your website you can easily do that by the php inbuilt function mail

    Syntax:

    mail(to,subject,message,headers,parameters);

    To: == The person email you are sending the mail to

    Subject: == The subject of the email

    Message: == The main email message can consist of the new line character ( \n ) tab character ( \t ) etc

    Parameters: == Optional parameters

    Creating the script to send a mail:

    <?php
    $to = “someone@someone.com”;

    $subject = “Checking Mail Function”;

    $message = “This is the body of the email.”;

    $from = “something@something.com”;

    $headers = “From: $from”;

    mail($to,$subject,$message,$headers);

    echo “Mail Sent.”;
    ?>

    Now this script every time when it will run it will send a mail to the email someone@someone.com

    You can add user input to it by using if , isset functions

    Hint: isset is a function which checks that a form field is filled or not used in db functions also

    Thanks

    krates

    Share and Enjoy:
    • Digg
    • del.icio.us
    • Facebook
    • NewsVine
    • Reddit
    • StumbleUpon
    • YahooMyWeb
    • Google Bookmarks
    • Yahoo! Buzz
    • TwitThis
    • Live
    • LinkedIn
    • Pownce
    • MySpace

    Playing Sony playstation 2 games on your computer

    Tuesday, December 11th, 2007

    Well ps2 games come early then the computer games and they are better than comp so why not you play ps2 games now no need to but a seprate play station you just have to use your computer to play

    What is it ??

    PCSX2 is a PlayStation 2 emulator for Windows and Linux, started by the same team that brought you PCSX (a Sony PlayStation 1 emulator).

    The PCSX2 project attempts to allow PS2 code to be executed on your computer, thus meaning you can put a PS2 DVD or CD into your computers drive, and boot it up!

    Download

    After please read the guide for configuring the software here

    http://www.pcsx2.net/guide.php

    Share and Enjoy:
    • Digg
    • del.icio.us
    • Facebook
    • NewsVine
    • Reddit
    • StumbleUpon
    • YahooMyWeb
    • Google Bookmarks
    • Yahoo! Buzz
    • TwitThis
    • Live
    • LinkedIn
    • Pownce
    • MySpace

    Creating a button to select everything in a text area.

    Monday, December 10th, 2007

    Here is a simple script sometimes you want to highlight verything in a text field so that the user can copy it or something.

    script goes here

    <form>
    <center>
    <input type=button value=”Highlight All” onClick=”javascript:this.form.textarea.focus();this.form.textarea.select();”>

    <br>

    <textarea NAME=”textarea” ROWS=10 COLS=30 WRAP=VIRTUAL>

    Put all the content over here.

    Thanks kushagra
    </textarea>
    </center>
    </form>

    just notice one the textarea name is textarea and

    javascript:this.form.textarea.focus();this.form.textarea.select();

    Change every textarea word with the name of your text area

    and for a google type by just clicking on textarea everything gets selected you can do\

     <form>
    <center>

    <textarea NAME=”textarea” ROWS=10 COLS=30 WRAP=VIRTUAL onClick=”javascript:this.form.textarea.focus();this.form.textarea.select();”>

    Put all the content over here.

    Thanks kushagra
    </textarea>
    </center>
    </form>

    thanks

    krates

    Share and Enjoy:
    • Digg
    • del.icio.us
    • Facebook
    • NewsVine
    • Reddit
    • StumbleUpon
    • YahooMyWeb
    • Google Bookmarks
    • Yahoo! Buzz
    • TwitThis
    • Live
    • LinkedIn
    • Pownce
    • MySpace

    Play your old video games on your computer.

    Sunday, December 9th, 2007

    Remember the days of mario, when there was only one game that Nintendo character and we used to play it for more than 6 hours as there was no save option.

    Sometimes we get bored of hitman , gta we like to play stress reliefing games so you can do it now.

    Download the game emulator here http://nestopia.sourceforge.net/

    And download the old games from here http://romhustler.net/roms/nes

    You need http://www.7-zip.org/ To extract the game

    Then open nestopia drag the game to it

    The keys to play are

    k            l             ;         ‘

    Thanks krates

    Share and Enjoy:
    • Digg
    • del.icio.us
    • Facebook
    • NewsVine
    • Reddit
    • StumbleUpon
    • YahooMyWeb
    • Google Bookmarks
    • Yahoo! Buzz
    • TwitThis
    • Live
    • LinkedIn
    • Pownce
    • MySpace

    Simple css coding

    Saturday, December 8th, 2007

    Html was designed to display information but it does not have any style in the need of style they designed css

    Cascading style sheets

    Which save a lot of coding work

    Syntax

    The syntax is very easy and made up of three parts

    selector {property: value}

    For ex

    body {
    color: red;
    }
    
    

    For using css with html you have to declare class in html for the element you want to do css coding

    <p class="example">
    
    This paragraph can not be changed but style can be:D
    </p>

    In css you will write

    p.exapmle{

    text-align: center;

    }

    This will center the text

    Thanks

    Krates

    Share and Enjoy:
    • Digg
    • del.icio.us
    • Facebook
    • NewsVine
    • Reddit
    • StumbleUpon
    • YahooMyWeb
    • Google Bookmarks
    • Yahoo! Buzz
    • TwitThis
    • Live
    • LinkedIn
    • Pownce
    • MySpace