Encode MP3's Through PHP / run external .exe / please help!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
smukator
Forum Newbie
Posts: 1
Joined: Sat Dec 04, 2004 8:24 am

Encode MP3's Through PHP / run external .exe / please help!

Post by smukator »

Hi, i cant seem to figure out how to run e.g. the lame mp3 encoder through a php script.. the exe file is in the same dir as the script..

i'm trying to develop a script for encoding user uploaded mp3's to a lesser quality, but i don't know how to run an external .exe file with command line parameters..

is this possible on windows? do i need some .ini modifications?
or how do i do it on a linux server?

thank you for your answers..
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

on linux, use exec - for windows check the workaround in the user-notes.
Post Reply