Wsw_CompareVersions |
Top Previous Next |
This function is called to compare the web version of a page with the locally saved version. You can filter the content and decide when a bookmark should alert an update, for example when a specific price in the web version is lower than in the locally saved version. The parameter $iStatusCode is a numeric value and indicates if a page has been changed or if an error has occurred.
Parameters
Valid values of $iStatusCode:
Examples:
Simple example to see if the filtered page content has been changed.
More advanced example to detect price changes and alert if a price is lower than a pre-defined value. This price extraction is dependent from the page, you can use the code below as a starting point.
|