easy way to convert

Discussion in 'PHP' started by mann3r, Sep 19, 2007.

  1. #1
    hello all,
    is there an easy way to convert an existing php script designed for php 4 to php 5?
     
    mann3r, Sep 19, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    The script designed for PHP 4 will most likely work on PHP 5.

    If you get a specific error, post it including the code to get more specific help.
     
    nico_swd, Sep 19, 2007 IP
    mann3r likes this.
  3. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #3
    While that is the case, the people that ask tend to have the most horribly written scripts at their disposal (i.e. it will usually involve more than just fixing a few errors) :p
     
    krt, Sep 19, 2007 IP
    mann3r likes this.
  4. mann3r

    mann3r Peon

    Messages:
    1,416
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    0
    #4
    it has actually tons of php script file, and running it on php 5 server only displays a blank page. but running on php4, seems okay. thanks for you two for answering my thread.
     
    mann3r, Sep 19, 2007 IP
  5. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #5
    Add these 2 lines at the top of the pages that show blank and see if you get any errors.
    
    error_reporting(E_ALL);
    ini_set('display_errors', '1');
    
    PHP:
     
    nico_swd, Sep 19, 2007 IP
  6. mann3r

    mann3r Peon

    Messages:
    1,416
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    0
    #6
    will try it out, is it okay if I will PM you if there are errors I've got?
     
    mann3r, Sep 19, 2007 IP
  7. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #7
    Usually I don't give support via PM. But you can do it if you have a good reason for not posting them in the forum.
     
    nico_swd, Sep 19, 2007 IP