xboxrulz1405241485 0 Report post Posted October 23, 2008 Hey guys, I'm trying to set up a dummy server on a virtual machine. PHP, HTML, MySQL are all working. However, I ran into a slight PHP error as shown below: Nexenta Core 1.0.1 (OpenSolaris 20080311, b85) PHP 5.1.2 MySQL 5.0.22 Quicksilver Forums 1.4.2 Any help will be appreciated. xboxrulz Share this post Link to post Share on other sites
yordan 10 Report post Posted October 23, 2008 could you please post the error text ? It's difficult to read it from your screen shot. Share this post Link to post Share on other sites
xboxrulz1405241485 0 Report post Posted October 23, 2008 strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We had to select 'UTC' because your platform doesn't provide functionality for the guessing algorithmPHPINFO gives me this error:Warning: phpinfo() [function.phpinfo]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We had to select 'UTC' because your platform doesn't provide functionality for the guessing algorithm in /var/www/info.php on line 3 Thanks,xboxrulz Share this post Link to post Share on other sites
yordan 10 Report post Posted October 23, 2008 So, it's clearly a date timezone problem definition somewhere. Is your day/time correct ? Seems to be a solaris system, if you type "date" in a shell window, is the answer correct ? Share this post Link to post Share on other sites
faulty.lee 0 Report post Posted October 23, 2008 (edited) Putting this as the first line of your php file will fix the problem. Or you can configure your php.ini as per php's manual (see below) date_default_timezone_set('Asia/Kuala_Lumpur'); You can set to your time zone. If you refer to php's manual http://my.php.net/date_default_timezone_setit says:Note: Since PHP 5.1.0 (when the date/time functions were rewritten), every call to a date/time function will generate a E_NOTICE if the timezone isn't valid, and/or a E_STRICT message if using the system settings or the TZ environment variable. Instead of using this function to set the default timezone in your script, you can also use the INI setting date.timezone to set the default timezone. So by configuring your php.ini, you can also solve this problem. Edited October 23, 2008 by faulty.lee (see edit history) Share this post Link to post Share on other sites
xboxrulz1405241485 0 Report post Posted October 23, 2008 date is correct since the date is drawn from my Linux host. I'm using VirtualBox and I guess it set the date/time for me already. I think the quote below something of interest from phpinfo(). date/time support enabled Timezone Database Version 2005.18 Timezone Database internal Default timezone UTC Directive Local Value Master Value date.default_latitude 31.7667 31.7667 date.default_longitude 35.2333 35.2333 date.sunrise_zenith 90.583333 90.583333 date.sunset_zenith 90.583333 90.583333 date.timezone no value no value Edit: I'm searching for my php.ini ... it's not in /usr/local .... xboxrulz Share this post Link to post Share on other sites
xboxrulz1405241485 0 Report post Posted October 23, 2008 ok, fixed it, had to change the date.timezone setting in my php.iniI changed it to America/Toronto and it fixed it.Thanks guys,xboxrulz Share this post Link to post Share on other sites
iGuest 3 Report post Posted May 8, 2009 ERROR IN CONFIGURATIONPhp Configuration Error?Hi guys I need some help, I am not a techy person so I'll be explaining my problem in a "laymans term". When my brother was trying to connect to the internet using our laptop connected to a modem he encountered a problem. The cursor turning into an hourglass(Reading I suppose..) then the page said "ERROR IN CONFIGURATION" we tried restarting the laptop but we encountered the same problem. What do you think guys could go wrong. HELP PLEASE...-reply by apple Share this post Link to post Share on other sites