• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Stupid question: php, variables and misplaced quote marks..

scoob8000

2[H]4U
Joined
May 4, 2002
Messages
2,834
Very tired and I'm not thinkinging right..

I know I'll be embarassed when I see the answer..

Code:
shell_exec('convert -background white -fill black -font arial -pointsize 32 label:$output sig.jpg');

What am I missing with my $output that the content of that variable is being passed but rather "$output" itself...
 
You're using single quotes. The variable won't be "interpreted" as a variable unless you use double quotes.

Best yet, make the variable obvious to other readers by usings a sprintf() or concatenating the string.
 
Very tired and I'm not thinkinging right..

I know I'll be embarassed when I see the answer..

Code:
shell_exec('convert -background white -fill black -font arial -pointsize 32 label:$output sig.jpg');

What am I missing with my $output that the content of that variable is being passed but rather "$output" itself...

use double quotes or if you must use single,

Code:
shell_exec('yourtexthere' . $output . 'yourtexthere');
 
I finally got it..

Too stupid of a mistake to admit. It's alwyas those little things that trip you up.

Thanks for the replies!
 
Back
Top