physaux Posted February 2, 2010 Share Posted February 2, 2010 Hey guys, I finished writing a script and I want to schedule it. My only issue is that I don't know how to reference it if it isn't in public_html, but I don't know how to secure it if it is in html. Any ideas? for now I use something like this: wget -q http://site.com/.../cron.php Which works fine but the problem is anyone could activate that. I want only cron to be able to do it. Any ideas? Link to comment https://forums.phpfreaks.com/topic/190708-what-permissions-to-set-on-a-file-to-make-it-only-accessable-to-cron-job/ Share on other sites More sharing options...
jl5501 Posted February 2, 2010 Share Posted February 2, 2010 cron ideally needs full path info to all its files, and can access files anywhere on the server, so placing it outside of the html directories is a good idea Link to comment https://forums.phpfreaks.com/topic/190708-what-permissions-to-set-on-a-file-to-make-it-only-accessable-to-cron-job/#findComment-1005723 Share on other sites More sharing options...
akitchin Posted February 2, 2010 Share Posted February 2, 2010 what do you mean by you don't know how to reference it if it's above the web root? do you mean you don't know the disk path to the file? Link to comment https://forums.phpfreaks.com/topic/190708-what-permissions-to-set-on-a-file-to-make-it-only-accessable-to-cron-job/#findComment-1005728 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.