Running ASP file via cron

 
Post new topic   Reply to topic    34SP.com Forum Index // Business ASP Hosting
View previous topic :: View next topic  
Author Message
imknight
Administrator
Administrator


Joined: 16 Mar 2001
Posts: 3627
Location: Stroud,Gloucestershire

PostPosted: Mon Jun 09, 2008 9:15 am    Post subject: Running ASP file via cron Reply with quote
Had a few users asking how to do this, so thought would post a method that can be used .

While there are probably other ways this method seems to work very effectively and is easy to setup.

Make a php file that refers to the ASP file that you wish to run from the cron wtih contents such as this

Code:

<?php
file_get_contents("http://www.YOURDOMAIN/FILE.asp");
?>


Then in the scheduler Use the following information:

in the 'Path to executable' field use

C:\Program Files\SWsoft\Plesk\Additional\Php\php.exe

in the 'arguments' field do something like;

C:\Inetpub\vhosts\YOURDOMAIN\httpdocs\FILE.php

Where FILE.php is the name of the file you created above.

Then set your schedule time and all should work without any issues.
_________________
Ian
34SP.com
Easy script installers for a small number of popular scripts are now available at http://scripts.34sp.com
Used our script installers? Please post your site here

| Wordpress Hosting |
Back to top
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Post new topic   Reply to topic    34SP.com Forum Index // Business ASP Hosting All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Powered by phpBB © 2001, 2002 phpBB Group