| | |
Calling Audio Conversion Tool with PHP on Win 2003
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2008
Posts: 1
Reputation:
Solved Threads: 0
I am working on a web site where I have this requirement to convert audio files into mp3s. The following audio formats are to be converted into mp3: .wav, .wma, .aac, .vox, .aif, .amr, .ogg, .aiff
I am using an audio converter called AudioCommander (http://www.mystikmedia.com/audiocommander.asp), calling this tool on command line in PHP, this is the code:
Now this code works just great and fine on Win XP and Vista, but running the same script on Win 2003 server yields no result at all. The web server on Win 2003 is Apache 2.2. I have to make it work on Windows 2003 server with PHP 5.2 and Apache 2.2.....I believe the problem on Win 2003 is the way the tool is invoked/called to work, something's wrong with the command in PHP, What am I doing wrong here? Any help or guidance at all will be highly appreciated.
Thanks in advance.
Khawar
I am using an audio converter called AudioCommander (http://www.mystikmedia.com/audiocommander.asp), calling this tool on command line in PHP, this is the code:
PHP Syntax (Toggle Plain Text)
<? function convert($commander) { $app_path="$commander /f c:\source\ /usfp /op c:\source\ /fmt MP3 /mp3f 1 /mp3c 2 /mp3m 0 /mp3b 5"; echo exec($app_path); } $commander = "C:\BBox_Converter\AudioCommander.exe"; convert($commander); ?>
Now this code works just great and fine on Win XP and Vista, but running the same script on Win 2003 server yields no result at all. The web server on Win 2003 is Apache 2.2. I have to make it work on Windows 2003 server with PHP 5.2 and Apache 2.2.....I believe the problem on Win 2003 is the way the tool is invoked/called to work, something's wrong with the command in PHP, What am I doing wrong here? Any help or guidance at all will be highly appreciated.
Thanks in advance.
Khawar
•
•
Join Date: Aug 2008
Posts: 381
Reputation:
Solved Threads: 33
Hi,
I don't have personal experience with Win 2003 Server (I have it but never got around to installing it), but it looks like maybe this is the solution to the problem you are having -- http://www.visualwin.com/PHP/
Hope it helps
I don't have personal experience with Win 2003 Server (I have it but never got around to installing it), but it looks like maybe this is the solution to the problem you are having -- http://www.visualwin.com/PHP/
Hope it helps
Google is the answer to all of your questions -- the trick is knowing what question to ask in your specific predicament.
![]() |
Other Threads in the PHP Forum
- Previous Thread: time difference from time stamp
- Next Thread: syntax error, unexpected $end in ndex.php on line 127
| Thread Tools | Search this Thread |
.htaccess ajax apache api array beginner binary body broken cakephp checkbox class cms code cron curl database date date/time directory display download dynamic echo email error file files folder form forms function functions global google href htaccess html image include insert integration ip java javascript joomla limit link list login loop mail menu mlm mod_rewrite msqli_multi_query multiple mycodeisbad mysql oop parameter paypal pdf php problem query radio random recourse recursion regex registrationform remote script search seo server sessions sms soap source space sql static syntax system table tutorial update upload url validation validator variable video web webdesign wordpress xml youtube





