Re: PHP and command line (for Wiki)
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Mon, 02 Jul 2007 19:37:01 -0400
Ale wrote:
Hi... I started to "program" in PHP (better say to read it :P) from a
few days because I am installing a Wiki on a virtual server (Windows
Server 2003 with Plesk 7.6). I have PHP5 and all is working just fine.
However, I am trying to parse latex equations and encountered some
troubles. I have already installed all the necessary software and when
I execute the following by command line:
C:\miktex\bin\latex.exe --output-directory=C:\Inetpub\vhosts\mysite.com
\httpdocs\wiki\images\\tmp\\ --interaction=nonstopmode C:\a.tex
I generate the right file in the right folder. However, when I try to
execute (adding it to a PHP routine that is executed for sure):
$command = "C:\miktex\bin\latex.exe --output-directory=C:\Inetpub
\vhosts\mysite.com\httpdocs\wiki\images\\tmp\\ --
interaction=nonstopmode C:\a.tex";
$text = exec($command);
it doesn't happen anything. Permissions in tmp should be fine... do
you have any suggestion?
Thanks
Ale
'\' is the PHP escape character. Either use '\\' instead, or use forward slashes ('/') instead.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- Follow-Ups:
- Re: PHP and command line (for Wiki)
- From: Ale
- Re: PHP and command line (for Wiki)
- References:
- PHP and command line (for Wiki)
- From: Ale
- PHP and command line (for Wiki)
- Prev by Date: Re: php not working with 'localhost'
- Next by Date: Re: PHP and command line (for Wiki)
- Previous by thread: Re: PHP and command line (for Wiki)
- Next by thread: Re: PHP and command line (for Wiki)
- Index(es):
Relevant Pages
|