[Wine] Re: Running wine via php

asmith wineforum-user at winehq.org
Mon Feb 8 03:16:08 CST 2010


Please delete my first post.

I'm trying to run a command with wine via php: 


Code:

<?php
$test = shell_exec('wine c:\\\\program.exe');
echo $test;
?> 




It doesn't work. but the same command : wine c:\\program.exe
Works fine in the SSH directly.

I tried with php shell_exec('wine --version') and I received my wine version but can't run the program through my browser (php).

any idea?
Ubuntu: 8.04
Wine: 1.1.37
webserver: nginx
php: 5







More information about the wine-users mailing list