Page 2 of 2 FirstFirst 12
Results 11 to 20 of 31

Thread: Day 1 - Getting Started - Become PHP Expert in 30 days

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    india,kerala-god's own country
    Posts
    14,007

    Default

    Day 1 PHP programming

    http://php.flashwebhost.com/ramesh/1.php

    Code:
    <?php
    
    echo "hello i am ramesh now i am starting my php study";

  2. #2
    Join Date
    Apr 2005
    Posts
    46,704

  3. #3
    Join Date
    Feb 2010
    Posts
    35

    Wink

    PHP Code:
    <?php
    echo " Be the man";
    ?>

  4. #4
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    Quote Originally Posted by vineesh View Post
    One more thing I noticed,

    In the code you given in Day 1 Post (here), under the line 'Paste following content to that file.'

    Code:
    <?php
    
    echo "Hello from PHP";
    Seems '?>' missing.

    Is that not compulsory or you missed it?

    As per PHP Coding Style Guide never use ending ?>

    http://www.php-fig.org/psr/psr-2/

    Only use ?> if you want to write non PHP code after PHP Code block ended, for example

    Code:
    <html>
    <body>
    
    <?php
    
    echo "Welcome";
    
    ?>
    
    </body>
    </html>
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

Page 2 of 2 FirstFirst 12

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
  •