Visualizzazione dei risultati da 1 a 7 su 7

Discussione: magic_quotes

  1. #1

    magic_quotes

    dal manuale...
    Se si abilita magic_quotes_runtime, diverse funzioni che restituiscono dati da ogni tipo di fonte esterna, compresi i database ed i file di testo, avranno gli apici preceduti dal backslash. Se è anche attivato magic_quotes_sybase, soltanto l'apice singolo sarà preceduto dal carattere di escape costituito da un apice singolo anzichè il backslash.
    magic_quotes_sybase ha precednza su magic_quotes_gpc e su magic_quotes_runtime

    1. Come posso vedere se magic_quotes_sybase è a ON ? :master:

    tnx
    There are 10 types of people in the world: Those who understand binary, and those who don't.

  2. #2
    Forse con phpinfo! Con questa funzione puoi vedere anche se magic_quotes_gpc è settato ad on. Penso che possa vedere anche magic_quotes_sybase! credo!
    eCommerceRS.NET - Commerciante, vendi on-line!
    Il mio nick è mircov e non mirco!!!

  3. #3
    Originariamente inviato da mircov
    Forse con phpinfo! Con questa funzione puoi vedere anche se magic_quotes_gpc è settato ad on. Penso che possa vedere anche magic_quotes_sybase! credo!
    ciao mircov,
    scusa non l'ho specificato ....ma mi serviva saperlo in runtime...
    There are 10 types of people in the world: Those who understand binary, and those who don't.

  4. #4
    Ah, allora non ne ho la minima idea!
    eCommerceRS.NET - Commerciante, vendi on-line!
    Il mio nick è mircov e non mirco!!!

  5. #5
    fatta ora , facile facile
    codice:
    function magic_quotes_exists() {
    	return array(
    		'gpc' => ini_get('magic_quotes_gpc'),
    		'runtime' => ini_get('magic_quotes_runtime'),
    		'sybase' => ini_get('magic_quotes_sybase')
    	);
    }
    
    echo '<pre>'.print_r(magic_quotes_exists(), true).'</pre>';
    Formaldehyde a new Ajax PHP Zero Config Error Debugger

    WebReflection @WebReflection

  6. #6
    Originariamente inviato da andr3a
    fatta ora , facile facile
    tnx

    quindi un controllino tipo :
    Codice PHP:
    fnction is_magic_quotes(){
    if ( (
    ini_get('magic_quotes_sybase')=='') || (ini_get('magic_quotes_sybase')=='0') ) {return FALSE;}
    elseif ( (
    ini_get('magic_quotes_gpc')=='') || (ini_get('magic_quotes_gpc')=='0') ) {
     
    set_magic_quotes_runtime('1');
     return 
    TRUE;}
    }

    if(
    is_magic_quotes()) {//lavora senza addslashes}
    else {//lavora con addslashes} 
    dovrebbe essere + che sufficente?
    There are 10 types of people in the world: Those who understand binary, and those who don't.

  7. #7
    Originariamente inviato da mascalzone
    dovrebbe essere + che sufficente?
    è consigliabile settare magic_quotes in runtime?
    o è preferibile verificare solo se sono o meno settate e agire di conseguenza? :master:
    pippe mentali?

    che dite?
    There are 10 types of people in the world: Those who understand binary, and those who don't.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.