I'm on Dreamhost, which runs php4 and php5, and I've generated a class
for one of my objects using the php5 option. i've tried php5.1 as well,
but neither have worked. after uploading the unzipped contents, and
loading setup/index.php, i get this error:
Parse error: syntax error, unexpected '{' in
/home/.jeebie/username/mywebsite.net/pog2/setup/index.php on line 81
line 81 in index.php is the bracket line under the try:
if(file_exists("../objects/class.database.php"))
{
include "../objects/class.database.php";
//try connecting to the database
80 try
81 {
$database = new DatabaseConnection();
has anyone had this problem before? any help would be greatly
appreciated!
TIA!
cdcoon
usually, when a host supports both php 5 and 4, you have to rename your
files from filename.php to filename.php5 to tell the server to process
the script using the php 5 engine.
it appears that it's processing it using php4 right now, because in
php4, try-catch is not supported.
dreamhost must have some documentation about using php 5 scripts.
Hope this helps.
The problem was that I didn't have php5 enabled...stupid me. I thought
that it was enabled by default on Dreamhost, but apparently its a
option. So, if any of you are getting the same problem I have, go to
the dreamhost web panel and enable php5.
such an easy fix!