1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Php <?

Discussion in 'Site & Server Administration' started by jrock2004, Mar 6, 2008.

  1. #1
    I am running FreeBSD 7.0 with apache and php. With my php scripts I have to

    <? php

    I cannot do this or else will not work

    <?

    What I am looking for is what do I have to edit in php.ini to all this?
     
    jrock2004, Mar 6, 2008 IP
  2. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #2
    ; Allow the <? tag.  Otherwise, only <?php and <script> tags are recognized.
    ; NOTE: Using short tags should be avoided when developing applications or
    ; libraries that are meant for redistribution, or deployment on PHP
    ; servers which are not under your control, because short tags may not
    ; be supported on the target server. For portable, redistributable code,
    ; be sure not to use short tags.
    short_open_tag = On
    Code (markup):
    What php.ini doesn't mention is that short_open_tag can also cause problems if you have PHP processing XML documents. (*.xml)
     
    joebert, Mar 6, 2008 IP
  3. jrock2004

    jrock2004 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you for the post
     
    jrock2004, Mar 6, 2008 IP
  4. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes, it a common issue...short tags enabling helps solve it.
     
    agnivo007, Mar 7, 2008 IP
  5. jrock2004

    jrock2004 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Problems solved. Again thank you for your post
     
    jrock2004, Mar 7, 2008 IP