Hi E's, Something very strange happening in php variable behaviors.
In practice I want resize pictures in Imagemagick, but if I declare the variable in one way the script work, if I declare in other way the script don't work:
In real situation I have to declare the variable in this way:
Var 1 - $novonome = "mod1_" . "$numero" . "." . "jpg"; //The script don't work
and I made a test by declaring the variable differently:
Var 2 - $novonome = "anyname.jpg"; //the script work
Note: I test the variable $numero and work (so, the issue not is the variable $numero)
The line of imagemagick is this one:
exec("/usr/local/bin/convert mod1_imagem_ftp/$novonome -resize 120x120 mod1_imagem_ftp/$novonome");
Why the script work with Var 2 and don't work with Var 1? How I resolve this issue? Will I have to declare the variable differently?