\n ";
294 | echo "Exception Message: " . $errMsg;
295 | print_r($browserObj->getDebugData());
296 | print_r($browserObj->getDebugFileContent());
297 | echo "\n
\n >>>End Debug";
298 | ```
299 |
--------------------------------------------------------------------------------
/INSTALL.md:
--------------------------------------------------------------------------------
1 | # Installation:
2 |
3 | ### Requirements:
4 | Tested working against the following operating systems and versions.
5 | ```php
6 | Centos 6, 7.
7 | Windows 7 (Still Experimental).
8 | RedHat Enterprise 6.
9 | Debian 8.
10 | Ubuntu 16.
11 | Arch 2016-05-01
12 |
13 | ```
14 |
15 | It should work against other Linux versions as long as they are the same flavor.
16 |
17 | ####Packages Linux:
18 | ```php
19 | Mandetory:
20 |
21 | php 5.3 (or newer)
22 | php must allow the "exec()" function
23 | python
24 | screen
25 | fontconfig
26 |
27 | Optional:
28 | sudo
29 | msttcore-fonts
30 | ```
31 |
32 | ####Packages Windows:
33 | ```php
34 | Mandetory:
35 |
36 | php 5.3 (or newer)
37 | php must allow the "exec()" function
38 | php must allow the "popen()" function
39 | php must allow the "pclose()" function
40 | php must allow the "proc_open()" function
41 |
42 | ```
43 |
44 | If browser screenshots are not rendering text on buttons you are most likely missing the correct fonts.
45 |
46 |
47 | ### Perform Install:
48 |
49 | #### Linux:
50 | You can run the setup in one of 3 ways:
51 |
52 | 1) Composer Install.
53 | This assumes you have composer installed already.
54 | Issue command "composer require merlinthemagic/mts" to make it part of your requirements
55 | After install you will need to execute the "MtsSetup.php" file in the root of the package,
56 | and follow the last installation steps (see option 2 or 3 for how to complete this step).
57 | This because Composer will not trigger the "post-install-cmd" of a dependency.
58 |
59 | 2-3) Manual Install:
60 | Download MTS from GitHub and upload the MTS directory to a location on your server. i.e. /var/www/tools/.
61 | You cannot only upload the content of the directory, you must upload the directory and maintain the directory name (MTS).
62 | Remember the location you uploaded to, you will need it later.
63 | Then complete install with option 2 OR 3 below.
64 |
65 | 2) Place the 'MtsSetup.php' file in a folder that is published by your webserver.
66 | Then Access the 'MtsSetup.php' file in a browser and follow the instructions.
67 | At the top of the page you will be asked to give 'Absolute Path to the directory that holds the MTS folder:'.
68 | In this example that path is '/var/www/tools/', because inside the tools directory is the MTS directory you uploaded.
69 |
70 | 3)
71 | Run the setup from the command line of the server.
72 | In this case you cannot move the 'MtsSetup.php' file, it must be located in the same directory as the 'MTS' directory.
73 |
74 | Once all dependencies have been resolved you will be provided a path that should be included in your
75 | project whenever you wish to call a function included in the MTS kit.
76 |
77 | #### Windows:
78 | You can run the setup in one of 2 ways:
79 |
80 | 1) Composer Install.
81 | This assumes you have composer installed already.
82 | Issue command "composer require merlinthemagic/mts" (dev version) to make it part of your requirements
83 |
84 | 2) Manual Install:
85 | Download MTS from GitHub and upload the MTS directory to a location on your server. i.e. C:\inet\wwwroot\tools\MTS\.
86 | You cannot only upload the content of the directory, you must upload the directory and maintain the directory name (MTS).
87 |
88 | Whenever you wish to use the MTS tools add:
89 | require_once "c:\path\to\mts\folder\EnableMTS.php";
90 |
91 | (replace c:\path\to\mts\folder with whatever path you chose to place the package in i.e. C:\inet\wwwroot\tools\MTS)
92 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU LESSER GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.