Jump to content

simple string shell_exec puzzle


LiquidGib

Recommended Posts

In php, why does the following only print $msg?  The second variable $msgg is not printed.

 

                $msg = 'This is a hidden message 1234567890';

$msgg = 'This is a hidden message only meant for the person who is reading it :) 1234567890';

echo shell_exec("echo $msg");

echo shell_exec("echo $msgg");

Link to comment
https://forums.phpfreaks.com/topic/82694-simple-string-shell_exec-puzzle/
Share on other sites

In php, why does the following only print $msg?  The second variable $msgg is not printed.

 

                $msg = 'This is a hidden message 1234567890';

$msgg = 'This is a hidden message only meant for the person who is reading it :) 1234567890';

echo shell_exec("echo $msg");

echo shell_exec("echo $msgg");

 

Remove the smiley face from $msgg and re-run the commands. does it print now?

 

PhREEEk

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.