Jump to content


Photo

trigger php file


  • Please log in to reply
8 replies to this topic

#1 pluginbaby

pluginbaby
  • Members
  • PipPipPip
  • Advanced Member
  • 37 posts

Posted 02 August 2006 - 03:16 PM

Hi,

I have created a php file. I can run it on my server and it works perfectly.
I was wondering now: is there any possible way I can run the file on the server every 15 minutes automaticly (this is: I don't trigger the file myself) ??

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 02 August 2006 - 03:19 PM

You can do by setting up a cron job if you are on a unix based server, or Schedule if you are on a wndows bases server.

#3 pluginbaby

pluginbaby
  • Members
  • PipPipPip
  • Advanced Member
  • 37 posts

Posted 02 August 2006 - 03:23 PM

and how I do that?  ;D

I think I have a windows server.

#4 pluginbaby

pluginbaby
  • Members
  • PipPipPip
  • Advanced Member
  • 37 posts

Posted 02 August 2006 - 03:44 PM

seems like I have a unix based server.

I can do a crontab.
But I don't understand how it works. I need to input:minute, hour, day of month, month, day of week, command

what I need to write inthere if I want it to run every 15 minutes?
the file I want to run is called update.php and is located: www.myadres.de/main/update.php

#5 HeyRay2

HeyRay2
  • Members
  • PipPipPip
  • Advanced Member
  • 223 posts

Posted 02 August 2006 - 03:56 PM

http://www.phpfreaks...orials/28/0.php

PHPFreaks.com, is there anything you can't do???

;)

#6 pluginbaby

pluginbaby
  • Members
  • PipPipPip
  • Advanced Member
  • 37 posts

Posted 02 August 2006 - 04:50 PM

thank you. I know how to do it now ^^

PHPFreaks.com My saving angel in times of darness.

#7 pluginbaby

pluginbaby
  • Members
  • PipPipPip
  • Advanced Member
  • 37 posts

Posted 02 August 2006 - 05:20 PM

sorry to bother you again.

I can do only 1 cron job every month on my website.
Isn't there another way I can do it?

#8 onlyican

onlyican
  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 02 August 2006 - 06:25 PM

Why does it need to be updated every 15 mins

If its for user show, then add it on the code.
and when the user goes to see it, its updated straight away
Tell me the problem, I will try tell you the solution

#9 pluginbaby

pluginbaby
  • Members
  • PipPipPip
  • Advanced Member
  • 37 posts

Posted 02 August 2006 - 07:03 PM

now that I think about it, what you just said is a good idea. Stupid of me not to think about that earlier.

Thank you so much. It works now as it should work :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users