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

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -