PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
AYK
Hangin' Around


Joined: Apr 03, 2004
Posts: 32

PostPosted: Sun May 23, 2004 12:18 am Reply with quote Back to top

I have a question :

Is it possible to execute a certain PHP script at a certain time. My question is probably pretty vague, therefore this example :

DevShed sends out an e-mail every day at a certain time, telling what new topics have been added to their forums. I think I would be able to create this e-mail using PHP, but I wouldn't know how to get that script to run every day at say 0:00 AM.

Any ideas ?
View user's profile Send private message Visit poster's website
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Sun May 23, 2004 1:03 am Reply with quote Back to top

You should be able to use win cron or cron depending on your system. Also there is a timer php version of cron I think on sourceforge. Any of those should come up on all the major search engines with adaquite instructions.
View user's profile Send private message
AYK
Hangin' Around


Joined: Apr 03, 2004
Posts: 32

PostPosted: Sun May 23, 2004 1:14 am Reply with quote Back to top

Thanks for the fast and adequate respnonse.

But another question popped into my mind : how would I get it done when my site's on an ISP ? Can cron execute remote scripts too ?
View user's profile Send private message Visit poster's website
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Sun May 23, 2004 2:53 am Reply with quote Back to top

Not alone it can only execute scripts at a given time. You can use some ftp programs with task scheduler to execute and retrive files. Your being a little vague so I can't reply to the specifics. Heck even Outlook can retrieve mail on a scheduled interval. So what is it your really trying to achieve?
View user's profile Send private message
AYK
Hangin' Around


Joined: Apr 03, 2004
Posts: 32

PostPosted: Sun May 23, 2004 2:46 pm Reply with quote Back to top

Sorry for my vagueness.

It's just : PHP and MYSQL has been my first real programming experience, and I love it ! I really love it. I've been playing around with it for 3 months with guestbooks, user logins with cookies, avatars, session stuff. Probably all really basic to advanced programmers, but for a plain physics student like me a real eye-opener.

Now when I come across certain web-site thingies I ask myself - can/could I do this - how could those guys have done this and that etc etc.

Like the DEVSHED forums - they have a weekly update that's obviously created automatically and contains new thread-subjects since the last update or something like that.

I thought to myself : ok - I think I could create a script that could do this, but how could I get it to execute every sunday at noon or whatever. Ok, windows scheduler is an option, or forcing myself to surf to the script every Sunday.

But I couldn't believe the pro's would do it like this, and that's why I asked. Not for a perticular job especially - just out of curiosity. To enhance my skills and knowledge.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum