Google Groups Home
Help | Sign in
Newbie Setup Question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
cdcoon  
View profile
 More options Mar 7 2006, 2:43 pm
From: "cdcoon" <cdc...@gmail.com>
Date: Tue, 07 Mar 2006 19:43:01 -0000
Local: Tues, Mar 7 2006 2:43 pm
Subject: Newbie Setup Question
Hey guys,

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joel  
View profile
 More options Mar 7 2006, 2:52 pm
From: "Joel" <joel...@gmail.com>
Date: Tue, 07 Mar 2006 19:52:05 -0000
Local: Tues, Mar 7 2006 2:52 pm
Subject: Re: Newbie Setup Question
Hi,

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.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cdcoon  
View profile
 More options Mar 8 2006, 5:37 am
From: "cdcoon" <cdc...@gmail.com>
Date: Wed, 08 Mar 2006 10:37:14 -0000
Local: Wed, Mar 8 2006 5:37 am
Subject: Re: Newbie Setup Question
Thanks for the response joel,

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!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google