SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot Tekdot's Avatar
    Join Date
    Jul 2005
    0 Post(s)
    0 Thread(s)

    [win32] I want exec() to show window

    Hello all,

    I'm having a little bit of trouble trying to launch an application in Windows from exec(). Heres the code I'm using

    exec('"C:\Program Files\Windows Media Player\wmplayer.exe" "Z:\media\filename.avi" /fullscreen');
    When I check the task manager, I see wmplayer.exe running under the user "SYSTEM" but I see no windows media player window.

    The "server" is just my desktop with WinXP,PHP 5.2 & Apache 2.2. I have no experience with Apache/PHP on windows so sorry if this is a dumb question.

    I've tried exec(), shell_exec(), system() and I tried exec'ing the command and a batch file with the command in it and still no luck.
    Any ideas?
    Need a large site moved (5 GB +)? I can help, PM me for pricing.
    [PR 4] Large File Hosting Site looking for link trades

  2. #2
    SitePoint Enthusiast
    Join Date
    Sep 2005
    0 Post(s)
    0 Thread(s)
    use addslashes to escape backslash.. it may help


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts