Jump to content

cron jobs + php script RESOLVED


grilldor

Recommended Posts

[quote author=Nhoj link=topic=114663.msg466644#msg466644 date=1163288540]
I've found that the following always works:
[b]2)[/b] php -q /home/userdir/public_html/cron.php

I'd also like to know how to make it more secure.....right now I just hide mine deep in the site and pray no one every guesses the url
[/quote]

Store it OUTSIDE of the public area. 

I keep mine /home/userdir/CronScripts

And the path varies from server to server.

Put this line in a text file all by iteself, upload it to your server and load the page in your browser:  [b]<?php phpinfo();?>[/b].  You'll see a whole bunch of info.  Look for a line that says "Document_Root".  That's where you can start YOUR path from.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.