The recently (v5.7.1+) introduced 'php' field attribute needs some documentation. The name of the file to be executed is fixed in the said attribute and cannot have any variables ordinarily as they are normally declared before including and instantiating the phpmyedit class file.
Attached is a zip file containing 'phpMyEdit-vars_in_php.txt' listing the variables available for use inside the php file.
A sample field declaration would be:
$opts['fdd']['Junk'] = array(
'name' => 'Junk',
'select' => 'T',
'sql|LV' => '',
'php' => 'Dept.php',
'options' => 'LV',
'escape' => false,
'sort' => false
);
The contents of a 'Dept.php' to obtain the variables listing is:
<?
echo "This is $row[qf1]";
$arr = get_defined_vars(); print_r($arr);
$arr = get_defined_constants(); print_r($arr);
?>
The support site at http://opensource.platon.sk appears down and hence this forum can be made active for uses to publicly share info.
Variables available inside php eval file