Set up Last Minute scrape/php web pages
- Set up screen-scraper
- Update screen-scraper to the newest version:
- Open the screen-scraper workbench
- Click Options > Settings and put a check on "Allow updates to unstable versions" then close the box.
- Click Options > Check for updates. It will prompt you to update to the latest version.
- Save the attached "RCI (Scraping Session).sss" file to the screen-scrape 'import' directory
- Launch screen-scraper workbench once more to ensure update occured, and automatically imported the scrape. Close the workbench when finished.
- Php and MySql must be installed on the machine, and a user is needed that can write to the 'last_minute' database.
- Import the provided MySQL database.
- The sql database file is "lastMinuteDatabase.sql". Import the .sql file into the MySql database named 'last_minute'
- Install/initialize the php scripts
- Copy the contents of the 'php' folder to the appropriate web server folder.
- Edit the 'inc/dbconnect.php' script to connect to the local MySQL database.
- Set the '$server', '$user', and '$password' variables at the top of the script
- Make sure the user has read/write permissions to the 'last_minute' database.
- Edit the settings.html file to reflect your local environment.
- Copy the provided '/Input/settings.html' file into the 'Input' directory of the screen-scraper install directory
- The instructions for the properties to be set are in the settings file
- Copy the provided 'last_minute_run_RCI_scrape.bat' file into the screen-scraper install directory. This is a new batch file and should be used to run the scrape instead of the old one.
- The scraping sessions should now be ready to run.
- The page to edit the resort information is in 'admin/listresortstoedit.php'