This feature is only supported on a Linux or UNIX server (under Microsoft
Windows, output and error redirection cannot be easily captured by the PHP
process). Furthermore, PHP should not be running in safe mode, so the feature might
not be available on hosted servers. A minimum PHP version of 4.3.0 is required for
this feature to work.
For security reasons, the exact path and name of the application cannot be set from
within phpMyAdmin as a transformation option. The application names are set
directly inside one of the phpMyAdmin scripts.
First, in the phpMyAdmin installation directory, we edit the
text_plain__external.inc.php file in libraries/transformations/,
and find the following section:
$allowed_programs = array();
//$allowed_programs[0] = '/usr/local/bin/tidy';
//$allowed_programs[1] = '/usr/local/bin/validate';
No external application is configured by default; we have to explicitly add our own.
The names of the transformation scripts are constructed using the
following format: the MIME type, a double underscore, and then a part
indicating which transformation occurs.
MIME-Based Transformations
[ 250 ]
Each allowed program must be described here, with an index number, starting from
0, and its complete path. Then, we save the modifications to this script and put it
back on the server if needed. The remaining setup is completed from the panel where
we chose the options for the other browser transformations.
Pages:
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231