Hello,
in your script you wrote the lines
Due to the fact that the script can read the localconf.php it could be easy to read already given values. Perhaps it's also possible to verify the systemconfiguration to search for an installation - just never thought about it.
Nevertheless: fine script and a nice idea!
In future perhaps special features also could be testet (i.e. curl, serverconfiguration for cronjobs, ...)
Symlinks under Windows are possible with "junction" from the microsoft-website.
On the page of php.net also are some propositions for writing code for windows as well as unix referring this programm.
But Windows I only use for local development, I think it's not so important for the most.
Best regards
David
in your script you wrote the lines
if(isWindows()) {
$this->PATHS = array('c:\php\imagemagick\', 'c:\apache\ImageMagick\');
} else {
$this->PATHS = array('/usr/bin/','/bin/','/usr/sbin/','/sbin/','/usr/local/bin/','/opt/local/bin/');
}
$this->PATHS = array('c:\php\imagemagick\', 'c:\apache\ImageMagick\');
} else {
$this->PATHS = array('/usr/bin/','/bin/','/usr/sbin/','/sbin/','/usr/local/bin/','/opt/local/bin/');
}
Due to the fact that the script can read the localconf.php it could be easy to read already given values. Perhaps it's also possible to verify the systemconfiguration to search for an installation - just never thought about it.
Nevertheless: fine script and a nice idea!
In future perhaps special features also could be testet (i.e. curl, serverconfiguration for cronjobs, ...)
Symlinks under Windows are possible with "junction" from the microsoft-website.
On the page of php.net also are some propositions for writing code for windows as well as unix referring this programm.
But Windows I only use for local development, I think it's not so important for the most.
Best regards
David



Author: