Sasa Posted October 24, 2014 Report Share Posted October 24, 2014 Man pilns log's ir ar noticēm, kā atstāt tikai errorus un deprecation'us? Ko apaches vhost konfigā jāpieraksta? Link to comment Share on other sites More sharing options...
briedis Posted October 24, 2014 Report Share Posted October 24, 2014 https://www.google.lv/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=apache%20disable%20notices Link to comment Share on other sites More sharing options...
codez Posted October 24, 2014 Report Share Posted October 24, 2014 izmanto Scala Link to comment Share on other sites More sharing options...
daGrevis Posted October 24, 2014 Report Share Posted October 24, 2014 lol Link to comment Share on other sites More sharing options...
e-remit Posted October 24, 2014 Report Share Posted October 24, 2014 Izslēdz visas notices un tad brīnās, ka "pareizs" kods nestrādā, kā vajag... Link to comment Share on other sites More sharing options...
Kasspars Posted October 24, 2014 Report Share Posted October 24, 2014 Yess, piektdiena Link to comment Share on other sites More sharing options...
Sasa Posted October 24, 2014 Author Report Share Posted October 24, 2014 Un kas par to ka šodien piektdiena? Samērā normālu jautājumu uzdevu, jūs te par scalām un "pareizajiem" kodiem uzreiz Link to comment Share on other sites More sharing options...
jurchiks Posted October 24, 2014 Report Share Posted October 24, 2014 Tev tās notices ir jālabo, nevis jāizslēdz, ne jau nu viņas tur prikola pēc logojas. Es tādu prikolistu kā tevis dēļ tagad ciešu - strādāju pie masīva sūdu gabala, kura developeri par error logiem vispār nav dzirdējuši, vnk uzlikuši vairumā failu error_reporting(0) (atlikušajos strādā set_error_handler(), kurš visu norij), un tad zīlē kafijas biezumos, kad kaut kas nestrādā. Es atveru to failu IDE un uzreiz redzu 100 problēmas. Link to comment Share on other sites More sharing options...
codez Posted October 24, 2014 Report Share Posted October 24, 2014 Es tādu prikolistu kā tevis dēļ tagad ciešu - strādāju pie masīva sūdu gabala Strādāt ar PHP ir tas pats, kas strādāt Maksimā par pārdevēju un cerēt, ka kaut kas dzīvē paliks labāks. Link to comment Share on other sites More sharing options...
Sasa Posted October 24, 2014 Author Report Share Posted October 24, 2014 Es visu zinu ka viņas jālabo, bet nu šobrīd gribu atslēgt, un es arī esmu ticis pie tāda "prikolistu" gabala kā ticis jurčiks un nezinu kur no laimes lai liekas. Link to comment Share on other sites More sharing options...
jurchiks Posted October 24, 2014 Report Share Posted October 24, 2014 @codez - redzi, es strādāju ar PHP vairākus gadus, un vismaz finanšu ziņā paliek arī labāk. @Sasa - izslēgsi, aizmirsīsi, nesalabosi. I feel your pain tho. Link to comment Share on other sites More sharing options...
Kasspars Posted October 24, 2014 Report Share Posted October 24, 2014 Kāds vispār zin kā tās notices izslēgt? Varbūt cilvēks tagad netiek mājās kamēr notices nav izslēdzis Link to comment Share on other sites More sharing options...
jurchiks Posted October 24, 2014 Report Share Posted October 24, 2014 Seriously... http://php.net/manual/en/function.error-reporting.php#105229 Link to comment Share on other sites More sharing options...
gurkjis Posted October 24, 2014 Report Share Posted October 24, 2014 iekš php.ini: error_reporting = E_ALL & ~E_NOTICE Link to comment Share on other sites More sharing options...
jurchiks Posted October 24, 2014 Report Share Posted October 24, 2014 Tas ir globāli visiem saitiem. That's bad. Link to comment Share on other sites More sharing options...
Recommended Posts