+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: [PHP] Basics of PHP Scripting

  1. #1
    jeeter is offline x10Hosting Member jeeter is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    9

    Exclamation [PHP] Basics of PHP Scripting

    Basics of PHP

    Here you will find a tutorial that is about the very basics of developing in PHP. This tutorial will continue to grow as I add more to it and is a beginning step for newbie PHP Developers or for those looking for a refresher.

    **NOTE: PLEASE DO NOT REPLY TO THIS POST. IT WILL MESS UP THE INDEXING! ALL REPLIES MADE WILL BE REQUESTED TO BE DELETED**


    Getting Started:
    If you have never developed a web site or a web page before, at all, I would suggest reading up on some tutorials about developing using HTML first. Once you've become accustomed to HTML's language, then you should come back and begin your journey into PHP here. This tutorial is going to give advice as to how to do certain actions using PHP.

    1.) PHP Basic Syntax:
    PHP has special opening and closing tags for its code blocks, very much like HTML's
    opening and closing tags (<html></html>). These are mandatory to be wrapped around any PHP code that you submit.

    Example: Opening and Closing of a code block in PHP
    PHP Code:
    <?php
      
    ?>
    *Note: A PHP file normally contains HTML tags, just like an HTML file, and some PHP scripting code.*


    Below, we have an example of a simple PHP script which sends the all too well known text "Hello World" to the browser:
    PHP Code:
    <html>
    <body> 

       <?php
          
    echo "Hello World";
         
    ?> 

    </body>
    </html>
    *NOTE:Each code line in PHP must end with a semicolon. The semicolon is a separator and is used to distinguish one set of instructions from another.*

    *NOTE:There are two basic statements to output text with PHP: echo and print. In the example above we have used the echo statement to output the text "Hello World".*

    *NOTE:
    The file must have the .php extension. If the file has a .html extension, the PHP code will not be executed.*
    Last edited by jeeter; 05-07-2009 at 03:44 PM. Reason: Minor Edit
    XGuard Temp Website for Josh Leckbee Dev Projects
    XGuard: Josh Leckbee Development

  2. #2
    zer1420 is offline x10Hosting Member zer1420 is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    1

    Re: [PHP] Basics of PHP Scripting

    Very good tutorial.Thanks.

  3. #3
    glanceworld is offline x10Hosting Member glanceworld is an unknown quantity at this point
    Join Date
    May 2009
    Posts
    13

  4. #4
    akosiameer's Avatar
    akosiameer is offline x10Hosting Member akosiameer is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    11

    Re: [PHP] Basics of PHP Scripting

    I think you have to include how to install and where to get PHPfor the script to work.

  5. #5
    luisbarata is offline x10Hosting Member luisbarata is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    2

    Re: [PHP] Basics of PHP Scripting

    thks is very good this tutorial

  6. #6
    taha116's Avatar
    taha116 is offline x10 Lieutenant taha116 is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    497

    Re: [PHP] Basics of PHP Scripting

    You can improve the tutorial by providing more relevant youtube videos and links that people may find usefull in the footer of the topic post.


    Need help with starting up your website? No problemo PM if you need help, if you want help with scripts like WordPress, SMF and so on dont be afraid to PM for that too.


  7. #7
    adamparkzer is offline On Extended Leave adamparkzer is just really nice
    Join Date
    Jun 2008
    Location
    IL, USA
    Posts
    3,745

    Re: [PHP] Basics of PHP Scripting

    Quote Originally Posted by jeeter View Post
    **NOTE: PLEASE DO NOT REPLY TO THIS POST. IT WILL MESS UP THE INDEXING! ALL REPLIES MADE WILL BE REQUESTED TO BE DELETED**


    Awesome, guys. Way to READ the entire post, including special requests.

    And yes, I realize that I posted too. But oh seeing as a handful of people already posted, I'm sure my one response won't be that bad.

  8. #8
    allofus is offline x10 Sophmore allofus is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Wetherby, West Yorkshire, England
    Posts
    183

    Re: [PHP] Basics of PHP Scripting

    Quote Originally Posted by adamparkzer View Post
    [/left]

    Awesome, guys. Way to READ the entire post, including special requests.

    And yes, I realize that I posted too. But oh seeing as a handful of people already posted, I'm sure my one response won't be that bad.
    <?php echo "I won't reply then"; ?>

  9. #9
    Steeevoe is offline x10 Sophmore Steeevoe is an unknown quantity at this point
    Join Date
    Feb 2009
    Location
    Leicestershire [UK]
    Posts
    103

    Re: [PHP] Basics of PHP Scripting

    When using PHP, does the use of all of these pairs of symbols mean the same thing?

    1) `.....`
    2) "....."
    3) '.....'

    If not please tell me when and why they should be used!
    The above message was posted by a guy called Steevoe. We hope you enjoyed his comment

  10. #10
    rowenalee is offline x10Hosting Member rowenalee is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    3

    Re: [PHP] Basics of PHP Scripting

    I am new to PHP Scripting and Taha is right it would be better if you have provided a video tutorial so I could easily understand the basics of PHP scripting. Let me know if you did that. Thanks!

+ Reply to Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 03-10-2008, 12:22 PM
  2. Noticia De upgrade PHP espaņol
    By figu120 in forum General
    Replies: 2
    Last Post: 11-22-2007, 04:42 PM
  3. Important PHP Information
    By Bryon in forum News and Announcements
    Replies: 0
    Last Post: 11-21-2007, 02:08 PM
  4. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM
  5. [PHP] Placing the Ads in PHP Pages
    By Chris in forum Tutorials
    Replies: 22
    Last Post: 06-04-2005, 11:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers