Nov 22, 2009

Php Configuration Error?

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Programming > Scripting > PHP

Php Configuration Error?

xboxrulz
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

Comment/Reply (w/o sign-up)

yordan
could you please post the error text ? It's difficult to read it from your screen shot.

Comment/Reply (w/o sign-up)

xboxrulz
QUOTE
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 algorithm


PHPINFO gives me this error:
QUOTE

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

 

 

 


Comment/Reply (w/o sign-up)

yordan
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 ?

Comment/Reply (w/o sign-up)

faulty.lee
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)
CODE
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_set
it says:
QUOTE
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.

Comment/Reply (w/o sign-up)

xboxrulz
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().

QUOTE

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

Comment/Reply (w/o sign-up)

xboxrulz
ok, fixed it, had to change the date.timezone setting in my php.ini

I changed it to America/Toronto and it fixed it.

Thanks guys,
xboxrulz

Comment/Reply (w/o sign-up)

(G)apple
ERROR IN CONFIGURATION
Php 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

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : php, configuration, error,

  1. Cant Find The Error
    (2)
  2. Php Error-where To Put "?>"
    (2)
    lol....lately i have many problems in writing my scripts and i dont know if i should create post
    only for purpose so ppl can help me or should i create many post like i am doing right now...i am
    NOT making this to get many credits...i am doing it because i need help and many people here help
    me! CODE if ($_GET !='race'){ Who do you wanna race?           Derbi Senda 50
         Honda NS 50 R      Suzuki ZR 50      Yamaha DT 50 MX      Aprilia RS 50      - ?        
    } i have this code...if i put after it i get QUOTE Parse error: syntax....
  3. Warning: Mysql_num_rows()
    What is the error :S (1)
    Hey! I've made a register script.. Some time ago it worked. And I ain't sure if I changed
    something since then.. The error I am getting is this: Warning: mysql_num_rows(): supplied argument
    is not a valid MySQL result resource in /home/feelay/public_html/regcheck.php on line 31 Here is
    the code on theese lines: CODE $sqlCheckForDuplicate = "SELECT username FROM user WHERE username
    = '". $username ."'";                 if( mysql_num_rows( mysql_query(
    $sqlCheckForDuplicate ) ) == 0 )         {             $sqlRegUser =     "INSERT INTO            ....
  4. Php Math Error
    (4)
    I cant get php to do simple math. Anyway
    I need to run a math problem from the mysql database (dont ask why). So lets say I have an entrie: 5
    +5. I get it from my db then eval it but nothing happens? How could I make it so that it runs the 5+
    5 rather then just displaying it? Thanks, Sparkx Also: I have no clue if it is just my browser or
    what but my post breaks to boarder for some odd reason?....
  5. Unexpected Error
    Undefined variable??? (2)
    Is this script correct? index.php : CODE     if (isset($_COOKIE ))           $_GET =
    $_COOKIE ;     else         setcookie("disp_name", Anonymous, date()+99); ?>              
    Display Name - DZN                                                                   
                    Dislpay Name: name="name" />                                                
         proccess.php : CODE      Proccessing Request...           Please wait...
        setcookie("disp_name", $_GET , date()+99); ?> main.php : CODE     function customErr....
  6. Error On Submit Page
    (10)
    I am writing a new submit page for one of my sites and am doing a few things to stretch my
    experience. I am getting an error (naturally.) Here is part pf the page where the error might be:
    CODE //Check to see if the web page called itself     if (strtoupper($action) == "CHECK") {
            //The web page called itself, so run the error checking code         //Declare a variable to
    hold the error messages     $error = '';      // variable names:    name, cat, sub_cat, url,
    date, status, email, other, area_code, city          $name = $_POST ;     $cat = $_P....
  7. Got A Wee Error - Can You Help?
    (13)
    I'm taking a PHP course at college and am working on an assignment. There's no database
    involved. I've declared my variables from a submit form on another page, and on the page
    I'm working on I'm trying to bring them up in a table. But my start-table command is
    outputting an error. Here's the code relating to where the error is: CODE //Get First
    Item     if (isset($_GET )) {                 $item_1_product = $_GET ;     } else {
            $item_1_product = ""; //Default value if data missing     }          if (isset($_GET ))
    {            ....
  8. E-mail List Error
    (4)
    I just coded this e-mail list, it works well for entering data into database, but if user leaves
    the field blank or adds an already exist e-mail it gives him the error message and stops loading the
    rest of the page. CODE // Connects to your Database mysql_connect("localhost", "my_username",
    "mypassword") or die(mysql_error()); mysql_select_db("Database name") or die(mysql_error()); //This
    code runs if the form has been submitted if (isset($_POST )) { //This makes sure they did not leave
    any fields blank if (!$_POST ) {die(' No e-mail added '); } ....
  9. In Php, How To Not Display Mysql Connection Error?
    Don't want mysql_connect() message (4)
    In PHP, if the mysql database server cannot be connected, for example database server is handed or
    turned off, an error message will be displayed: Warning: mysql_connect(): Unknown MySQL Server Host
    "mysql.example.com" ... My question is how to not display this warning message? or can I customise
    the error message? if so, how? Thank you.....
  10. Php Problem Error Message
    I'm working from a book (9)
    I get this error message when I try to view a small webpage. QUOTE Parse error: parse error,
    unexpected T_STRING, expecting ',' or ';' in
    /home/nilsc/public_html/bobs/processorder.php on line 27 Line 27 is in this php part: CODE
        echo ' Order processed. ';     echo $tireqty. ' tires ';     echo $oilqty. '
    bottles of oil ';     echo $sparkqty. ' spark plugs ';          $totalqty = 0;
        $totalqty = $tireqty + $oilqty + $spakqty;     echo 'Items ordered: ' .$totalqty.' ;
             $totalamount = 0.....
  11. PHP paFileDB error
    an error relating to admin login (0)
    does any body know how to over come an error in paFileDB which says Warning: Cannot modify header
    information - headers already sent by (output started at
    /home/paltalkh/public_html/pafiledb/includes/mysql.php:86) in
    /home/paltalkh/public_html/pafiledb/includes/admin/login.php on line 36 Warning: Cannot modify
    header information - headers already sent by (output started at
    /home/paltalkh/public_html/pafiledb/includes/mysql.php:86) in
    /home/paltalkh/public_html/pafiledb/includes/admin/login.php on line 38 i have downloaded the php
    from phparena.net directly. Any hel....
  12. PHP paFileDB error
    an error relating to admin login. (2)
    does any body know how to over come an error in paFileDB which says Warning: Cannot modify header
    information - headers already sent by (output started at
    /home/paltalkh/public_html/pafiledb/includes/mysql.php:86) in
    /home/paltalkh/public_html/pafiledb/includes/admin/login.php on line 36 Warning: Cannot modify
    header information - headers already sent by (output started at
    /home/paltalkh/public_html/pafiledb/includes/mysql.php:86) in
    /home/paltalkh/public_html/pafiledb/includes/admin/login.php on line 38 i have downloaded the php
    from phparena.net directly. Any he....

    1. Looking for php, configuration, error,

See Also,

*SIMILAR VIDEOS*
Searching Video's for php, configuration, error,
advertisement



Php Configuration Error?

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com