RE: [PHP] How to eject cd-rom with php code?
| From: | Edward Kay | Date: | Wed, 23 May 2007 12:58:50 +0000 |
| Subject: | RE: [PHP] How to eject cd-rom with php code? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255393@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Chetan Graham [mailto:chetan_graham@amritatech.com]
> Sent: 23 May 2007 12:23
> To: php-general@lists.php.net
> Subject: [PHP] How to eject cd-rom with php code?
>
>
> Hi all,
> I am writing a script and need to eject the cd-rom drive at some point.
> Does anyone have an idea how to do this?
> This is a simple command isn't it?
> I greatly appreciate your help
> Blessings,
> Chetanji
>
Pass the appropriate system (i.e. command prompt) command to exec():
http://uk.php.net/exec
Edward