*************************************************
AH Generator
*************************************************

  Requirements:
	- Lynx or Links or eLinks
	- PHP 5.4.x or higher
	- MySQL Extensions for PHP
	- Internet Connection (For FFXIAH Parse)


  Usage:
	syntax: php gen.php [options]
		baseprice=x     set the base price for the items.
		amt=x           set the amount of items you wish to add, default is 3
		ffxi=true       this will take the median price from ffxiah. SLOW.
		history=1       history lines for price, set to 0 if you do not wish to have history. default 1
		clearah=1       this will clear the AH.  [Non-Recoverable]
		duplication=1	this will duplicate last sold rows from the script (ffxiah stuff mainly)

		example: php gen.php baseprice=100 amt=10 history=1
		example: php gen.php ffxi=true amt=10 history=2
		example: php gen.php clearah=1
		example: php gen.php duplication=1 amt=7

	This script was designed for crontabs, however the ffxi mode is not recommended in crontabs.
	This script was designed for *nix, and require a textmode browser for ffxi mode.
	

If using on windows (untested):
	Download Lynx and Compile for Windows (http://lynx.isc.org/lynx2.8.7/index.html)
	Download PHP for windows with MySQL connector (http://windows.php.net/download/)
	Place compiled Lynx and php files (php.exe, php5ts.dll, ext\php_mysql.dll, ext\php_mysqli.dll) in same dir as the php script.
	Please note, you will need the VC9 Libraries installed on your machine (The download page for windows php has link)
	run using the options above from command line. (you can create a batch file for Windows Scheduler)


