9 lines
206 B
PHP
9 lines
206 B
PHP
<?php
|
|
move_uploaded_file($_FILES["file"]["tmp_name"], "tmp.tex");
|
|
$output = shell_exec("./tex2png.sh tmp.tex");
|
|
|
|
if ($output !== null) {
|
|
$host = $_SERVER['HTTP_HOST'];
|
|
echo "http://$host/$output";
|
|
}
|
|
?>
|