stevesh Posted February 7, 2004 Posted February 7, 2004 I'm installing a web-based calendar program on my site from: http://webcalendar.sourceforge.net The section of the program docs dealing with email reminders says this: "PHP does not come with a utility for executing time-based jobs. So, in order to check periodically for email reminders, a shell script was written in PHP. You will need two things to get this working: You should have a version of PHP built as a CGI (so that you can run php from the command line). This does not mean you must build all of PHP as a CGI. You can still build PHP as a module for your web server and then build the CGI-based PHP later. Note: Many Linux distributions and some Windows LAMP packages come with the PHP built for CGI. You must setup cron (on Linux/UNIX) or something like cron for Windows to run the send_reminders.php script periodically. Building PHP as a CGI is outside the scope of these instructions. But, if you read the PHP instructions, you'll see that the default build settings will build the CGI-based PHP. If you really can't do this (perhaps you don't have permission to install anything new on the system), skip down a couple of paragraphs to an alternate solution that does not require PHP CGI." Does anyone know if the PHP build on TCH meets these specs? Thanks. Steve Quote
borfast Posted February 7, 2004 Posted February 7, 2004 What you require is the possibility of running PHP scripts by issuing a shell command - you can do that with a cron job. Just set the cron command to something like "php -q /home/your_username/public_html/path_to_web_calendar/send_reminders.php" Quote
stevesh Posted February 8, 2004 Author Posted February 8, 2004 Excellent! Thanks, Raul. Rock Sign Quote
arvind Posted February 8, 2004 Posted February 8, 2004 I'm having massive difficulties installing this http://www.arvind-satya.com/calendar/ I think I've done everything correctly Quote
borfast Posted February 8, 2004 Posted February 8, 2004 Arvind, you seem to have a problem with the database username and password. Check to see if you have created that used with the correct permissions on MySQL manager and that you're using the correct password when setting up the calendar. Quote
stevesh Posted February 9, 2004 Author Posted February 9, 2004 Arvind - I had a problem setting up the user name and password to access the database with my calendar program, too, and got the same error message you did. I had forgotten that your site user name is appended to the user name you set up in Mysql. For example, if your user name to log into CPanel is 'jimbos' and you set up a Mysql user name as 'calendar', the actual user name Mysql will be looking for is 'jimbos_calendar' and you'll have to use that name in the script which accesses the database. Hope this helps. Steve Quote
arvind Posted February 9, 2004 Posted February 9, 2004 yeh no that was easily fixed now new errors Quote
arvind Posted February 11, 2004 Posted February 11, 2004 bump could someone help me with this. I really don't know what to do Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.