Set up Last Minute scrape/php web pages


  1. Set up screen-scraper
    1. Update screen-scraper to the newest version:
      1. Open the screen-scraper workbench
      2. Click Options > Settings and put a check on "Allow updates to unstable versions" then close the box.
      3. Click Options > Check for updates. It will prompt you to update to the latest version.
    2. Save the attached "RCI (Scraping Session).sss" file to the screen-scrape 'import' directory
    3. Launch screen-scraper workbench once more to ensure update occured, and automatically imported the scrape. Close the workbench when finished.
  2. Php and MySql must be installed on the machine, and a user is needed that can write to the 'last_minute' database.
  3. Import the provided MySQL database.
  4. Install/initialize the php scripts
    1. Copy the contents of the 'php' folder to the appropriate web server folder.
    2. 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.
  5. Edit the settings.html file to reflect your local environment.
  6. 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.
  7. The scraping sessions should now be ready to run.
  8. The page to edit the resort information is in 'admin/listresortstoedit.php'