The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 6 of 6

Thread: opening and closing tags for php code

  1. #1

    opening and closing tags for php code

    Currently the options are
    PHP Code:
    <?php ... ?>
    and
    PHP Code:
    <script language="php"> ... </script> 
    and if you enable it in ini file
    PHP Code:
    <? ... ?>
    . I would like to know if there is any ways to change or add more of these options. For example
    PHP Code:
    <php> ... </php

  2. #2
    no
    Let us live so that when we come to die even the undertaker will be sorry. - Mark Twain
    Don't PM me your CSS, xHTML, JS or PHP questions. I will not reply to ANY IE6 questions.

  3. #3
    icio's Avatar
    3,811
    posts
    looks better in lowercase
    You do, however, have the option of not using "?>"
    "60% of the time it works... every time." -- Paul Rudd as Brian Fantana.

  4. #4
    Quote Originally Posted by icio View Post
    You do, however, have the option of not using "?>"
    I'm sorry i didn't really catch your idea. Please explain.

  5. #5
    icio's Avatar
    3,811
    posts
    looks better in lowercase
    It was slightly off-topic, but what I was noting is that if you are using the PHP tags <? or <?php then you don't necessarily need to include ?>. For example,

    PHP Code:
    <?php echo "Here's some PHP in a block that I'm not going to close!";
    "60% of the time it works... every time." -- Paul Rudd as Brian Fantana.

  6. #6
    Quote Originally Posted by icio View Post
    It was slightly off-topic, but what I was noting is that if you are using the PHP tags <? or <?php then you don't necessarily need to include ?>. For example,

    PHP Code:
    <?php echo "Here's some PHP in a block that I'm not going to close!";
    Correct, but... it has to be the end of the file

    this works to:
    PHP Code:
    <?=$varname ?>
    to quickly add display a variable, its highly discouraged tho...

    You can never underestimate the stupidity of the general public.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012