Results 1 to 4 of 4

Thread: How To Use PHP

  1. #1
    Join Date
    Dec 2008
    Posts
    9

    How To Use PHP

    Hello Friends,

    I am new in the programming and wants some information about the php,
    Can any one please give me some information regarding to PHP .

    Thanks in Advance,

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    Re: How To Use PHP

    PHP (Hypertext Preprocessor) is a web development language, where you can develop and create small and big databases/applications with the help of MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc. PHP is a server side-scripting language like ASP. Learning PHP (Hypertext Preprocessor) can be fun and challenging. It is not that complicated but requires close attention.

    What is PHP?

    PHP stands for (Hypertext Preprocessor) but in the past it was abbreviated as (Personal Home Page). PHP interacts with HTML and is used inside HTML tags. PHP scripts are executed on the server and the result is shown on the browser to the user. A PHP file may contain text, scripts or HTML tags and the PHP files have the extension of ".php" ".php3" ".phtml."


    What is MySQL?

    SQL is a database server and is ideal for both large and small applications. MySQL supports standard SQL and MySQL compiles on a number of platforms.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: How To Use PHP

    How to start using PHP.:

    Before you code, you should install some software & programs to make the environment suitable for using PHP:

    * Install Apache Server on Windows or Linux machine
    * Install PHP on Windows or Linux Machine
    * Install MySQL on Windows or Linux Machine

    Basic PHP syntax:


    A PHP scripting block always starts with <?php and ends with ?>. A PHP scripting block can be placed anywhere in the document. If shorthand is supported on the server, you can start a scripting block with <? and end with ?>. However, for maximum compatibility, I recommend that you use the standard form (<?php) rather than the shorthand form.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: How To Use PHP

    A Simple program using PHP

    Open Notepad or any text editor that best suits you and write the following block of code:


    • <Html><head><title> My First PHP Programming</title></head>

    • <Body>

    • <?php

    • echo "Hello!! World"; //echo function prints text string on the screen

    • ?>

    • </body></html>

    • Save the file with "myprogramm.php" and run on your computer through Apache Server.


    You won't be able to see the source on selecting "View Source" from the browser, because all the scripts are executed on the server. The results will only be shown on the user browser.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,710,846,627.71680 seconds with 16 queries