I created a PHP login portal in a local computer running XAMPP v1.8.2-3 and it was working fine, but when I uploaded it in a CentOS 6.6 (Final) which I also use for other PHP stuff, it was not working at all.
I noticed that when right after I create a new class instance "$user = new User()" the page will stop loading with no errors.
I am I missing a package or something?
php.i686 5.3.3-46.el6_6 @updates
php-cli.i686 5.3.3-46.el6_6 @updates
php-common.i686 5.3.3-46.el6_6 @updates
php-mysql.i686 5.3.3-46.el6_6 @updates
php-pdo.i686 5.3.3-46.el6_6 @updates
php-xml.i686 5.3.3-46.el6_6 @updates
mysql.i686 5.1.73-3.el6_5 @base
mysql-libs.i686 5.1.73-3.el6_5 @anaconda-CentOS-201410241409.i386/6.6
mysql-server.i686 5.1.73-3.el6_5 @base
httpd.i686 2.2.15-39.el6.centos
httpd-tools.i686 2.2.15-39.el6.centos
Code:
require_once('core/init.php');
echo "before $user = new user()";
$user = new user();
echo "After $user = new user()";
<form action="" method="post">
</form>
Browser Result:
before $user = new user()