I'm facing a problem with calling java from php on a linux server with popen.
$java = '/usr/bin/java';
$cmd = "$java -jar javafiles/register.jar < $tmpFile";
What does the < before $tmpFile mean? Because apparently it is loading the content of $tmpFile from disk and inputting it directly on the console of the register.jar execution. Is that the case? Because the content of $tmpFile has special characters and these aren't being encoded in the right charset.