Jump to content

NEX2NUN

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

NEX2NUN's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. This returns all information regarding your PHP install. [code] <?php phpinfo(); ?> [/code]
  2. @businessman33221 I really appreciate the help! I'm thinking it will be something that I just didn't think of and was in front of my face the whole time. Just need to step away from it and get some outside advice. And yes there are a number of "bugs" within Windows so who knows that could be the problem right there. Thanks again!! -NEX
  3. @ken Yes the web server is a Windows box, (XP Pro, SP2). The batch file is on the same box yes and in the same directory as the php script. PHP is running, I am able to create "Hello World" and see phpinfo(). I just can't get this function to work and it's the one function this system requires. @businessman332211 I read a user comment that gave this as a suggestion for Windows [code] exec('c:\\WINNT\\system32\\cmd.exe /c START c:\\test.bat'); [/code] Now I'm am wondering if PHP is waiting for some process to complete, because the above seems to be doing something, the page is still "opening page". One user commented using a delphi script but I am lost with that. Here's their snippet [code] Delphi-snippet: WinExec(PChar(<CMD>),SW_SHOW); // replace <CMD> with the program path. [/code]
  4. Yeah I'm kind of stumped too. I'm not sure what I am missing. Could it be something disabled with PHP? IIS? I've Googled just about everything I can think of. Yes the batch file and the PHP exec() function are all in the same directory. The batch file contains the following: [code]c:\reader\acrord32.exe /t c:\test.pdf[/code] This calls Acrobat Reader executable and then prints the test.pdf document. The batch file works great when ran but not from PHP. *shrugs*
  5. I'm stuck and I need some help! I am attempting to execute a batch file from within PHP. The batch file runs a DOS command to open and print (to a physical printer) a PDF document. I have a tried a number of different options, but nothing prints out. I was getting a number of syntax errors, however, I then had to enable the Advanced Security functions and give the local user full access right to cmd.exe. Also I have enabled IIS to interact with the desktop. I'm getting no syntax errors now but I am also not getting my print out. I could list ALL of the code I have attempted but still I have gotten nothing. Here's on I tried. [code] <?php exec('test.bat'); ?> [/code] Any ideas? [list] [*]Windows XP [*]IIS 5 [*]PHP 5 [/list] -NEX
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.