#1
  1. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,969
    Rep Power
    173

    Strange: Phpinfo shows different version compare to cpanel!


    Hey guys;

    I get 2 different results from phpinfo and cpanel ( for the same website!!!!).

    phpinfo says: PHP Version 4.4.8
    cpanel says: PHP version 5.2.12

    I know the 4.4.8 is correct cause my classes do not work!

    2 quesitons:
    1 - How can I change the version from 4.4.8 to 5.2.12 ?
    2 - Why are they different?

    Thanks
  2. #2
  3. Dark Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    15,690
    Rep Power
    9568
    It's not uncommon to have multiple PHP installations on a machine. Especially having PHP 4 and 5 on a shared environment.

    Look in cPanel for settings you can change, or contact your web hosting provider for help.
  4. #3
  5. Mad Scientist
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Oct 2007
    Location
    North Yorkshire, UK
    Posts
    3,659
    Rep Power
    4126
    on some shared systems where both are installed one uses .php extensions as PHP4 and .php5 extensions for PHP5.
    I said I didn't like ORM!!! <?php $this->model->update($this->request->resources[0])->set($this->request->getData())->getData('count'); ?>

    PDO vs mysql_* functions: Find a Migration Guide Here

    [ Xeneco - T'interweb Development ] - [ Are you a Help Vampire? ] - [ Read The manual! ] - [ W3 methods - GET, POST, etc ] - [ Web Design Hell ]
  6. #4
  7. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,969
    Rep Power
    173
    Thanks fellows

IMN logo majestic logo threadwatch logo seochat tools logo