views:

17

answers:

2

I am converting images using imagemagick from php. I have a directory name that contains ampersand. When I issue a command from php using exec it does not work for the directory that contains ampersand (&) sign. Can anyone help me how to solve this problem? I can't rename the directory.

Thanks

+1  A: 

Try enclosing the directory name in single-quotes. This should disable the special meaning of the ampersand.

Mark Byers
jason
A: 

I tried double quotes and it worked! Thanks

jason