Results 1 to 4 of 4
Thread: PHP URL to Cron
-
10-03-2013, 10:18 PM #1Web Hosting Guru
- Join Date
- Jun 2004
- Posts
- 264
PHP URL to Cron
I have a reseller Cpanel account with limited shell access. I also have a URL from my website that can run a php script. I want to set that URL to run as a cron. The URL has ? = &.
When I try to run the script from shell, I get a could not open input file. How can I set the url up as a cron to run?
-
10-03-2013, 10:42 PM #2Newbie
- Join Date
- Sep 2013
- Posts
- 14
Hello,
Is the script hosted on the same server or remotely? You cant execute remote php code, it will run on the server an output the results. If its hosted on the server use the exact location like /home/username/scriptname and create a cron that way.
-
10-03-2013, 10:48 PM #3Web Hosting Master
- Join Date
- Mar 2005
- Location
- Ten1/0/2
- Posts
- 2,529
use wget or curl?
pass the file to a command interpreter eg php ?CPanel Shared and Reseller Hosting, OpenVZ VPS Hosting. West Coast (LA) Servers and Nodes
Running Linux since 1.0.8 Kernel!
Providing Internet Services since 1995 and Hosting Since 2004
-
10-03-2013, 11:46 PM #4Web Hosting Guru
- Join Date
- Jun 2004
- Posts
- 264
Similar Threads
-
PHP 4, MySQLPHP Mail, PHP GD2, Cron job (5 minutes)
By Chinmoku-San in forum Web HostingReplies: 10Last Post: 02-19-2012, 07:34 AM -
[PHP] Passing a URL through a URL
By krissauquillo in forum Programming DiscussionReplies: 5Last Post: 12-11-2007, 02:53 PM -
php -> how to easily have url.php?page=sitename sort of link?
By Rui in forum Programming DiscussionReplies: 4Last Post: 04-26-2005, 07:59 AM -
Cron and PHP (PHP as apache module)
By the_lar222 in forum Web HostingReplies: 2Last Post: 07-23-2004, 10:03 AM -
PHP and cron
By NewonNet in forum Dedicated ServerReplies: 5Last Post: 11-11-2001, 06:20 PM