How to run code ?

Discussion in 'PHP' started by mahiraj, Dec 5, 2007.

  1. #1
    Hi All,

    I have a site which has build in php4.0
    I want to redesign my site.......
    Now i work in php5.0.
    can i run this code in php5.0...
    i use wamp server.....
    please tell me some instructions which i should keep in mind.......

    Thank you;
     
    mahiraj, Dec 5, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    nico_swd, Dec 5, 2007 IP
  3. mahiraj

    mahiraj Guest

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    means i will not need to change in code........
     
    mahiraj, Dec 5, 2007 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    Usually, not. Yet there are a few exceptions.

    Try it out, and if there are problems, post them here, along with your code.
     
    nico_swd, Dec 5, 2007 IP
  5. mahiraj

    mahiraj Guest

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    some problems such as <? ?> and<?= ?> are not working.....
     
    mahiraj, Dec 5, 2007 IP
  6. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #6
    This is not a PHP4/5 issue. The short tags can be enabled in php.ini

    
    short_open_tag = On
    
    Code (markup):
    They still work in PHP 5... but its usage is not recommended.
     
    nico_swd, Dec 5, 2007 IP