grilldor Posted November 11, 2006 Share Posted November 11, 2006 Works ! thank you guys Link to comment https://forums.phpfreaks.com/topic/26956-cron-jobs-php-script-resolved/ Share on other sites More sharing options...
Nhoj Posted November 11, 2006 Share Posted November 11, 2006 I've found that the following always works:[b]2)[/b] php -q /home/userdir/public_html/cron.phpI'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 Link to comment https://forums.phpfreaks.com/topic/26956-cron-jobs-php-script-resolved/#findComment-123297 Share on other sites More sharing options...
doni49 Posted November 12, 2006 Share Posted November 12, 2006 [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.phpI'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/CronScriptsAnd 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. Link to comment https://forums.phpfreaks.com/topic/26956-cron-jobs-php-script-resolved/#findComment-123337 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.