PDA

View Full Version : converting timezone



jnikho
10-29-2006, 07:43 PM
I was trying to figure out how to convert between timezones and several google sites are recommending to use the perl Date class. To use the perl Date class, one must include ("Date.php") in the php file. But when executing the php file that contains the include ("Date.php"), I am getting the following error message:

Warning: main(Date.php) [function.main]: failed to open stream: No such file or directory in /myhome/public_html/showTime.php on line 2

Warning: main() [function.include]: Failed opening 'Date.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /myhome/public_html/showTime.php on line 2

Lang
10-31-2006, 11:47 AM
What that means is it can't find the Date.php file - are you sure the file is in the same directory as the file showTime.php?