osk Posted December 18, 2005 Report Share Posted December 18, 2005 Kādam nolūkam php izmanto "@"? Link to comment Share on other sites More sharing options...
Vebers Posted December 18, 2005 Report Share Posted December 18, 2005 Kad kādai f-jai tiek pielikts priekšā '@', tad netiek izvadīti nekādi error'i Link to comment Share on other sites More sharing options...
ohmygod Posted December 18, 2005 Report Share Posted December 18, 2005 lai nemestu erroru Link to comment Share on other sites More sharing options...
osk Posted December 18, 2005 Author Report Share Posted December 18, 2005 paldies! Link to comment Share on other sites More sharing options...
Grey_Wolf Posted December 18, 2005 Report Share Posted December 18, 2005 ja f-ja var atgriezt erroru tad sho erroru neradiit... resp bez bla(); teiksim atgrieztu Fatal error: Call to undefined function: bla() in .... @bla(); neizvadiis neko tas nenoziimee ka viss buus labi, vienkarshi tas ir lai useri neredzeetu kljudas zinjojumus... viens no visvairaak pielietotajiem veidiem ir pie DB konekteeshanas... ------- $db=mysql_connect($hosts, $users, $paswords); if (!$db) { echo $error_mesage; } -- ja nvarees piekonekteeties tad ne tikai izvadiis $error_ mesage, bet arii visu PHP pazinjojumu $db=@mysql_connect($hosts, $users, $paswords); izvadiis tikai $error_ mesage // kas ir tavs tekstc... Link to comment Share on other sites More sharing options...
GedroX Posted December 18, 2005 Report Share Posted December 18, 2005 Un vēl, protams, ir arī tāda forma: @fopen('fails.txt') or echo 'Nevar atvērt'; Link to comment Share on other sites More sharing options...
v3rb0 Posted December 19, 2005 Report Share Posted December 19, 2005 šad un tad lietots variants ir pie isset un lielu datu struktūru kurā var nebūt kāda no nodēm if(@isset($arr[$key1][$key2][$key3][4][5][6])) Link to comment Share on other sites More sharing options...
Recommended Posts