Search found 14 matches

by lukasg
Thu Aug 08, 2013 4:10 am
Forum: PHP coding => General
Topic: exec() function, cmd, background printing
Replies: 28
Views: 17466

Re: exec() function, cmd, background printing

Many thanks for all your help and and the time spent on helping me :)
by lukasg
Wed Jul 31, 2013 8:23 am
Forum: PHP coding => General
Topic: exec() function, cmd, background printing
Replies: 28
Views: 17466

Re: exec() function, cmd, background printing

Great, tell me please on what OS ?
by lukasg
Mon Jul 29, 2013 10:48 pm
Forum: PHP coding => General
Topic: exec() function, cmd, background printing
Replies: 28
Views: 17466

Re: exec() function, cmd, background printing

passthru has only 2 arguments, so retcode was skiped, those are the results, the order is the same Output is: int(0) return code is: raw output is: NULL Output is: array(0) { } return code is: int(-1073741819) raw output is: string(0) "" Output is: array(0) { } return code is: int(0) raw output is: ...
by lukasg
Mon Jul 29, 2013 12:23 am
Forum: PHP coding => General
Topic: exec() function, cmd, background printing
Replies: 28
Views: 17466

Re: exec() function, cmd, background printing

No error, no warnings, no nothing, print dialog window doesnt appear, print wont print...
by lukasg
Sun Jul 28, 2013 5:48 am
Forum: PHP coding => General
Topic: exec() function, cmd, background printing
Replies: 28
Views: 17466

Re: exec() function, cmd, background printing

All i want is to force my printer to print test.pdf using exec() php function.

passthru() ends up with nothing, how can i debug passthru ?
by lukasg
Sat Jul 27, 2013 12:36 pm
Forum: PHP coding => General
Topic: exec() function, cmd, background printing
Replies: 28
Views: 17466

Re: exec() function, cmd, background printing

0) file test.pdf exists on C:\ 1) $rawoutput = exec("C:\\PROGRA~2\\FOXITS~1\\FOXITR~1\\FOXITR~1.exe /p C:\\test.pdf", $output,$retcode ); same, nothing happens 2) $rawoutput = exec("C:\PROGRA~2\FOXITS~1\FOXITR~1\FOXITR~1.exe /p C:\test.pdf", $output,$retcode ); file not found or could not be opened ...
by lukasg
Sat Jul 27, 2013 4:29 am
Forum: PHP coding => General
Topic: exec() function, cmd, background printing
Replies: 28
Views: 17466

Re: exec() function, cmd, background printing

As you said, i got:

$rawoutput = exec("C:\\PROGRA~2\\FOXITS~1\\FOXITR~1\\FOXITR~1.exe /p C:\\test.pdf 2>&1", $output,$retcode );

as result:

Output is: array(0) { }
return code is: int(0)
raw output is: string(0) ""

and still nothing
by lukasg
Fri Jul 26, 2013 12:33 pm
Forum: PHP coding => General
Topic: exec() function, cmd, background printing
Replies: 28
Views: 17466

Re: exec() function, cmd, background printing

Result o got:

Output is: array(2) { [0]=> string(66) "'C:\Program' is not recognized as an internal or external command," [1]=> string(31) "operable program or batch file." }
return code is: int(1)
raw output is: string(31) "operable program or batch file."
by lukasg
Thu Jul 25, 2013 11:39 pm
Forum: PHP coding => General
Topic: exec() function, cmd, background printing
Replies: 28
Views: 17466

Re: exec() function, cmd, background printing

When i run this:

"C:\\Program Files (x86)\\Foxit Software\\Foxit Reader\\Foxit Reader.exe /p C:\\test.pdf"

in win cmd it works

but when i try:

exec("C:\\Program Files (x86)\\Foxit Software\\Foxit Reader\\Foxit Reader.exe /p C:\\test.pdf ");

it happens nothing...
by lukasg
Thu Jul 25, 2013 12:19 am
Forum: PHP coding => General
Topic: exec() function, cmd, background printing
Replies: 28
Views: 17466

Re: exec() function, cmd, background printing

1. Foxit reader.exe has full rights for all user on my win7 2. "You will have to escape any other double quotes in between the full command" something like that: exec("\"C:\Program Files (x86)\Foxit Software\Foxit Reader\Foxit Reader.exe" /p C:\test.pdf \") im not sure, becouse it doesnt work anyway.
by lukasg
Tue Jul 23, 2013 9:58 pm
Forum: PHP coding => General
Topic: exec() function, cmd, background printing
Replies: 28
Views: 17466

Re: exec() function, cmd, background printing

It's, working alone

Image
by lukasg
Mon Jul 22, 2013 12:51 am
Forum: PHP coding => General
Topic: exec() function, cmd, background printing
Replies: 28
Views: 17466

Re: exec() function, cmd, background printing

yes, it does

thats my *.bat

@ECHO OFF
"C:\\Program Files (x86)\\Foxit Software\\Foxit Reader\\Foxit Reader.exe" /p C:\\test.pdf
EXIT
by lukasg
Sat Jul 20, 2013 10:27 am
Forum: PHP coding => General
Topic: exec() function, cmd, background printing
Replies: 28
Views: 17466

Re: exec() function, cmd, background printing

i get:

It doesn't work

but when i try:

exec('"C:\\Program Files (x86)\\Foxit Software\\Foxit Reader\\Foxit Reader.exe" C:\\test.pdf')

i get same effect:

Image
by lukasg
Thu Jul 18, 2013 9:43 pm
Forum: PHP coding => General
Topic: exec() function, cmd, background printing
Replies: 28
Views: 17466

exec() function, cmd, background printing

Hi, i need a little bit of your help with using the exec() function under Windows 7. When i try: exec('"C:\Program Files (x86)\Foxit Software\Foxit Reader\Foxit Reader.exe" C:\test.pdf') or die("It doesn't work"); it ends up with Interactive Service Detection (foxit opens my file in the "background"...