PHP 5 on my server.
Moderator: General Moderators
PHP 5 on my server.
I called my hosting provider and they said I am able to use PHP 5 rather then PHP 4, which I'm using.
But, in order to do this they said I need to use an htaccess file to notify my server that I would like to use php 5 as my default version.
How could I do this with an htaccess file, or is there any other way for me to set php 5 as my default version? I'm on a shared hosting server so I would be restricted to some things.
Thanks in advance.
But, in order to do this they said I need to use an htaccess file to notify my server that I would like to use php 5 as my default version.
How could I do this with an htaccess file, or is there any other way for me to set php 5 as my default version? I'm on a shared hosting server so I would be restricted to some things.
Thanks in advance.
what does this give you
Code: Select all
<?php
class BaseClass {
function __construct() {
print "In BaseClass constructor\n";
}
}
class SubClass extends BaseClass {
function __construct() {
parent::__construct();
print "In SubClass constructor\n";
}
}
$obj = new BaseClass();
$obj = new SubClass();
?>Then why does my php version say PHP 4?thiscatis wrote:That's possible, they only make sure the PHP files are actually parsed by the PHP5 engine.
It works on my server.
EDIT:
Code: Select all
<?php
class BaseClass {
function __construct() {
print "In BaseClass constructor\n";
}
}
class SubClass extends BaseClass {
function __construct() {
parent::__construct();
print "In SubClass constructor\n";
}
}
$obj = new BaseClass();
$obj = new SubClass();
echo $obj->__construct();
?>
Code: Select all
In BaseClass constructor In SubClass constructor- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
easy to test
Code: Select all
echo curl_version();