Basics of script for Beginners

Discussion in 'Scripts' started by samaya, Aug 23, 2010.

  1. #1
    Basics of Script:
    A scripting language, script language or extension language is a programming language that allows control of one or more software applications.
    A major class of scripting languages has grown out of the automation of job control,

    which relates to starting and controlling the behavior of system programs Scripting languages that made use of CGI early in the evolution

    of the Web include Perl, ASP, and PHP, JSP, Ruby.
    Which are all used in Server side. Javascript,VBscript which are all the things are used in Clientside.

    Perl:
    Perl is an open source programming language that was specifically designed for processing text.


    This makes it very useful when writing web forms, but it also used for creating CGI programs and other web scripts.

    Perl is a highly capable, feature-rich programming language.

    The first line of every PERL script is a commented line directed toward the PERL interpreter. This line is generally the same from one

    instal of PERL to the next,
    Eg. #!/usr/bin/perl—(Linux)
    #!D:\Perl\bin\perl-(Windows)

    Code Snippet:

    #!D:\Perl\bin\perl-(Windows)
    print "content-type: text/html \n\n";
    $string1 = "Hi,";
    print "Hello, Perl!.
    ";

    print “$string1”
    Output: Hello, Perl!.
    Hi

    PHP:
    PHP stands for PHP: Hypertext Preprocessor

    PHP is a server-side scripting language, like ASP ,PHP scripts are executed on the server.
    PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.).

    PHP is an open source software
    PHP is free to download and use
    PHP runs on different platforms (Windows, Linux, Unix, etc.)
    PHP is compatible with almost all servers used today (Apache, IIS, etc.)
    PHP is FREE to download from the official PHP resource:
    PHP is easy to learn and runs efficiently on the server side.

    eg.1 $txt="Hello World";
    echo $txt;
    ?>
    Output : Hello World

    ASP:

    ASP is a powerful tool for making dynamic and interactive Web pages. ASP is a Microsoft Technology ASP is a program that runs inside IIS.

    Eg;
    <% response.write("Hello world") %>

    <% response.write("You can use HTML here!") %>;

    Javascript, Vbscript and few of the script used as client side scripting.
    Javascript:

    This is mainly used for Web pages to add functionality, validate forms etc…The

    We can call a external javascript function by including a javascript file.
    The Vbscript also more or less same like javascirpt.


    VBscript:
    Microsoft’s VBScript (Visual Basic Script) is a scripting language used to create dynamic and interactive web pages. VBScript is a subset

    of Visual Basic, a more developed scripting language, and is commonly used on the Web as a client side scripting language and

    server-side processing in ASPs (Active Server Pages).VBScript is a Microsoft scripting language.VBScript is the default scripting language

    in ASP.Client-side VBScript only works in Internet Explorer!

    eg.

    <script type="text/vbscript">
    document.write("Hello World!")
    </script>


    Major Difference between Client and Server side:


    Serverside:

    PHP is a server side technology. Its very powerful and easy to use. You cant see this source as like a client side script. bY using this

    we can transfer files to different servers safely.It can communicate with database to fetch records based on the user query.

    It is usually used to provide interactive web sites that interface to databases or other data stores. Mostly used for dynamic applications.

    Its more secure and its is used by most of the programmers in the world.

    Clientside:

    JavaScript is mainly used as a client side scripting language .This kind of code is visible to everybody. programming language which runs

    on client computer. Any user in the world can view the script by simply view the page source option.

    Client side scripts are mostly embedded with html tags. Without the knowledge of server, this script can do its job to achieve particular

    task. Browser compatability is low. Now Ajax has come to overcome all those drawbacks which this script faced earlier. It’s a Interpreter

    between server side and client.Ie. we can call a serverside script using clientside script to achieve some task. Now the latest

    trend is JQUERY, it’s a combination of html, css, xslt, json, and xml. Each one has a separate architecture. Javascript helps to

    make this things altogether. .

    Regards
    Samaya
    placetoexplore.com
     
    samaya, Aug 23, 2010 IP
  2. tinax

    tinax Guest

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can visit w3schools.org. It has all for newbie
     
    tinax, Nov 8, 2010 IP
  3. rsergent

    rsergent Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    what about cgi for e-mails is there a form for this and if so a free one?
     
    rsergent, Nov 26, 2010 IP