Results 1 to 3 of 3

Thread: <? vs <?php

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    <? vs <?php

    Hey,

    Not looked at PHP for a while but picked up an oldish site and installed on a development server. The code is written using <? php code here ?> and the php install on the box is not parsing this, it seems to require <?php ?> is this an ini setting?

    Pino

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: <? vs <?php

    Yes, short_open_tag I think.


    Has someone helped you? Then you can Rate their helpful post.

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: <? vs <?php

    Yes. some ISPs will set the short_open_tag to false to enforce the declaration of the server side script language in use. Personally I do it anyways so that anyone comming along after me will know that it is php and no asp (I've seen this confusion before... you'd think that the ; on the end of each line would havbe given a clue). But, yes it can be found in your php.ini file (requires server restart after changing).

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

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



Click Here to Expand Forum to Full Width