I have a working app that runs with no errors on my local machine.
When I upload it to my production server (DreamHost) the app works
fine in the browser, but I have a shell script that I run through the
console that gives me errors on the production server.
The errors I'm getting seem to have to do with class object syntax.
For example - this function declaration in my shell file:
private function _checkRules($text, $author_type, $rules) {
Produces this error
Parse error: syntax error, unexpected T_STRING, expecting
T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/jasford/
feedmagnet.com/app/vendors/shells/import.php on line 72
but if I remove the word "private" from the front of the line it does
not return a syntax error.
Does anyone have any idea what could be going on here? I'm running PHP
5.2.9 locally (Entropy release 7) and PHP 5.2.6 on the remote server.
- Jason
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---