[pmwiki-users] Status of MimeTeX Cookbook entry?

David Spitzley dspitzle at wash.k12.mi.us
Fri Jul 29 14:16:06 CDT 2005


>>> "Patrick R. Michaud" <pmichaud at pobox.com> 07/29/05 2:17 PM >>>
What error messages are you getting?  If you're getting
messages about "safe_mode violations" then you're probably
not enabled to run .exe files on your server.
-------------------------------------------------------------

Well, the message I get is 

Warning: system(): Unable to fork [/www/cgi/mimetex.exe -d x 2 + y 2 = z 2 pub/cache/a132375055278e1c7b78b4a132c45ff3.gif] in d:\wwwsites\davidaspitzleyorg\www\Dissertation\cookbook\mimetex.php on line 43

Line 43 is part of a longer statement, 
if (!file_exists("$ImgCacheDir/$imgname")  &&  system("$MimetexCmd -d ".escapeshellarg($tex)." > ImgCacheDir/$imgname")  === false)

but the specific command on line 43 is 
 system("$MimetexCmd -d ".escapeshellarg($tex)." >$ImgCacheDir/$imgname")

which looks suspiciously like a Linux filesystem command to me.  Any suggestions on what I need to do to get this to work?  I'm wondering (from poking around in the PHP docs) if I need to use exec() rather than system().


David





More information about the pmwiki-users mailing list