473,397 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Scheduling Task using Cron to run php script on a shared server

Hi ,

I wan to run a php script using cron on my host server.

Its a Linux based server and I am allowed to use cron.

I want to run a php script with includes. I tried some suggestions which I found on the net but it didn't work the include files are not executed.

I am new to cron but knows the basic.
Any help is much appreciated.

This may help ...

The website is hosted on a Linux server running PHP version 4.4.4.
Server API : Apache


Thanks
-- Scriptee
Aug 28 '07 #1
5 2382
ak1dnar
1,584 Expert 1GB
I've moved your question from the articles section to the forum.
Aug 28 '07 #2
I've moved your question from the articles section to the forum.
Thanks !
Sorry, about that .
Aug 28 '07 #3
mwasif
802 Expert 512MB
What do you mean by this?
I tried some suggestions which I found on the net but it didn't work the include files are not executed.
Aug 28 '07 #4
What do you mean by this?
I tried this from a tutorial like adding

#!/usr/local/bin/php

as the first line of my script where "#!/usr/local/bin/php" is my server's PHP executable location.

This runs a php script without any includes perfectly but when there are include files then it doesn't work.
Aug 29 '07 #5
Atli
5,058 Expert 4TB
I tried this from a tutorial like adding

#!/usr/local/bin/php

as the first line of my script where "#!/usr/local/bin/php" is my server's PHP executable location.

This runs a php script without any includes perfectly but when there are include files then it doesn't work.
Are you giving a relative path to the files you want to include or absolute paths?

I would assume that you would have to use absolute paths. But then again, I have never tried this.
Aug 29 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: toufik toufik | last post by:
Hi, I've script (or a php file) in the server that I like to execute at 8.00 in the morning every day. (It will check info in the DB and send emails.) Any Idea about how I can do it. Thanks.
6
by: Tony Proctor | last post by:
Hi everyone We're experiencing some serious anomalies with the scheduling of ASP threads. I'd be interested to hear if anyone knows what algorithm is used (e.g. simple round-robin, or something...
0
by: steve | last post by:
I've seen questions about scheduling ASP scripts posted in this group many times so hopefully this will be useful information to a few people. I just wanted to let you all know that our script...
9
by: klh | last post by:
We are running on Win 2003/DB2 V8 FP7a. My question concerns Task Center. I have about 200 tasks created and scheduled in Task Center. We are going to be moving many of the databases from this...
4
by: Dinsdale | last post by:
I'm looking at adding scheduling features to an application and I wanted to ask the community about any experience with scheduling components, either open source like from code project or from a...
12
by: gomzi | last post by:
Hi, I would like to execute some vb code at regular intervals. But according to my hosting provider, I wouldn't be able to do it in a shared hosting environment. So, I would like to know, as to...
3
by: uzzi | last post by:
I don't know how to make a php script to work via cron...I want to make it run daily...My server API is CGI/Fast CGI.I have hosting from godaddy and in the help section i found that i have to specify...
4
by: Rahul | last post by:
Hello All, I have come accross a very interesting as well as a very complex scenario with my current project. My worry is the scheduling of email messages and execution of that based on the cron...
5
by: DavidPr | last post by:
Does anyone here know anything about crons? My web hosting company (IX Webhosting) offers me no help. To enter a cron I have to open my Control Panel - open FTP manager and open Crontab. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.