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

Re: ÈÝìá: ÁÐ: ÈÝìá: [php_greek ] register globals: Off (new!)

Expand Messages
  • spacerom_online
    Euxaristo poly olous gia tin grigori apantisi! Lew na xrisimopoiso to .htaccess arxeio. Tha prepei omos na periexei mono mia grammi, diladi mono to
    Message 1 of 3 , Jul 4, 2006
      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, 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@... Ýãñáøå:
      >
      > > "..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
      > >
      > >
      > >
      > >
      > >
      > > -----Áñ÷éêü ìÞíõìá-----
      > > Áðü: "php_greek@yahoogroups.com"
      > > <php_greek@yahoogroups.com> åê ìÝñïõò "Sofoklis
      > > Magoulas" <sympan@...>
      > > ÁðïóôïëÞ: Ôñßôç, 4 Éïõëßïõ 2006 6:20 ðì
      > > Ðñïò: "php_greek@yahoogroups.com"
      > > <php_greek@yahoogroups.com>
      > > ÈÝìá: ÈÝìá: [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@...>
      > > Ýãñáøå:
      > >
      > > > 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></table><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
      > >
      > >
      > >
      > >
      > >
      > >
      > >
      > ___________________________________________________________
      > >
      > > ×ñçóéìïðïéåßôå Yahoo!;
      > > ÂáñåèÞêáôå ôá åíï÷ëçôéêÜ ìçíýìáôá (spam); Ôï Yahoo!
      > > Mail
      > > äéáèÝôåé ôçí êáëýôåñç äõíáôÞ ðñïóôáóßá êáôÜ ôùí
      > > åíï÷ëçôéêþí
      > > ìçíõìÜôùí
      > > http://login.yahoo.com/config/mail?.intl=gr
      > >
      > >
      > >
      > >
      > > --
      > > ÅëëçíéêÞ 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
      > >
      > --------------------------------------------------------------------~->
      > >
      > >
      > > --
      > > ÅëëçíéêÞ PHP mailing list
      > > Yahoo! Groups Links
      > >
      > >
      > > php_greek-unsubscribe@yahoogroups.com
      > >
      > >
      > >
      > >
      > >
      > >
      >
      >
      > Sofoklis Magoulas
      >
      > Web master of Sympan network
      > Internet and computer support
      > 37 Mesogeion str, Maroussi
      > 15126, Athens Greece
      >
      >
      >
      >
      >
      >
      > ___________________________________________________________
      > ×ñçóéìïðïéåßôå Yahoo!;
      > ÂáñåèÞêáôå ôá åíï÷ëçôéêÜ ìçíýìáôá (spam); Ôï Yahoo! Mail
      > äéáèÝôåé ôçí êáëýôåñç äõíáôÞ ðñïóôáóßá êáôÜ ôùí åíï÷ëçôéêþí
      > ìçíõìÜôùí http://login.yahoo.com/config/mail?.intl=gr
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.