Loading ...
Sorry, an error occurred while loading the content.

??: Θέμα: ΑΠ: Θέμα: [php_g reek] register globals: Off (new!)

Expand Messages
  • ghdp@in.gr
    ka8ws eixa to idio problhma eftiaksa ena .htaccess arxeio (se ka8e fakelo) me monadiko kwdka to eksis php_flag register_globals on kai douleuei kanonika.
    Message 1 of 2 , Jul 4, 2006
    • 0 Attachment
      ka8ws eixa to idio problhma eftiaksa ena .htaccess arxeio (se ka8e fakelo) me monadiko kwdka to eksis
      php_flag register_globals on

      kai douleuei kanonika. prosekse to arxeio na einai pragmatiko txt kai na mhn exoun pros8esei ta win tipota periergous xarakthres

      epishs des kai to eksis (rtfm):
      http://ca3.php.net/register_globals

      oso gia to pote 8a katargh8ei auth h dunatothta den to 8umamai akribws.. to eixa diabasei se 1-2 site alla den ta briskw twraaa




      -----Αρχικό μήνυμα-----
      Από: "php_greek@yahoogroups.com" <php_greek@yahoogroups.com> εκ μέρους
      "spacerom_online" <spacerom_online@...>
      Αποστολή: Τρίτη, 4 Ιουλίου 2006 11:22 πμ
      Προς: "php_greek@yahoogroups.com" <php_greek@yahoogroups.com>
      Θέμα: Re: Θέμα: ΑΠ: Θέμα: [php_greek] register globals: Off (new!)



      Euxaristo poly olous gia tin grigori apantisi!
      Lew na xrisimopoiso to .htaccess arxeio. Tha prepei omos na periexei
      mono mia grammi, diladi mono to register_globals = On ;
      Ektos apo auto lete oti den uparxei allos tropos, diladi na alla3ei
      kaneis to var $PHP_SELF; Den tha itan auto pio sigouro kai gia
      mellontika versions tou PHP;

      Kostas Plastiras
      www.webplastic.net

      --- In php_greek@yahoogroups.com <mailto:php_greek%40yahoogroups.com> ,
      Sofoklis Magoulas <sympan@...> wrote:
      >
      > legontas epomenes poso epomenes ????
      > ego pou to leitourgo se linux server o opoios kanei
      > update stin teleutaia ekdosi den exei problima
      >
      > --- ghdp@... Yanaoa:
      >
      > > "..ena arxeio php.ini.."
      > > kalutera arxeio .htaccess gia linux servers
      > > wstoso auth einai proswrinh lush ka8ws stis epomenes
      > > ekdoseis php den 8a uposthrizetai auth h epilogh
      > >
      > >
      > >
      > >
      > >
      > > -----An?eeu i?ioia-----
      > > A?u: " php_greek@yahoogroups.com
      <mailto:php_greek%40yahoogroups.com> "
      > > < php_greek@yahoogroups.com <mailto:php_greek%40yahoogroups.com> >
      ae iYnioo "Sofoklis
      > > Magoulas" <sympan@...>
      > > A?iooie?: On?oc, 4 Eioe?io 2006 6:20 ?i
      > > ?nio: " php_greek@yahoogroups.com
      <mailto:php_greek%40yahoogroups.com> "
      > > < php_greek@yahoogroups.com <mailto:php_greek%40yahoogroups.com> >
      > > EYia: EYia: [php_greek] register globals: Off (new!)
      > >
      > > loipon ...
      > > mporeis na ftiakseis ena arxeio php.ini sto fakelo
      > > pou
      > > se endiaferei kai na valeis mesa mia seira me to
      > > akoloutho
      > >
      > > register_globals = On
      > >
      > > apo ekei kai pera tha pezei kanonika to script sou
      > >
      > >
      > > --- spacerom_online <spacerom_online@...>
      > > Yanaoa:
      > >
      > > > Gia sas, signomi gia to proigoumeno mail mou. To
      > > > egrapsa me
      > > > ellinikous ISO xaraktires kai den ixera to
      > > > apotelesma. Opos isos
      > > > katalabate eimai kainourgios se se autin edw tin
      > > > lista. Katarxas
      > > > loipon gia xara stin lista!
      > > >
      > > > To problima pou me apasxolei exei na kanei me ta
      > > > global variables
      > > > stin PHP 5. Exo ktisei to parakato script se mia
      > > > HTML selida,
      > > > prokeitai gia ena guestbook enos site:
      > > >
      > > > <form action="<? echo $PHP_SELF?>" method="post">
      > > > <textarea cols="60" rows="5"
      > > > name="opinion"></textarea>
      > > > <input type="submit" value="send your opinion!">
      > > > </form>
      > > >
      > > > <?
      > > > $day = date ("d/m/y");
      > > > $time = date ("h:i:s a");
      > > > $border=0;
      > > > $bordercolor="#999999";
      > > > $bgcolor="#000000";
      > > > if(isset ($opinion)) {
      > > > $fp = fopen("guests.txt", "a");
      > > > fwrite ($fp,"<table border=$border
      > > > bordercolor=$bordercolor
      > > >
      > >
      >
      bgcolor=$bgcolor><tr><td>".$day."-".$time."<p>".$opinion."</td></tr></ta
      ble><p>\\
      > > > n");
      > > > fclose($fp);
      > > > }
      > > >
      > > > ?>
      > > > <p>Writen messages:</p>
      > > > <? readfile ("guests.txt") ?>
      > > >
      > > >
      > > > To thema loipon einai oti ston apache server pou
      > > > xrisimopoio spiti ta
      > > > register_globals einai Off apo default. Auto mporw
      > > > na to alla3o ston
      > > > apache (kai otan to kano to script leitourgei
      > > > perifima), oxi omos kai
      > > > se enan web server opou o kathe provider thetei ta
      > > > globals Off gia
      > > > logous asfaleias (kai kala kanei diladi).
      > > >
      > > > Auto pou prospathisa ews twra einai na alla3o to
      > > > trick me to
      > > > $PHP_SELF kai na to metagrapso se
      > > > $HTTP_SERVER_VARS['PHP_SELF'] kai
      > > > $_SERVER['PHP_SELF'], omos kanena apo ta duo den
      > > > petuxe kai ta
      > > > variables den grafontai kan sto guests.txt :(
      > > > Mipos exrei kapoios mia lisi pano se auto? Episis
      > > > oso anafora to
      > > > variable "option", tha prepei isos na to
      > > metagrapso
      > > > san
      > > > $_SESSION['opinion'] h kati paromoio gia na
      > > > doulepsei me ta globals Off?
      > > > To script pantos einai ok me ta global On.
      > > >
      > > > Opoios tha mporouse na boithisei tou eimai
      > > > pragmatika eugnomon :)
      > > >
      > > > Euxaristo ek twn proteron
      > > > Kostas Plastiras
      > > >
      > > >
      > > >
      > > >
      > >
      > >
      > > Sofoklis Magoulas
      > >
      > > Web master of Sympan network
      > > Internet and computer support
      > > 37 Mesogeion str, Maroussi
      > > 15126, Athens Greece
      > >
      > >
      > >
      > >
      > >
      > >
      > >
      > __________________________________________________________
      > >
      > > ?ncoeii?iea?oa Yahoo!;
      > > Aanae?eaoa oa aii?ecoeeU iciyiaoa (spam); Oi Yahoo!
      > > Mail
      > > aeaeYoae oci eaeyoanc aoiao? ?niooao?a eaoU oui
      > > aii?ecoee?i
      > > icioiUoui
      > > http://login.yahoo.com/config/mail?.intl=gr
      <http://login.yahoo.com/config/mail?.intl=gr>
      > >
      > >
      > >
      > >
      > > --
      > > Aeeciee? PHP mailing list
      > > Yahoo! Groups Links
      > >
      > >
      > >
      > >
      > >
      > >
      > >
      > >
      > > ------------------------ Yahoo! Groups Sponsor
      > > --------------------~-->
      > > Great things are happening at Yahoo! Groups. See
      > > the new email design.
      > >
      > http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/9rHolB/TM
      <http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/9rHolB/TM>
      > >
      > ----------------------------------------------------------~->
      > >
      > >
      > > --
      > > Aeeciee? PHP mailing list
      > > Yahoo! Groups Links
      > >
      > >
      > > php_greek-unsubscribe@yahoogroups.com
      <mailto:php_greek-unsubscribe%40yahoogroups.com>
      > >
      > >
      > >
      > >
      > >
      > >
      >
      >
      > Sofoklis Magoulas
      >
      > Web master of Sympan network
      > Internet and computer support
      > 37 Mesogeion str, Maroussi
      > 15126, Athens Greece
      >
      >
      >
      >
      >
      >
      > __________________________________________________________
      > ?ncoeii?iea?oa Yahoo!;
      > Aanae?eaoa oa aii?ecoeeU iciyiaoa (spam); Oi Yahoo! Mail
      > aeaeYoae oci eaeyoanc aoiao? ?niooao?a eaoU oui aii?ecoee?i
      > icioiUoui http://login.yahoo.com/config/mail?.intl=gr
      <http://login.yahoo.com/config/mail?.intl=gr>
      >
    • spacerom_online
      Telika to elusa to problima me ena global_array to opoio douleuei kai me ta register_globals Off :) Auto pou ekana itan na apothikeuso to var opinion se ena
      Message 2 of 2 , Jul 10, 2006
      • 0 Attachment
        Telika to elusa to problima me ena global_array to opoio douleuei kai
        me ta register_globals Off :)
        Auto pou ekana itan na apothikeuso to var "opinion" se ena neo var me
        tin boitheia tou $_POST[].
        Diladi $gnomi = $_POST["opinion"].
        Meta sto if:

        if(isset $gmoni){
        ....ktl ktl....
        }

        To var PHP_SELF douleuei kai me ta global variables off.

        Sas euxaristo olous gia tis apantiseis sas!
        Kostas Plastiras
        www.webplastic.net

        --- In php_greek@yahoogroups.com, <ghdp@...> wrote:
        >
        > ka8ws eixa to idio problhma eftiaksa ena .htaccess arxeio (se ka8e
        fakelo) me monadiko kwdka to eksis
        > php_flag register_globals on
        >
        > kai douleuei kanonika. prosekse to arxeio na einai pragmatiko txt
        kai na mhn exoun pros8esei ta win tipota periergous xarakthres
        >
        > epishs des kai to eksis (rtfm):
        > http://ca3.php.net/register_globals
        >
        > oso gia to pote 8a katargh8ei auth h dunatothta den to 8umamai
        akribws.. to eixa diabasei se 1-2 site alla den ta briskw twraaa
        >
        >
        >
        >
        > -----Áñ÷éêü ìÞíõìá-----
        > Áðü: "php_greek@yahoogroups.com" <php_greek@yahoogroups.com> åê ìÝñïõò
        > "spacerom_online" <spacerom_online@...>
        > ÁðïóôïëÞ: Ôñßôç, 4 Éïõëßïõ 2006 11:22 ðì
        > Ðñïò: "php_greek@yahoogroups.com" <php_greek@yahoogroups.com>
        > ÈÝìá: Re: ÈÝìá: ÁÐ: ÈÝìá: [php_greek] register globals: Off (new!)
        >
        >
        >
        > Euxaristo poly olous gia tin grigori apantisi!
        > Lew na xrisimopoiso to .htaccess arxeio. Tha prepei omos na periexei
        > mono mia grammi, diladi mono to register_globals = On ;
        > Ektos apo auto lete oti den uparxei allos tropos, diladi na alla3ei
        > kaneis to var $PHP_SELF; Den tha itan auto pio sigouro kai gia
        > mellontika versions tou PHP;
        >
        > Kostas Plastiras
        > www.webplastic.net
        >
        > --- In php_greek@yahoogroups.com <mailto:php_greek%40yahoogroups.com> ,
        > Sofoklis Magoulas <sympan@> wrote:
        > >
        > > legontas epomenes poso epomenes ????
        > > ego pou to leitourgo se linux server o opoios kanei
        > > update stin teleutaia ekdosi den exei problima
        > >
        > > --- ghdp@ Yanaoa:
        > >
        > > > "..ena arxeio php.ini.."
        > > > kalutera arxeio .htaccess gia linux servers
        > > > wstoso auth einai proswrinh lush ka8ws stis epomenes
        > > > ekdoseis php den 8a uposthrizetai auth h epilogh
        > > >
        > > >
        > > >
        > > >
        > > >
        > > > -----An?eeu i?ioia-----
        > > > A?u: " php_greek@yahoogroups.com
        > <mailto:php_greek%40yahoogroups.com> "
        > > > < php_greek@yahoogroups.com <mailto:php_greek%40yahoogroups.com> >
        > ae iYnioo "Sofoklis
        > > > Magoulas" <sympan@>
        > > > A?iooie?: On?oc, 4 Eioe?io 2006 6:20 ?i
        > > > ?nio: " php_greek@yahoogroups.com
        > <mailto:php_greek%40yahoogroups.com> "
        > > > < php_greek@yahoogroups.com <mailto:php_greek%40yahoogroups.com> >
        > > > EYia: EYia: [php_greek] register globals: Off (new!)
        > > >
        > > > loipon ...
        > > > mporeis na ftiakseis ena arxeio php.ini sto fakelo
        > > > pou
        > > > se endiaferei kai na valeis mesa mia seira me to
        > > > akoloutho
        > > >
        > > > register_globals = On
        > > >
        > > > apo ekei kai pera tha pezei kanonika to script sou
        > > >
        > > >
        > > > --- spacerom_online <spacerom_online@>
        > > > Yanaoa:
        > > >
        > > > > Gia sas, signomi gia to proigoumeno mail mou. To
        > > > > egrapsa me
        > > > > ellinikous ISO xaraktires kai den ixera to
        > > > > apotelesma. Opos isos
        > > > > katalabate eimai kainourgios se se autin edw tin
        > > > > lista. Katarxas
        > > > > loipon gia xara stin lista!
        > > > >
        > > > > To problima pou me apasxolei exei na kanei me ta
        > > > > global variables
        > > > > stin PHP 5. Exo ktisei to parakato script se mia
        > > > > HTML selida,
        > > > > prokeitai gia ena guestbook enos site:
        > > > >
        > > > > <form action="<? echo $PHP_SELF?>" method="post">
        > > > > <textarea cols="60" rows="5"
        > > > > name="opinion"></textarea>
        > > > > <input type="submit" value="send your opinion!">
        > > > > </form>
        > > > >
        > > > > <?
        > > > > $day = date ("d/m/y");
        > > > > $time = date ("h:i:s a");
        > > > > $border=0;
        > > > > $bordercolor="#999999";
        > > > > $bgcolor="#000000";
        > > > > if(isset ($opinion)) {
        > > > > $fp = fopen("guests.txt", "a");
        > > > > fwrite ($fp,"<table border=$border
        > > > > bordercolor=$bordercolor
        > > > >
        > > >
        > >
        > bgcolor=$bgcolor><tr><td>".$day."-".$time."<p>".$opinion."</td></tr></ta
        > ble><p>\\
        > > > > n");
        > > > > fclose($fp);
        > > > > }
        > > > >
        > > > > ?>
        > > > > <p>Writen messages:</p>
        > > > > <? readfile ("guests.txt") ?>
        > > > >
        > > > >
        > > > > To thema loipon einai oti ston apache server pou
        > > > > xrisimopoio spiti ta
        > > > > register_globals einai Off apo default. Auto mporw
        > > > > na to alla3o ston
        > > > > apache (kai otan to kano to script leitourgei
        > > > > perifima), oxi omos kai
        > > > > se enan web server opou o kathe provider thetei ta
        > > > > globals Off gia
        > > > > logous asfaleias (kai kala kanei diladi).
        > > > >
        > > > > Auto pou prospathisa ews twra einai na alla3o to
        > > > > trick me to
        > > > > $PHP_SELF kai na to metagrapso se
        > > > > $HTTP_SERVER_VARS['PHP_SELF'] kai
        > > > > $_SERVER['PHP_SELF'], omos kanena apo ta duo den
        > > > > petuxe kai ta
        > > > > variables den grafontai kan sto guests.txt :(
        > > > > Mipos exrei kapoios mia lisi pano se auto? Episis
        > > > > oso anafora to
        > > > > variable "option", tha prepei isos na to
        > > > metagrapso
        > > > > san
        > > > > $_SESSION['opinion'] h kati paromoio gia na
        > > > > doulepsei me ta globals Off?
        > > > > To script pantos einai ok me ta global On.
        > > > >
        > > > > Opoios tha mporouse na boithisei tou eimai
        > > > > pragmatika eugnomon :)
        > > > >
        > > > > Euxaristo ek twn proteron
        > > > > Kostas Plastiras
        > > > >
        > > > >
        > > > >
        > > > >
        > > >
        > > >
        > > > Sofoklis Magoulas
        > > >
        > > > Web master of Sympan network
        > > > Internet and computer support
        > > > 37 Mesogeion str, Maroussi
        > > > 15126, Athens Greece
        > > >
        > > >
        > > >
        > > >
        > > >
        > > >
        > > >
        > > __________________________________________________________
        > > >
        > > > ?ncoeii?iea?oa Yahoo!;
        > > > Aanae?eaoa oa aii?ecoeeU iciyiaoa (spam); Oi Yahoo!
        > > > Mail
        > > > aeaeYoae oci eaeyoanc aoiao? ?niooao?a eaoU oui
        > > > aii?ecoee?i
        > > > icioiUoui
        > > > http://login.yahoo.com/config/mail?.intl=gr
        > <http://login.yahoo.com/config/mail?.intl=gr>
        > > >
        > > >
        > > >
        > > >
        > > > --
        > > > Aeeciee? PHP mailing list
        > > > Yahoo! Groups Links
        > > >
        > > >
        > > >
        > > >
        > > >
        > > >
        > > >
        > > >
        > > > ------------------------ Yahoo! Groups Sponsor
        > > > --------------------~-->
        > > > Great things are happening at Yahoo! Groups. See
        > > > the new email design.
        > > >
        > > http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/9rHolB/TM
        > <http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/9rHolB/TM>
        > > >
        > > ----------------------------------------------------------~->
        > > >
        > > >
        > > > --
        > > > Aeeciee? PHP mailing list
        > > > Yahoo! Groups Links
        > > >
        > > >
        > > > php_greek-unsubscribe@yahoogroups.com
        > <mailto:php_greek-unsubscribe%40yahoogroups.com>
        > > >
        > > >
        > > >
        > > >
        > > >
        > > >
        > >
        > >
        > > Sofoklis Magoulas
        > >
        > > Web master of Sympan network
        > > Internet and computer support
        > > 37 Mesogeion str, Maroussi
        > > 15126, Athens Greece
        > >
        > >
        > >
        > >
        > >
        > >
        > > __________________________________________________________
        > > ?ncoeii?iea?oa Yahoo!;
        > > Aanae?eaoa oa aii?ecoeeU iciyiaoa (spam); Oi Yahoo! Mail
        > > aeaeYoae oci eaeyoanc aoiao? ?niooao?a eaoU oui aii?ecoee?i
        > > icioiUoui http://login.yahoo.com/config/mail?.intl=gr
        > <http://login.yahoo.com/config/mail?.intl=gr>
        > >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.