A simple PHP script to demonstrate usage of the Zamzar file conversion API.
The script:
Make sure you have:
YOUR_API_KEY
to use your Zamzar API key$sourceFilePath
to point to a file on your local filesystem you wish to convert$convertedFilePath
to use a path on your local filesystem where you wish to save any converted files.$targetFormat
to the name of a target format you wish to convert your file to (check here for a full list of supported formats).php zamzar-sample.php
For further information check out the Zamzar API docs here.