Wordpress Themes

Installing prado php framework applications on godaddy

August 2nd, 2007

This is a quick and dirty one for anyone that has ever tried to deploy their application on godaddy using the php application framework Prado. I personally like it for its versatility but i had a problem when i tried to deploy the application on the remote host.

I began by slimming down the actaual Prado application folder to the main files in the root directory, and only keeping the test, framework and requirements folder.

I then copied over the folder that contained my application and made sure than the base path in the index.php was correct which it was. However, when i went to the url for the site i got this error…

Parse error: parse error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/someting/someting/html/prado/framework/PradoBase.php on line 46

Which left me utterly perplexed because the exact same setup worked perfectly on my local server. The solution here is simple, create a temporary index.php to discover what version your host is using, in this case on godaddy php5. Then get rid of the index.php you just created and go back the application folder for the new site.

Go to the index.php and rename it like so…. index.php5 and hey presto you are good to go.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • BlinkList
  • Reddit
  • Technorati
  • YahooMyWeb
  • Netscape
  • Netvouz
  • DZone
  • MisterWong

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.