Jump to content

shell_script textogif [PHP]


criptkiller

Recommended Posts

Olá Boa Tarde,

Ando a desenvolver um script em PHP

a rotina é simples:

- O utilizador faz input de um texto LaTeX

- Faz submit

- O PHP escreve num ficheiro com a extensão ".tex"

- executa esse ficheiro com a função shell_script ( com comandos já pre-instalado )

- E devolve uma imagem.

O que eu espero que me devolta:

uma imagem.

O que me esta a devolver:

echo x | latex test

This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
kpathsea: Running mktexfmt latex.fmt
fmtutil: format directory `/.texmf-var/web2c' does not exist.
I can't find the format file `latex.fmt'!
Error processing command:
echo x | latex test

at ./textogif line 212.

O script que falo chama-se "textogif".

Esse script é executado da seguinte forma:

./textogif test.tex

Se fizer login por SSH e executar por SSH o comando anterior, corre tudo pelo o melhor.

Alguém me pode dar alguma dica ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. 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.