a very basic thing that i dont know

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gauravgmbhr
    New Member
    • Feb 2007
    • 107

    a very basic thing that i dont know

    Can some one tell me difference between <? and <?php tags

    i have seen people using only <?php
    and some using <?


    i have tried using <? but my scripts doesnt work
    and some people use <?=$some_val ?> instead of <?php echo $some_val ?>

    but my script doesnt work like this
    can some one explain me this
  • vssp
    Contributor
    • Jul 2006
    • 268

    #2
    I think u r using php 5 so <? is not working

    Comment

    • gauravgmbhr
      New Member
      • Feb 2007
      • 107

      #3
      Originally posted by vssp
      I think u r using php 5 so <? is not working

      Does that work On PHP 4 and older versions

      Comment

      • webandwe
        New Member
        • Oct 2006
        • 142

        #4
        Hi

        Are you using dreamweaver? I got sometimes that it also work and don't work with <? ?>.

        It is best to use <?php ?> as the new version of php is made this way to not confuse the server with other script I read in a latest book.

        Kind Regards
        Webandwe

        Comment

        Working...