Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Simple Calendar/schedule


I'm looking to develop a simple php calendar/schedule - similar to outlook calendar - that does not rely on a database but rather writes to a file. I need to be able to add to/delete from the schedule. As I am only starting out with php I am a little confused by the codes which links to databases and how to adapt them to only write to a flat file.




View Complete Forum Thread with Replies

Related Forum Messages:
Examples To Display Day Calendar Schedule?
I am trying to find some code to help me along with dsiplaying a day
schedule. For example, a linear time-line with appointments blocked out or
colored differently.

View Replies !
Simple Calendar App
I work for a company that right now is using paper calendars to sign up to use different machines and instruments. I want to make a very simple form that will be an electronic signup and then post it to a weekly calendar. There is software like brown bear software that does this very smoothly but we dont' ahve the money to do this and we don't need this app to be elaborate.

View Replies !
Schedule
Currently, I have a database that stores a course schedule. For
example:

Course Title, Start Time (datetime), End Time (datetime), Mon (T/F),
Tues (T/F), Wed (T/F) Thurs (T/F), Fri (T/F)

I want to take this data and graph it as a visual calendar using
tables.

For example:

Time Monday Tuesday Wednes ...
10:00AM WS1093
10:30AM WS1093
11:00AM WS1093
11:30AM
12:00PM EH2312
12:30PM EH2312
1:00PM EH2312

Something like that. What's the best way to do this? Clearly, I
could make a an html calendar and load it up with a bunch of if
statements but is there a more elegant way to fill in the calendar?

Are there any classes available to easily do this?

Code examples are very much welcomed!

View Replies !
TV Schedule?
I've seen this on a number of TV sites, where on the front page they
tell you what's playing at the time you're browsing, what's coming up
next, etc. I want to do this for a site I'm working on, but I have no
idea where to start.

View Replies !
Schedule And Php.exe
i am making an installer for a shoutcast control panel i have designed
http://sourceforge.net/projects/cast-control
it runs on both windows and linux

I have made a bitrate controller that runs a batch file or cron job (depending on the operating system) which will run a php file with php.

In the batch file i have
c:/php/php.exe "D:/pathto/shoutcast_cpanel/bitrate/bitrate.php"

The problem is that i cannot include the database.php file which is in the same directory as bitrate.php.

I was wondering how to make this possible or at least include the database settings from the file somehow. The reason im not just running http://serverurl/bitrate/bitrate.php is because under windows it opens up a new windows in explorer for every time.

View Replies !
Schedule Job
i need to schule a php script to run once a month in apache/windows environment. what would be the easiest best way to accomplish this task?

View Replies !
Creating A Schedule
I am building a diet/weight loss website where a customer would
subscribe for 1,3,6 or 12 months. I am using Paypal IPN to handle the
subscription payments. I would like to create a schedule when the
customer first logs on, from the date they signed up to the date when
the subscription ends and every 7 days is highlighted as the weigh in
day.

Basically I would like to generate a list of dates from one date to
another with every 7th day highlighted.

View Replies !
Schedule Emails
Has anybody every attempting scheduling emails or trigering any event from a php site? for example, everyday at 10:00am call function x(); ?

View Replies !
Schedule Script Run
I need to schedule a php script to be run daily at 12.30am. What command can I place in my crontab to do this? I'm confused because a web browser is required to run a typical php script. I thought about lynx, but I'm not sure how to run it, and then exit after it runs.

View Replies !
Schedule My Classes
if it`s a good idea try to do a class scheduler in php HorarioEX.htm this is the visual part of what i want to do. the idea is the user insert the code of the class it`s called CRN, then appears on the table with some color and thats all. So do u think its a good idea to try with php ? or i should try javascript or another source?

View Replies !
Schedule Script
Is there a way to get my script to run on regularly scheduled intervals without using cron? My hosting provider sucks. cannot use cron. I was thinking perhaps I could create a file every hour in a certain directory and then fire the script when the file count reaches a certain number, and then clear out the directory or something like that.

View Replies !
Create A 3,6,9 And 12 Monthly Schedule
In MYSQL would like to produce a field for 3,6,9 or 12 months just
containing the dates of every 7 days from the current date. I think I
need a mixture of PHP and MYSQL to achieve this.

View Replies !
Wrong Dates In A Schedule
I am using the following code (many thanks for the code folks BTW) to
generate 3 schedules in three tables one is a schedule with 7 day
intervals and two are daily schedules.

The two daily schedules seem to have out of sync dates at the start of
each schedule. The dates look as if they may be dates from the
preceding loop.

I am presuming that I need to reset something after the completion of
each loop but I am not sure what.

$now = time();
$day = $now + 7*24*60*60;
$cutoff = strtotime("+$months months");
while ($day <= $cutoff) {
$date = date('Y-m-d', $day);
$insert = "INSERT INTO daily_data SET subscr_id='$subscr_id',
date='$date'";
mysql_query($insert);
$day = $day + 7*24*60*60;
}
//then create a daily schedule in the excercise table
for($i=0;$i<=($sched);$i++)
mysql_query("INSERT INTO exercise_data SET subscr_id='$subscr_id',
date=date_add(now(),INTERVAL
LAST_INSERT_ID() DAY)");
//then create a daily schedule in the food and diet table
for($i=0;$i<=($sched);$i++)
mysql_query("INSERT INTO food_data SET subscr_id='$subscr_id',
date=date_add(now(),INTERVAL
LAST_INSERT_ID() DAY)");

View Replies !
Calculate A Firefighters Schedule In PHP
I need to calculate the following schedule in php. What I need out of the script is what shift is working “today” E.G. $shift = d;.  There are 4 shifts working 24hr days starting at 7 am. The days rotate on 28 day cycles. E.G.  ‘C shift’  is working on July 1 (Sunday) the next Sunday they work is the 29th. I found some code that works with 3 shifts on a different cycle but I have 4 shifts. Code:

View Replies !
Calender Script/Schedule
Does anyone have any recommendations or tips on where I can go to find a good scheduling script or a tutorial to make one? I'd perfer to make my own for security reasons so I know the code and for later addons.

Basically I need to re-create something like http://radio.virtualdj.com/schedule/schedule.php where djs can login to book a time on the online radio and then it blocks the slot off.

View Replies !
Allow A User To Schedule A Stay
I am trying to code a program in PHP that would allow a user to schedule a stay at this place, it would save that to a database. If a particular day has 5 people booking it, it is no longer able to be scheduled. I can't get the scheduler page to check how many people have booked or my calendar to display a day in red if it is booked.

View Replies !
Schedule Php Script Within Cron
If I wanted to schedule a cron job for every Sunday @ 1:00AM what would the syntax be?

View Replies !
How To Schedule Tasks On Website.
I am trying to figure out how to schedule tasks on my website. For example, PAGE1 should perform a different task in the morning than in the afternoon.

And at the end of the day, I have to extract some data from the database and put them into a file. This should be done automatically.

View Replies !
Schedule Mail Sending
I need to send an newsletter as an email that is scheduled. The user will prepare the newsletter and save it in database. He will also input the scheduling option i.e date and time the newsletter has to be sent. I have a table Newsletter_T where newsletter contents are being saved and Contacts_T where the email address resides. I am using PHP 5.2.3, Apache and MySQL.

View Replies !
Send Email With Schedule
I want to create an option to the user to suscribe to a service that sends an automatic mails everyday with information taken from a database created in MySQL. I have the form and the access with PHP to the database and I can send an automatic mail at the moment that the users press a button to activate the action, but I do not know how to do it everyday (or the period of time chosen by the user).

View Replies !
Creating A Schedule Script
I have a league based web site and I'm looking to make a script that can make a schedule of matches. Last year I did alot of hard coding with a ton of if statements (not very fun). There are 2 vars. how many weeks you play number of teams.

View Replies !
How To Set Up Multiple Dates For Schedule?
I have a question about how to set up dates in my mysql database. I am setting up a show schedule database for a friend at a local college tv station. This would normally be pretty straight forward and easy. The problem lies in the fact that their show lineup is not huge, therefore they air most of their shows that the students produce up to 5 times a day and also some of these shows -not all- come on all week long (Sunday thru Saturday) and some only come on one or two days out of the week.

My database (so far) contains the following tables: ...

View Replies !
Schedule A Cron Job With Php Script
Is it at all possible to schedule a cron job from a php script? Perhaps cron isn't my best option.

I need to have a script run automatically at one specific time and not repeat. The way I was thinking of doing this is to schedule a cron job, then when it runs remove it from crontab. Is this possible, or even the right solution?

View Replies !
How To Schedule Jobs On A Host?
I'm using a php hosting company for my website. It seems most php pages are user-event triggered, so it is difficult to schedule something to run regularly.

For example, user puts something in discussion board, and I need to update my search index to include it. Since building index is pretty IO intensive and takes long time, I hope to do it once a day when traffic is very low or zero so it doesn't impact server performance. I can't really rely on user events to trigger such things.

For example, user won't expect his click would trigger a 20 minute delay so I can piggy bag an index-build at the page handler, and there might not even be user clicking my site at the time I desire.

Is scheduling for jobs (or something similar) achievable using regular PHP? (I don't have shell login, etc. for the typical PHP hosting service).

View Replies !
Setting Up A Time Schedule?
I have a php script that needs to run 6 times a day, the documents that came with it suggest that it should be setup as a cron job, but where my site is hosted, I'm unable to do this.

so I thought that maybe I could setup a php time schedule, so that the script will run inbetween these times when a users hits the site:

12am-1am
4am-5am
8am-9am
12pm-1pm
4pm-5pm
8pm-9pm

but also I'm wondering how the script could keep track if the script has already been ran for a particular time period.

View Replies !
Table With Weekly Schedule From A Database?
I'm designing a site for a community radio station and the schedule needs to be generated from the list of programs that are in the database the shows table has the following colums show_id, show_name, day, start_time, end_time (i didn't list the non-relevant ones for this portion of the site)

because a table has to be built left to right instead of top to bottom (cell for monday 8am then tuesday 8am instead of all the monday then tuesday etc) and not all the programs are the same length (i think i can use row span="x" depending on the length of the show)

I'm quite lost. should i have other colums? how do i query the database to pull the data out in the proper order and build the table?

View Replies !
Schedule A Mysql Db To Create A Csv File
Is there a way that I can schedule a mysql db to create a csv file every night and save it on my local computer?

View Replies !
Write A Script To Show A Radio Schedule On My Website.
Right, basically im looking to write a script to show a radio schedule on my website. I've already created my database with the following fields: Code:

View Replies !
How Would Watchers Know, Without A Cyclic Check On MySQL Schedule Table About Task Validity?
I have developed a PHP-based website where a "planner" user can make
up schedules of activities to be performed, storing them into MySQL
tables. Afterwards, other "watcher" users can connect to the website
and retrieve closest task due time, and keep retrieving next task
after each one has been performed.
The problem arises if the planner asynchronously changes the schedule,
e.g. deleting the task "watcher" users consider to be the next one, or
inserting a closer one. How would watchers know, without a cyclic
check on MySQL schedule table about task validity? I would need a sort
of asynchronous server-pushing tecnhique towards watcher's browser
when any schedule modification occurs.
Would you say this could be done with PHP alone?

View Replies !
Simple Script For Doing A Simple Photo Album And Journal?
I'm looking to quickly get a photo album online. Very simple, thumbnails,
a few pages, maybe a description, but hopefully a small script that's easy
to edit and work into my existing site. I know about hot scripts, etc. but
I was wondering if any one could recommend one?

Secondly, I also want to setup a journal. It's not really a "blog"
although I guess blog software may work. But it isn't going to be a
message board or anything like that. Just a place to put out random bits
of news. Once again, same premise, I'm trying to find the most simple
script possible that could basically traverse a directory of simple
textfiles and produce a list.

I know all about Blosxom and stuff like that, but I'd like a script that
just did the above and didn't overtake my site like PHPNuke or something
like that. I'll probably roll my own, but I thought I'd check first.

View Replies !
SELECT Error: No Database Selectedin Query: SELECT * FROM Schedule
I got the above error message after reading FAQ #10 which applied to my first error. The thing is, I thought I had selected a database. This script is copied from a tutorial, and I'm just too new at this to spot my error. PHP Code:

View Replies !
Simple Simple String Question
When I take the input from a textarea and insert it into a mysql-base and then retrieve it and show it, all the line feeds/breaks are gone.

It is shown as one giant string. How can this be fixed, so the text will be shown as it was entered? Does it have something to do with stripslashes/addslashes or am I way off?

View Replies !
Pop-up Calendar
Where can I find a script for a pop-up calendar for a user to select a date to enter in a field.

View Replies !
PHP 5 Calendar
Is there PHP5 calendaring software that will allow you to import events
from other calendars? For example, I have a Master project calendar
that my satellite sites want to import. They import the calendar and
now they have all my dates and theirs as well.

View Replies !
Calendar
The only problem is where to start. and for those who have done it before can you give me any insight. or if anybody knows of a nice calendar script that I could start with. Most sites of those small php calendars, when I really want a big calendar that fills up most of the page.

View Replies !
Pop Up Calendar
I hv a php script lets say a.php which has several txt boxes and another txt box with an icon at its side. when clicking the icon, it pops up a javascript calendar for the user to select a required date. once selected, the script will close and the date reflected on a.php.

now the problem comes after this. on this php page, there is a submit button which will go to page b.php (eg). on page b.php there is a back button where when when pressed, all records in previous page is gone and i have to re-insert details all over again. The funny thing is that in page a.php, if i did not use the calendar at all, when i click the back button in b.php is works fine.

View Replies !
Calendar Using PHP
Is it possible to make a calendar in PHP rather than hard-coding it in HTML? For example, I'm looking to make one for June 2007 and on each line I'd like to have the day, the date and then a checkbox containing the date, so for example:

<input type="checkbox" name="date" value="01062007" /> Tues. 1st.

View Replies !
Web Calendar
I am part of the web development team at a school in England.  Currently, the school calendar (which usually includes dates for starts and ends of terms, sports days, parents evenings, teacher meetings etc.) is done via a spreadsheet and simply printed off and given to everyone. Code:

View Replies !
Making A Calendar
What is the principle behind a calendar? I have some ideas but not 100% sure.

or is it that simple make 12 tables in the database? i don't think that's true tho. i'm hoping to use the least of the database, don't know why. say it was a daily calendar that would be 365 tables. also it's not for one year.

then again i've no idea what i'm talking about.

any help, links would be appreciated.

View Replies !
Another Calendar Dilemma
I coded a calendar a while back with sample code from here. Then the user wanted the calendar to span into the next month and I did this. Now the calendar needs to span into the previous and possibly next month...it called a bidmonth. I get the actual dates from a table. So for example bidmonth December 06 spans from November 27, 2006 to December 31, 2006. The table stores the bidmonthbegindate, bidmonthenddate, and the actual bidmonth, in this case 12, as a number.

I am not sure if it could span 3 months but I would like to code for it just in case. Below is the code I had that allows for a bid month to span into the NEXT month. I need to change it and I am in way over my head. Can someone help? PHP Code:

View Replies !
Calendar In A Pop Up Window
I have a simple calendar script which displays a calendar on my website and at present, you enter dates using a seperate xml file.

If you enter an event for a certain date, the event is displayed next to the date. This is fine, all works great, but what I would like to do is actually display the event in a pop-up window.

So you would click on the date , a pop-up window would appear with the event displayed.
PHP Code:
    

View Replies !
Next/prev In A Calendar
i think this works, but i have to put two dates for one event like January 2003 is 01 2003 and 13 2002. PHP Code:

View Replies !
How To Make A Calendar
how can i make a calendar on my php page?

View Replies !
Online Calendar
some quick facts to get ya started: it supports multiple calendars, custom fields within calendars. users/groups and permissions. it will include: import/export to .ics format, event validation, and searching.

View Replies !
Calendar Login_check
I would like to use a PHP calendar in one of my sites that lets a user log on to the admin panel through a pwd (to change states of dates etc...). However, it seems like the login_check has to be done over and over again ('ok' isn't passed on from one page to the other - session variable ?).

The calendar I would like to use can be found here. There you can find all related files.
The admin panel access page I use is here (pwd = 'enter')

View Replies !
Create A Calendar
I'm trying to create a calendar and have this script..

<?php

function generate_calendar($year, $month, $days = array(), $day_name_length = 3, $month_href = NULL, $first_day = 0, $pn = array())
{
$time = time();
echo generate_calendar(date('Y', $time), date('n', $time));}
?>

I am calling a function from within a function so it is printing a blank page :( where do I need to place this code in order for it to work?....

echo generate_calendar(date('Y', $time), date('n', $time));}

View Replies !
Simplest Php Web Calendar?
Can someone recommend a very simple script to produce a web calendar?

I just want something where I can select a month and year and it produces
a very basic HTML table, 7 columns across, one month at a time, with the
dates filled in.

No frills, no nothing, just pure, month producing code.

View Replies !
Calendar Program (help)
I have been solving algorithms with php, just to get practice. But my
new company
asked to do the following program in php, msql within 6 hours which I
have got stuck.
The task is as follows:

task:

"make a calendar using php and mysql where user can insert some
messages
and then see the day event."

I thought of doing a calendar on the browser where, in each cell there
is a button.
If button is clicked then a new textbox that imputes some message from
the user
and stores it in the mysql.

I don't know weather the above idea is possible.

Can any one give me a idea to approach the above problem?
Any link for UI in php? Is php event driven?

View Replies !
PHP, MySQL Calendar
I wanted to run this idea past you. I am looking to create a PHP Calendar with a MySQL Backend. How is this going to work? I have NOOO idea!! Here is what I need it for:

I am a resident assistant, and am looking to make a calendar system to schedule duty. Only one person is on duty during the weekdays (Mon, Tues, Wed, Thurs, Sun) and two people are on duty during the Weekends (Fri, Sat).

There needs to be an input system where one RA can go in and say that Person A is on duty on Weekday X of Month Y of Year Z or Person A and Person B are on duty on Weekend Day X of Month Y or Year Z.

I also want to be able to keep track of how many weekdays/weekend days each person has for each month.

I would like to be able to display all of this in a calendar (which can be an html table or whatever).

Does anyone have any ideas as to how I can implement this? (sql table columns, dealing with different amounts of days in each month, etc.)?

View Replies !
Calendar Output
I have been trying to use the code below (found on someone's blog) to create a calendar. What i have problems with is working out how to display the array in an actual calander layout. with the dates & days etc all lineing up. Code:

View Replies !
Recurring Calendar
Need to build a calendar module with the ability to handle recurring events. Anyone suggest some info on how to go about handling this?

View Replies !
Add An Event's Calendar
Im trying to add an event's calendar to my website. I have spent all day trying to get Obsidian's php event calendar to work but with no success at all. What I need is something very very similar to the birthday calendar available from the top nav bar of this forum.

I have a reservation table with reservations that have a 'CollectionDate' and a 'ReturnDate'. I'd like to display each record on both of those dates. Any advice/tips/ knowledge of a good script and its whereabouts would be fantastic!

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved