Total Video Converter Command Line Demo Guide
1. Install IIS(Windows XP)/Apache(Linux) MySQL and PHP, you can see the following pages for guide:
2. Copy the folder TVCCDemo to your web root and set file/directory permissions
On windows
set the permission of the file error-output.txt in the folder tmp to let the IIS user have the permission to access it.
On Linux, open terminal and type:(suppose the web root is /html)
chown -v myuser:myuser /html/CTVCDemo/uploaded (directory to save uploaded files)
chown -v myuser:myuser /html/CTVCDemo/converted (directory to save converted files)
chmod 744 /html/CTVCDemo/uploaded
chmod 744 /html/CTVCDemo/converted
3. edit php files
find "mysql_connect("localhost","root","123")" in ctvc.php, db.php and list.php, change "localhost" to your mysql hostname, "root" to your mysql username, "123" to your mysql password
find "E:/cmdvc/TVCC.exe"(on Windows) or "/my/cmdvc/TVCC.exe"(on Linux) in ctvc.php, change it to the path of the executable file TVCC.exe.
find "E:/cmdvc/watermark.gif"(on Windows) or "/my/cmdvc/watermark.gif"(on Linux) in ctvc.php, change it to the path of the watermark file.
4. Open your web browser, type "http://localhost/ctvcdemo/db.php" to create database and table.
5. Open the url
http://localhost/ctvcdemo/index.php to run it.
6. How to clear mysql records and uploaded files, converted files on Linux
copy "clear.sh" to your computer, open it, find "/html", change it to your web root, save it.
Open terminal, go to the directory of "clear.sh", type "sh clear.sh".
|