PUBLISHCRON 1.1 FOR LISTINGS MANAGER Publishes query strings into static files for includes INSTRUCTIONS: 1) Upload publishcron.cgi into your /exec/ directory 2) Make the file world executable (chmod 755) 3) Update publishcron.ini with the correct info for search_url, page1, and query1 (see below for more info) 4) Upload publishcron.ini into your /exec/ directory 5) Make it world readable (chmod 766) 6) Setup your server cronjob to run publishcron.cgi at appropriate intervals MANUALLY RUNNING PUBLISHCRON.CGI In addition to republishing the pages whenever the cronjob runs, you can run the script by directly requesting it and including a page number. For example, this link with the query page=1 will show you how page 1 will look: http://yoursite.com/cgi-bin/listman/exec/publishcron.cgi?page=1 into a Web browser to see how Required Fields: search_url : the absolute web path to search.cgi (i.e. http://www.mysite.com/cgi-bin/listman/exec/search.cgi) page : the name of the file you want to publish when the program runs (include the full server path to the file, i.e. /home/httpd/mysite.com/htdocs/listman/listings/my_new_file.html) query : the query string which you would add to the end of a search query - is a number which is used to match the query and page as a pair. - you can have as many page/query pairs as you like EXAMPLE: How to convert a search url into the fields required for this configuration file: http://www.yoursite.com/cgi-bin/listman/exec/search.cgi?search=1&perpage=10&template=custom_search_results.html&sort_order=-11,123,reverse&lfield30_keyword=Rental search_url = http://www.yoursite.com/cgi-bin/listman/exec/search.cgi?search=1&perpage=10&template=custom_search_results.html&sort_order=-11,123,reverse&lfield30_keyword=Rental page1 = /server_path/to/listman/listings/rentals.html query1 = search=1&perpage=10&template=custom_search_results.html&sort_order=-11,123,reverse&lfield30_keyword=Rental Adding a second query page2 = /server_path/to/listman/listings/rss.xml query2 = search=1&perpage=20&template=rss_template.xml&sort_order=-11,123,reverse8 ------------------------------------------------------------------------------- /