weathermap |
Subversion Repositories: |
Rev 1 | Rev 85 | |
---|---|---|
Line 6... | Line 6... | |
<link rel="stylesheet" type="text/css" media="screen" href="weathermap.css" /> |
<link rel="stylesheet" type="text/css" media="screen" href="weathermap.css" /> | |
<meta name="generator" content= |
<meta name="generator" content= | |
"HTML Tidy for Mac OS X (vers 12 April 2006), see www.w3.org" /> |
"HTML Tidy for Mac OS X (vers 12 April 2006), see www.w3.org" /> | |
|
| |
<title>PHP Weathermap |
<title>PHP Weathermap | |
v0.91 |
v0.97a | |
- Installation - Command-Line Tool Only</title> |
- Installation - Command-Line Tool Only</title> | |
<style type="text/css" media="print"> |
<style type="text/css" media="print"> | |
/*<![CDATA[*/ |
/*<![CDATA[*/ | |
body { font-size: 12pt; } |
body { font-size: 12pt; } | |
a { color: black; text-decoration: underline; font-weight: normal;} |
a { color: black; text-decoration: underline; font-weight: normal;} | |
Line 39... | Line 39... | |
</ul> |
</ul> | |
</div> |
</div> | |
|
| |
<div id="header"> |
<div id="header"> | |
<h1>PHP Weathermap |
<h1>PHP Weathermap | |
v0.91 |
v0.97a | |
</h1> |
</h1> | |
<h4>Copyright © 2005-2007 Howard Jones, <tt><a |
<h4>Copyright © 2005-2010 Howard Jones, <tt><a | |
href="mailto:howie@thingy.com">howie@thingy.com</a></tt>. (<a |
href="mailto:howie@thingy.com">howie@thingy.com</a></tt>. (<a | |
href="http://www.network-weathermap.com/">Website</a>)</h4> |
href="http://www.network-weathermap.com/">Website</a>)</h4> | |
</div> |
</div> | |
|
| |
|
| |
Line 53... | Line 53... | |
<h3>Command-Line Tool Only</h3> |
<h3>Command-Line Tool Only</h3> | |
|
| |
<h4>Requirements</h4> |
<h4>Requirements</h4> | |
|
| |
<p>You will need the 'pcre' and 'gd' PHP modules in <em>your command-line PHP</em>. The command-line tool runs using the command-line PHP which is not always the same as the server-side one. In some situations it is possible to have two completely different PHP installations serving these two - if you install from a package, then re-install from source, but to a different directory, for example. The CLI tool should warn you if the part it needs is not present.</p> |
<p>You will need the 'pcre' and 'gd' PHP modules in <em>your command-line PHP</em>. The command-line tool runs using the command-line PHP which is not always the same as the server-side one. In some situations it is possible to have two completely different PHP installations serving these two - if you install from a package, then re-install from source, but to a different directory, for example. The CLI tool should warn you if the part it needs is not present.</p> | |
|
<p>The command-line tool uses the Console_Getopt <a href="http://pear.php.net/">PEAR</a> module. This comes as standard with PEAR, so you should be able to just install PEAR to get it. This may be a seperate package/port/RPM on your system, or you may need to install it from pear.php.net</p> | |
<p>Before you start using it, you might want to change one PHP setting. Weathermap uses a fair bit of memory by PHP standards, as it builds the image for the map in memory before saving it. As a result, your PHP process <i>may</i> run out of memory. PHP has a 'safety valve' built-in, to stop runaway scripts from killing your server, which defaults to 8MB in most versions (this has changed in 5.2.x). This is controlled by the 'memory_limit =' line in php.ini. You may need to increase this to 32MB or even more if you have problems. These problems will typically show up as the process just dying with no warning or error message, as PHP kills the script.</p> |
<p>Before you start using it, you might want to change one PHP setting. Weathermap uses a fair bit of memory by PHP standards, as it builds the image for the map in memory before saving it. As a result, your PHP process <i>may</i> run out of memory. PHP has a 'safety valve' built-in, to stop runaway scripts from killing your server, which defaults to 8MB in most versions (this has changed in 5.2.x). This is controlled by the 'memory_limit =' line in php.ini. You may need to increase this to 32MB or even more if you have problems. These problems will typically show up as the process just dying with no warning or error message, as PHP kills the script.</p> | |
|
| |
<p>You can then use the pre-install checker to see if your PHP environment has everything it needs. To do this, you need to run a special <tt>check.php</tt> script. From a command-prompt run <tt>php check.php</tt> to see if your command-line PHP is OK. If any modules or functions are missing, you will get a warning, and an explanation of what will be affected (not all of the things that are checked are deadly problems).</p> |
<p>You can then use the pre-install checker to see if your PHP environment has everything it needs. To do this, you need to run a special <tt>check.php</tt> script. From a command-prompt run <tt>php check.php</tt> to see if your command-line PHP is OK. If any modules or functions are missing, you will get a warning, and an explanation of what will be affected (not all of the things that are checked are deadly problems).</p> | |
|
| |
<h4>Installation</h4> |
<h4>Installation</h4> |