Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Getting Started > Installing (WEC Starter Package) > proposition: change wec_servercheck.php
Total Posts: 2 - Pages (1): [1]
Author: David Bruchmann
Posted: Mar 11 2008 - 01:32 AM
Subject: proposition: change wec_servercheck.php
Hello,

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/');
}

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
user picture Author: Christoph Koehler
Posted: Mar 11 2008 - 12:08 PM
Subject: re: proposition: change wec_servercheck.php
David,

Thanks for the suggestions. The reason we don't read from localconf is that we don't assume it's there. This script was mainly intended to check servers before TYPO3 is installed, but I am sure we can read localconf if TYPO3 is installed.

Christoph
Total Posts: 2 - Pages (1): [1]
You must login to post a message to this conference.