Hi,
might be a stupid problem, but can anybody tell me, why I get the
following error when trying to run a batch script directly from the
command line with "php batch_name.php" from the symfony/batch directory?
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION'
or `T_VAR' or `'}'' in /usr/local/php5/lib/php/symfony/util/
sfCore.class.php on line 20
I'm using symfony 1.0.7 and the access to my app via a web browser
doesn't pose any problems.
Content of the batch so far:
<?php
define('SF_ROOT_DIR', realpath(dirname(__FILE__).'/..'));
define('SF_APP', 'picit');
define('SF_ENVIRONMENT', 'prod');
define('SF_DEBUG', false);
require_once
(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIREC
TORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
Problem arises due to the execution of config.php as far as I found out.
thanks,
Pierre
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---