Jump to content

Recommended Posts

Posted

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

Posted

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"

:)

Posted

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.

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...