Previous Thread
Next Thread
Print Thread
Rate Thread
#208651 02/25/2001 7:50 AM
Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374

HI

I had an idea of faking a cron job (which is nothing more than an automatic call at a given time my scripts?), as I don't have access to my ISPs cron jobs.

Hi everyone,

I want to 'hack' the wwwthreads.php and the categories.php with some lines of code that do the following:

Check when doexpire.pl has been run the last time.
* If the current time is after 2 AM and it has not been running on the current date yet:
* Run do expire.php
* Remember the time it was run.

So an user action starts the cronjobs instead an automatic serverside program.

The consequence is that
1. no action if no user that day (which is fine)
2. summaries by email not on a regular time but just somtimes a day (which is better than nothing :)
3. The poor user that starts the whole thing, has maybe some delays because the system has other things to do... (which is tolerable, I think)

I just started with PHP one week ago, wen I bought the WWWTHREADS licence I also bought one of those books.
So I am still a bloody amateur, is anybody of you pro's interested to help me developing this ad-on,
so for future releases a user can set up in config.main.php, whether he wants the 'real' ot the 'fake' cron jobs to run?

I am very curious what you all think about that idea...








Carl
darkwebforum

Sponsored Links
Joined: Jun 1999
Posts: 54
Member
Member
Offline
Joined: Jun 1999
Posts: 54
Sounds a great idea.[]/w3timages/icons/smile.gif[/] Would love to see the be immplement.


Joined: Nov 2000
Posts: 23
Power User
Power User
Offline
Joined: Nov 2000
Posts: 23
This sounds like it would really work and would be a FANTASTIC addtiion and help.

Magicia (Site Manager)
http://uwo.world-gaming.cc

Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
Yes, I think so too. The only mess is that I am not experienced enough to code that, and the Greeks here probably don't need it, because for them chron's probably are not a problem as they run own servers, I'm sure... So, who's doing it :)))

Carl

----------
darkwebforum

Joined: Apr 2000
Posts: 52
Member
Member
Offline
Joined: Apr 2000
Posts: 52
First, it shouldn't be that hard to setup a cron event. Either do it manually, or ask your host nicely. If they give you a problem adding multiple ones, just have them add one. In that one, you can call any other file/script you want.

Ok. For the rest of ya, why not just run it from the browser once a day? Having the system check if it's been run yet every time a user does something, is gonna bog you down. If you must have it semi-automated, then I'd have it run its query every time an admin/moderator does something. They're always around, but there's a lot less of them than regular users.


Sponsored Links
Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
my Host would then reply also nicely:
'Buy the large package (install your own server)....'

No, unfortunately cronjobs are not possible here. :)


Carl

----------
darkwebforum

Edited by caymuc on 03/26/01 05:08 PM.


Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
my Host would then reply also nicely: 'Buy the large package (install your own server)....' No, unfortunately cronjobs are not possible here. smile

Carl

----------
darkwebforum


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 254
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)