FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » How to run a batch file using PHP?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How to run a batch file using PHP? [message #179346 is a reply to message #179338] Tue, 09 October 2012 10:18 Go to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 08/10/2012 12:19, Fastian escribió/wrote:
>> My batch file:
>>
>> C:\TeX\miktex\bin\latex.exe "E:\wamp\wamp\www\first-program.tex"
>>
>> C:\TeX\miktex\bin\dvipng.exe "E:\wamp\wamp\www\first-program.dvi"
>>
>>
>>
>> (BTW I have tried with double back slash as well as with forward slash in the path)

Backslash is not a escape character in Windows batch.

>> But when I try to run the same batch file using the following php line of code:
>>
>> exec('showpreview.bat');
>>
>> the apache error log reports
>>
>> latex.exe: The memory dump file could not be found.

Your error messages seem to be changing along time... This one suggests
that latex just crashed :-?

> Today I found someone with a similar issue on the following link:
> http://board.phpbuilder.com/showthread.php?10366149-RESOLVED-Executing-an-a pplication-from-PHP
>
> It suggested to use EasyPhp. I tried with it and everything started working as desired. Thanks to Allah(subhanahu watala).
>
> It is working whether you specify the absolute path or relative path. so doesn't seems to be a 'path' related issue.
>
> After reading the thread mentioned above if some one can identify the real issue then it will be really worthy.

If you get a PHP crash then you've hit a bug. And you upgrade/downgrade
to a PHP version after/before the bug was fixed/introduced it's not
surprising that the bug is gone. Who compiled that PHP version does not
look particularly relevant.


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: JOB - Sr. PHP Developer - Fort Lauderdale, FL - Relo/Sponsor OK
Next Topic: Regular Expression Help
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 01 03:55:59 GMT 2024

Total time taken to generate the page: 0.08173 seconds