ricshs Posted April 25, 2006 Report Share Posted April 25, 2006 website/space with PHP (magic_quotes_gpc must be ON)" ko tas nozime? Link to comment Share on other sites More sharing options...
andrisp Posted April 25, 2006 Report Share Posted April 25, 2006 Tas nozīmē, ka php konfigurācijā (php.ini failā) direktīvai magic_quotes_gpc jabūt ON. Respektīvi: magic_quotes_gpc = On Un vispār tas nozīmē, ka php pats visiem POST un GET un moš arī citiem datiem eskeipos pēdiņas, lai varētu droši ievieto datubāzē. Vairāk te http://lv2.php.net/manual/en/ref.info.php#...agic-quotes-gpc un te http://lv2.php.net/manual/en/function.addslashes.php Link to comment Share on other sites More sharing options...
GedroX Posted April 25, 2006 Report Share Posted April 25, 2006 (edited) Tas nozīmē, ka GET, POST un COOKIE mainīgajiem automātiski tiks izpildīta funkcija addslashes(). Vismaz mani tas kretinē. ..visiem POST un GET un moš arī citiem datiem....un COOKIE ..eskeipos pēdiņas.. Arī backslash-u '\'. Edited April 25, 2006 by GedroX Link to comment Share on other sites More sharing options...
andrisp Posted April 25, 2006 Report Share Posted April 25, 2006 Vislabākais ir taisīt savu custom fju, kas pārbauda vai magic_quotes_gpc ir On, un ja nav, tad palaiž mysql_real_escape (vai addslashes - tas no vajadzības). Ja ir On, tad atdod to pašu vērtību. php manuālu kautkur bija. Link to comment Share on other sites More sharing options...
ricshs Posted April 25, 2006 Author Report Share Posted April 25, 2006 a, kur jāiekeksē, lai būtu on? Link to comment Share on other sites More sharing options...
andrisp Posted April 25, 2006 Report Share Posted April 25, 2006 (edited) php.ini failā. Izmanto OS iebūvēto searchu, lai atrastu to. Late UPD: Neaizmirsti, ka pēc jēbkurām izmaiņām šajā failā, ir jāpārstartē apache. Tikai neprasi kā - google noteikti zinās. Edited April 25, 2006 by andrisp Link to comment Share on other sites More sharing options...
ricshs Posted April 25, 2006 Author Report Share Posted April 25, 2006 a vins ~saakumaa vai beigās atrodās , tas php.ini fails ļoti liels =\ Link to comment Share on other sites More sharing options...
GedroX Posted April 25, 2006 Report Share Posted April 25, 2006 Ctrl+F Link to comment Share on other sites More sharing options...
Recommended Posts