Scheduled Events
possible to get php to execute a script at certain times a day ? or is the only way to have a list of set times in a db, and when each user comes to my site see if it has been done or not ? and do, or dont do accordingly?
View Complete Forum Thread with Replies
Related Forum Messages:
Scheduled Scripts
Can anyone tell me if there is a way of having a PHP script run at a scheduled time each day? Our ISP's server is running under Linux and I was hoping to use something called CRON. However my ISP has told me this is not possible, and I will need to write the script in PERL.
View Replies !
Scheduled E-mails
I would like to create a "send out scheduled e-mails" function in my PHP application. I guess it would be hard to program this function using PHP. What ways can I implement this?
View Replies !
Using Scheduled Task
I have a php code which when executed fwrites the contents into a file. That works fine. But when I use the windows task scheduler to execute it, windows a return of (0) which means no errors but the file doesn't seem to be executed. The thing is that prior to me adding the functionality in the PHP code to produce output to a file, using scheduler to run the file was fine.
View Replies !
Scheduled Task
setting up a task to run nightly? The problem at hand is, company A stores data on company B's server. Then nightly, company B creates an XML feed for them to take the updates and put them in there own database server (that I am going to set up). The website never sends updates back, the only updates from company A are from inside there office system. So, what I have to do is take this XML feed and put it in my own server. It could be a fairly large number of records (500 maybe) - So I'm not sure how fast it could realistically be parsed through and then added to the database. How do I go about this without checking each time a user visits the website? It needs to be automatic too, rather than somebody going to the specific page each night and clicking 'go'.
View Replies !
Scheduled Mysql Queries?
How do you schedule a mysql query? Like (half pseudo-code): mysql_schedule("every five minutes"); $query = mysql_query("SELECT some integer"); $int = mysql_fetch_array($query,MYSQL_NUM); $int[0] += 10; mysql_query("INSERT $int") or something along those lines...I want my users to accumulate "taxes" every turn..even when their not playing..turns will last 5 minutes.
View Replies !
Automatic Scheduled E-mails
I have a website that I am building in PHP that I would like to send e-mails to users every 2 days to inform of new updates. I know how to trigger the sending of e-mails if a user enters the site, and can limit this to only happening once every 2 days, but I am interested to know if it is possible to have PHP send e-mails automatically in case no one visits the site?
View Replies !
OT (possibly): Scheduled Actions
I've got a dedicated server running Windows 2003, IIS, MySQL and PHP. I'm working on a web site which needs to pick data up on a semi-regular basis from a CSV file which will exist in a directory accessible to this server. The data will be put there by another server. I need to pick up this data and insert it into a MySQL table; I have three options in theory - do it on a strict schedule, do it on request by an admin user (the easy option), or have it happen automatically if a file drops into that directory. Can PHP do this, or do I need to look at something else to do this for me? I can install/setup anything I like on this server, within reason.
View Replies !
Scheduled AT Job Reports 'The Account Is Currently Not Available'
I am scheduling an AT task from a php file using sudo and user 'joe' that reports correctly when using atq from the command line. However, although the script being executed by the job runs ok from the command line I get a mail message saying 'The account is currently not available' when the job is scheduled by php? It's not an 'apache' user problem as far as I can see as the task is getting scheduled as 'joe'.
View Replies !
Running A Scheduled Task
I would like to run a simple php file that backs up my database. The file is in one of the virtual directories. I know I can do it with other ways, but I'm interested in how to do it on a windows OS, and using the windows scheduled tasks wizard - if possible. I've read that parameters need to be set up, but I don't quite understand what that means. how I can do this in a simple step by step fashion?
View Replies !
Scheduled FTP & Database Export
We currently have an online dedicated server where users can apply for jobs and attach their resumes, we have also setup a similar environment on our local machine for a system which we use to extract the applicants information and match it to the jobs we have. Everyday we get an average of about 150-200 job applications which translates to the same number of resumes. I need to be able to automate the process by which the resumes are downloaded everyday and stored on the local server and also schedule a database backup which should in essence export the database a set of sql statements which I can then run. The dedicated server has a PLESK interface which gives me access to the Cron Jobs interface, I just don't know how to proceed.
View Replies !
Cron/scheduled Tasks
Im running my site on a web server, and want to add something so that every hour the variable $gold = $gold*($workers*3.1) +($banks*30); and the way to do this is cron jobs from what ive gathered from searching google. BUT not only haven't i found a good tutorial, but I haven't found a single example taht isn't with CGI or a download.
View Replies !
Scheduled Chunks Of Code
What I want to do is have a chunk of my code for my website only be accessed once a week on a set day. its basically a poll, that I want to find the highest rating for, but not all the time, I want for it to be once a week..
View Replies !
[Q] Automatic (i.e., Scheduled) Access To Another Web Page
I need to be able update my web site with info from a remote web site. At this other web site, the info I require is updated every 30 minutes, 24 hours per day. Life would be cool if a way existed by which I could "schedule" my code to run periodically so that my info could remain [reasonably] synchronized with the info on this other site. In the PHP docs / books I have I've been unable to find functions / services / examples that might permit me to implement this functionality. Do [php] services/classes exist that would meet this need? Do I need to invoke the services of my WEB server (apache on both ends)?
View Replies !
Strange Characters When Script Run By Scheduled Task
I've written a script that is run on a Windows server which gets headlines from a remote webpage, and I'm using a scheduled task to run it on a regular basis. The problem is that swedish characters (åäö) gets replaced with other characters.Example: Quote: Boverket sõger ja till ICA Maxi. v- och mp-r÷ster hotar budgetf÷rslaget. When I run the script from the web through my browser, it works fine. This only happens when I run it with a sheduled task.
View Replies !
Sending Mails Without Using Scheduled Tasks (crone Jobs)
Can we set up a mail program that the mail can sent frequently..ie may be daily or weekly or monthly... with out using scheduled tasks or crone jobs. for eg .. can we create a page that works like the scheduled tasks page( there we can set up the time at which time the program will execute )..that means we have options in our webpage to set up the time at which the mail will sent. for eg..every monday.. can we set up this in the program without using scheduled tasks or crone jobs. can we run our page frequently without using crone jobs .
View Replies !
Php Events Box
Is there a way to get the PHP code to read a line from the table and write it in a box? What I have is an events table with two columns, Date of Event & Name of Event. This is saved on a page called events.html (can be changed to .php) What I wan is on index.php I want a next event box. So what I want for it is to read from the events page, and find when the next event is, using information on dates. I have no idea on how to start this at all.
View Replies !
Timing Events
I would like to be deleteing certain records from my database automatically after every 72hrs. I have never tried this before but is it possible to perform actions after a certain duration of time in php ?
View Replies !
Reacting To Events
Does anyone have any experience of writing bots in PHP for something like IRC or XMPP? The reason I ask is because I'd like to write something that "listens" on a port and reacts to someone typing something in. Does anyone have any links to tutorials etc etc?
View Replies !
PHP And HTML Events
I was wondering if PHP can handle HTML Events or if I have to use something like Javascript. I really want to avoid using anything client-side so I know all users will be able to load my page but if I have to use Javescript to handle HTML Events, I will.
View Replies !
Events Dates
I have next code: PHP Code: <? $id = "month(now())"; if($arrl["periodo"] == 0) //se for só um dia echo $arrl["day"]." de ".trata_month($arrl["month"]); elseif($arrl["periodo"] != 0)// periodo de tempo no mesmo mês echo $arrl["day"]." a ".($arrl["day"] + $arrl["periodo"])." de ".trata_month($arrl["month"]); ... and to 3 more echos. 1º an expression with separated several days of two months. Example: 25, 26 of April and 2 of May 2º an expression with periodic time of two months. Example: 25 a 30 of April and 4 a 7 of May 3º an expression if a event had the 26 of April a 7 of May and if the current month is May it must show " Even 7 of May" .
View Replies !
Events List
I have never used PHP before. My computers teacher wants us to make something that will use a list of events for the whole year and display the next four events only. He told us to find a place that told us how to do it using PHP but I havent been able to.
View Replies !
Events Match
I have events recorder in db with the following type date format: 2005-05-31. How do I select the ones that are of this month?
View Replies !
Using Events In Calendar
In an array I have the events stored wich come from a database, now I want to display them in the calendar (with a different color). The Array contains ca_title, ca_startdate & ca_enddate. Code:
View Replies !
Month Events
I have registers in a mysql DB and I want to show them for months. I think I have a var like this: $id = "month(now())"; $sql = "select * from agenda_geral where agenda='desporto' and month = ".$id." and area_ID = 1 order by day" ;
View Replies !
Wordpress Calendar Of Events
I want to make a "calendar of events" in a side bar of a blog. When the mouse hover on it, it will show the users the events of that days in a pop up window. "The pop up window" may contains links to other sites, so it should be wait certain time to let the user click the link....
View Replies !
How To Catch System Events
I have a site from which people can download files. If they cancel the downloading in-between then my page hangs. Does anyone know how to catch system events like "Cancel" in PHP ?
View Replies !
Events Application In PHP Or Perl
I am looking for an events registration/calendar application (open source or otherwise) written in PHP or Perl. It would need some (or all) of the following capabilities: 1-Allow admins to create/edit/delete events including: a) Max number of attendess b) Event registration fees 2-Allow admins to run reports per event on the number of attendees, who has paid ,etc 3-Allow event attendees to register and pay for the event(s) via the web (Paypal). I would prefer there be different levels of administration privileges, like full admin, reporting only, and per-event administrators. The most important features are the ability to pay via the website via PayPal and the admin capabilities.
View Replies !
Export Events To Outlook
Do anybody know how to export events to Outlook from a php script? I'm making a list of events, and my idea is that when the user clicks on the event it will be exported to his or hers Outlook-calendar. I don't want to force the users to install any software (like a RSS-reader).
View Replies !
Displaying Events In A Calendar
I have a calendar that I would like to display some events on. The events are stored in a database but I do not think I am getting the information in the right place and displaying like it should be. I cannot seem to get an event to display on the exact date that it should be displayed on. I can get one event for a whole week but that, of course, is not right. Code:
View Replies !
Calendar Highlight Events
I have the attached code but I would like to modify it slightly so if any events occur on each day, they are hightlighted. Could I create the query as a function? Code:
View Replies !
Users Submitting Events
'm looking for a way for site visitors to be able to submit details of events and have them show up on an events page. is there any sort of php application or something that i could use or is it not going to be that simple?
View Replies !
Displaying Events In The Next 7 Days
In my current project I have made a simple calendar (actually a list of events that are stored in a db) and now I'd like to add a smaller list to my sidebar which displays only the events that occur in the next 7 days. So basicly, I want to write a query which returns only the events in the next 7 days (not including this day).
View Replies !
Showing Events By Date
I'm using "select * from calendar where datum >= current_date ORDER BY datum ASC" in my code to show every event listed in my database where the date = or is greater than today's date. I have a field (datum) in my table, with the type date (2006-02-23). The browser is showing this great in Europe, but in the US he is not showing the event of today. Does anybody know why he is not showing events from the current date in the US, and how I can solve this ?
View Replies !
Events Calendar Script
Does anybody know of a simple easily customisable events calendar script. Preferably something without lots of complicated calendar view stuff.
View Replies !
To Display The Events In Calender
I have designed a event calender in which i have to display an anchor for the dates on which events are added. the calender is getting displayed but the event dates are not getting displayed within the calender.
View Replies !
Delete Past Events
There was a post similar to this one but I can't find it right now. All this is to do is get rid of past concerts if it is before today. I do have DELETE privelege for the user $today = date("Y-m-d"); // Delete past events $sql = "DELETE FROM tbl_events WHERE eventDate < '$today')"; $query = mysql_query($sql); no clue why it doesnt work
View Replies !
Events Calendar Software
I want to use an events calendar module for my project please suggest me , i want to display calendar on the front screen and when i click on the date i should able to add/edit and delete events for my application. Please suggest me open source
View Replies !
Trigger Events Without Crontab
I am trying to create a turn-based Web-based MMO. The hosting I currently have does not allow for the use of a Crontab, and so my question is: Is there any way to trigger events hourly, daily, monthly etc. without a Crontab.
View Replies !
My Script Pulls All Events
The goal is to have the $id, which is set already, get saved into the $dep_id field in a different table.. I think it's a problem in matching variables, but I am not positive. As it is right this moment, the script displays all events with all IDs, not just where $id=$dep_id... Code:
View Replies !
Events For The Rest Of Year
If I have a site where a person can add an event. I want them to be able to add an event and click a button which would add the event for the rest of the year on that day of the week or that date monthly. So if they enter a date that an event starts for like 02/14/2006 I would like to automatically add entries in the database for 02/21/2006 02/28/2006 etc for weekly and 03/14/2006 and 04/14/2006 for monthly etc. Any idea how to go about doing this, I would just add the take the 14 and add 7 but when the month was over and I had to go into March how would I go about doing that?
View Replies !
Events Calander And Date Conversion
I have been working on an events calander program that needs to be in chronological order by date. The fields I have are id, date, event and event discription. The problem I have is that the event date needs to be displayed in this format 09/21/03. However, when I simply sort by date 02/21/04 would display before 03/21/01. How could I sort by date and display the date in the 00/00/00 format.
View Replies !
Automatic Display Of Events Each Week
I know how to display a list of upcoming events from a SQL database, but am wanting to display the events based on the date, eg. events happening this week only. Could someone tell me how to do this or point me in the right direction please?
View Replies !
Events Calendar Using MySQL Database
I have a mySQL table listing all the regular events that happen each month for a group according to schedules like, every Sunday or every other Saturday*. How can I make a visual monthly calendar out of this? Basically, I need to produce a list of dates for each of the events happening in a given month. That's where I'm stumped.
View Replies !
Multiple Dates For Recurring Events
how I could add multiple dates for the same activity that recurs many times in an events calendar? Now I am creating an entirely separate entry for each event; it all works fine, but it's mighty tedious! Code:
View Replies !
Code Relating To Button Events....
I have one screen that has multiple buttons/images for varying actions. How do I trap which button/image was clicked in order to carry out the related code events? Do I utilise the value of each button, or the name of each button to identify, and then 'select' the result? Should they all be type=submit?
View Replies !
Upload Videos From Sporting Events
I'm looking to develop a site where fans can upload videos from sporting events, tailgates, etc to a site. When uploaded I'd like for the files to be automatically converted to flash, much like YouTube! does. I'm interested in any current software that does this.
View Replies !
MySQL Grouping Events By Date
I am using MySQL with a flat table exported from another dB to create a simple event calendar in Dreamweaver MX 2004. I would like to have the events grouped by date and ordered by date and time. I have been unable to figure out how to group by date while preserving all the records. I have tried using GROUP BY in my SQL statement, but this reduces the number of records returned. I have also been trying, without success, to use loops and if statements to suppress the date from repeating after the first record. A sample of my SQL statement and code, along with what my current return looks like and what I would like it to look like are provided. Code:
View Replies !
Using A Calendar To Display Events From A Database
I have been able to produce the calendar (month at a glance), but I cannot query a date from the calendar from its corresponding date in the SQL database to display events from that day. If it works properly, it should show all events for the month on the appropriate day. Variables used: $year // example: 2005 $month // example: 8 $day_counter // example: 11 - this is looped to increment until month is done $thisdate = mkdate(0, 0, 0, $month, $day_counter, $year); $sql = "SELECT * FROM `school_year0506` WHERE Date LIKE '$thisdate'";
View Replies !
Web Calendar Group/individual View Events?
There seem to be a lot of web calendars out there and I am having a tough time sorting out which ones to even try - a lot of the more popular ones were created 2 or 3 years ago. Can anyone recommend a good one that uses php and mysql preferably? One of the main uses would be for family to indicate their holidays so all in the family can see. Thus, it would require a group/public feature that allows users to see all "public" holidays or just their own holidays.
View Replies !
|