Welcome Guest, Not a member yet? Register   Sign In
Login Function Works Locally But Not When Live?
#7

[eluser]cahva[/eluser]
Easiest way to see the environment you are in is to create a script with contents like this:
Code:
<?php
phpinfo();
?>

Difference between PHP 4 and PHP 5 constructor is that in PHP 5 its __construct() and in PHP 4 its the same name as the class. Heres the difference in code:
Code:
// PHP 4
class Home extends MY_Controller {

    // Constructor
    function Home()
    {
        parent::MY_Controller();
    }
}

// PHP 5
class Home extends MY_Controller {

    // Constructor
    function __construct()
    {
        parent::__construct();
    }
}

I suspected that you are on PHP 4 server if nothing in your constructor is executed.


Messages In This Thread
Login Function Works Locally But Not When Live? - by El Forum - 01-19-2010, 10:54 AM
Login Function Works Locally But Not When Live? - by El Forum - 01-19-2010, 11:20 AM
Login Function Works Locally But Not When Live? - by El Forum - 01-19-2010, 11:22 AM
Login Function Works Locally But Not When Live? - by El Forum - 01-19-2010, 11:52 AM
Login Function Works Locally But Not When Live? - by El Forum - 01-19-2010, 12:25 PM
Login Function Works Locally But Not When Live? - by El Forum - 01-19-2010, 12:27 PM
Login Function Works Locally But Not When Live? - by El Forum - 01-19-2010, 12:28 PM
Login Function Works Locally But Not When Live? - by El Forum - 01-19-2010, 12:54 PM
Login Function Works Locally But Not When Live? - by El Forum - 01-19-2010, 12:58 PM
Login Function Works Locally But Not When Live? - by El Forum - 01-19-2010, 12:58 PM
Login Function Works Locally But Not When Live? - by El Forum - 01-19-2010, 01:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB