Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

miltonmmjr

Erro em programa php

Recommended Posts

Estou tendo estes erros nos progrmas que tento baixar para testar:

Warning: main(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting 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 selected 'America/Sao_Paulo' for '-3.0/no DST' instead in C:\WAMP\Apache2.2\htdocs\cadastro\index.php on line 33 Notice: Undefined index: link in C:\WAMP\Apache2.2\htdocs\cadastro\index.php on line 33 Warning: main(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting 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 selected 'America/Sao_Paulo' for '-3.0/no DST' instead in C:\WAMP\Apache2.2\htdocs\cadastro\index.php on line 36 Notice: Undefined index: link in C:\WAMP\Apache2.2\htdocs\cadastro\index.php on line 36

 

 

Warning: mysql_fetch_array(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting 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 selected 'America/Sao_Paulo' for '-3.0/no DST' instead in C:\WAMP\Apache2.2\htdocs\vendas\index.php on line 26 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\WAMP\Apache2.2\htdocs\vendas\index.php on line 26

 

Warning: main(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting 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 selected 'America/Sao_Paulo' for '-3.0/no DST' instead in C:\WAMP\Apache2.2\htdocs\vendas\index.php on line 47 Notice: Undefined index: link in C:\WAMP\Apache2.2\htdocs\vendas\index.php on line 47

 

Até em um sisteminha desde forum:

Warning: main(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting 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 selected 'America/Sao_Paulo' for '-3.0/no DST' instead in C:\WAMP\Apache2.2\htdocs\vend\index.php on line 68 Notice: Undefined index: editar in C:\WAMP\Apache2.2\htdocs\vend\index.php on line 68 Warning: main(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting 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 selected 'America/Sao_Paulo' for '-3.0/no DST' instead in C:\WAMP\Apache2.2\htdocs\vend\index.php on line 69 Notice: Undefined index: id in C:\WAMP\Apache2.2\htdocs\vend\index.php on line 69

 

 

Warning: main(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting 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 selected 'America/Sao_Paulo' for '-3.0/no DST' instead in C:\WAMP\Apache2.2\htdocs\vend\index.php on line 314 Notice: Undefined variable: valortotal in C:\WAMP\Apache2.2\htdocs\vend\index.php on line 314 50,01

 

Estou tentando aprender PHP, mas esta dando muitos erros.

Compartilhar este post


Link para o post
Compartilhar em outros sites

alguem sabe onde eu mudo a date_default_timezone_set no wamp server?

 

tipo achei no php.ini assim

 

Date]

; Defines the default timezone used by the date functions

; http://php.net/date.timezone

date.timezone = UTC

 

; http://php.net/date.default-latitude

;date.default_latitude = 31.7667

 

; http://php.net/date.default-longitude

;date.default_longitude = 35.2333

 

; http://php.net/date.sunrise-zenith

;date.sunrise_zenith = 90.583333

 

; http://php.net/date.sunset-zenith

;date.sunset_zenith = 90.583333

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.