WSN Links
Featuresspacer Showcasespacer Reviewsspacer Demosspacer Purchasespacer Manualspacer Support

Register | Forgot Password
Automating Tasks
Automating Tasks
By Paul

On the 'advanced options' page of your admin panel you have an option to run a script every x days. This allows you to simulate the functionality of cron jobs if your host does not provide them. Timed scripts will be included into the middle of WSN Links and so will have access to all values set in start.php -- $thismember, $settings, and of course the ability to use the WSN Links classes. There are various custom tasks you might wish to perform at intervals, the ideas are up to you. This option is clearly intended for those who can do PHP coding on their own, so everyone else should ignore it.

In setting this same option you may choose to reset particuar link fields every x days. This option is useful for topsite pages, where links are being ordered by hits in and hits in and hits out may be reset every week to give new people a chance at top position. There are probably not any applications for non-topsites, but if you think of one you may use it.

Note that these tasks are not true cron jobs in the operating system, they must be executed as an actual visitor visits a page. Do not run anything which will take longer than the PHP timeout setting (usually 30 seconds), and to be reasonable do not run anything longer than 5-10 seconds as otherwise most users will give up and leave before it completes. A semi-intensive task is better done here where it only affects on person every x days than if it were done on every page load, to be sure, but if you have a truly intensive task you should run it as a true cron job using your web host's facilities if they offer this feature to you.

Rating:


0/5 based on 0 votes. The median rating is 0.

Submitted: 09/25/03 (Edited 08/16/05)

Description: Running a simulated cron job and reseting values.

Views: 1437 views. Averaging 1 per day.
In the most recent 30 day period, there've been 1 views.

Previous Article

Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support