bash - Setting array as environment variable for exec() in apache2 -
i use apache2 server , need execute bash scripts on server. use exec() function. scripts should define environment variables apache sends me error when i'm trying start server bash-like definition:
/etc/apache2/envvars: syntax error: "(" unexpected syntax export my_array = (1 2 3) works in terminal doesn't works placing in apache's envvars file.
so how can define array environment variable work in other scripts using php function exec()?
thanks.
Comments
Post a Comment