<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>I'm having trouble getting dvipng and other related programs to run inside a php script. I have the following specs:<br><br>Mac OS X (10.5.7)<br>MAMP web server running locally on the mac (Apache 2, PHP 5)<br>MacTex 2008<br><br>Here is a sample problem:<br><br><span style="font-weight: bold;"><?php<br>$command = "/usr/texbin/latex file.tex";<br>exec($command);<br>$command = "/usr/texbin/dvipng file.dvi";<br>exec($command);<br>?></span><br><br>The
first command executes fine, outputting a dvi file. But the second
command does not do anything. It should produce a png image. When I
issue the same commands from the shell, they run fine, and I get a png
file as the final result. dvipng is not the only program I have trouble
with...dvipdf doesn't work, nor does converting from a .ps file using
the program convert.<br><br>This procedure has worked fine on my
dedicated linux server box, so I'm wondering if there's something wrong
with my local install. But I don't know where to look.<br><br>Can someone help me?<br><br>Thank you very much.<br>Carter</td></tr></table><br>