Re: PHP and command line (for Wiki)



On Jul 3, 12:37 am, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:
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.



the fopen code was working also in with the back slash... however
thanks for the suggestion. In any case, latex is still not compiling
the files when called by PHP...

Cheers

.



Relevant Pages

  • Re: PHP and command line (for Wiki)
    ... few days because I am installing a Wiki on a virtual server (Windows ... I execute the following by command line: ... '\' is the PHP escape character. ...
    (comp.lang.php)
  • Re: PHP and command line (for Wiki)
    ... few days because I am installing a Wiki on a virtual server (Windows ... I execute the following by command line: ... extended php parser ~ http://code.google.com/p/pihipi ...
    (comp.lang.php)
  • PHP and command line (for Wiki)
    ... few days because I am installing a Wiki on a virtual server (Windows ... I have PHP5 and all is working just fine. ... I execute the following by command line: ...
    (comp.lang.php)
  • Re: IE screwed up after 9 windows updates today
    ... >execute the Virtual Server 2005 Remote Control ActiveX control when ... and I have trouble installing some software while it's installed? ...
    (microsoft.public.windowsupdate)
  • Re: Problem with XP Search "hanging"
    ... Enquire, plan and execute ... Windows Key + F ... try installing any software like tuneup utilities or CCleaner as ...
    (microsoft.public.windowsxp.help_and_support)