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

Re: [php_greek] array passing ...

Expand Messages
  • Batis
    ... Ayto ousiastika kanei aytomata i xrisi twn sessions. ................................................................. .. Dimitris Batis
    Message 1 of 6 , Jun 25, 2001
      At 10:34 ìì 24/6/2001, you wrote:
      >Er..
      >
      >sigoura den einai kai o pio orthodo3os tropos , alla prosopika tha ekana
      >save ta periexomena tou array se ena file temporarily.
      >
      >iparxei to function $array = file("filename.txt"); to opio metaferei tin
      >kathe grammi tou txt file se kathe cell tou array.
      >
      >to vriskw pretty good auto.
      >
      >George

      Ayto ousiastika kanei aytomata i xrisi twn sessions.


      .................................................................
      .. Dimitris Batis ....................... bat_geor@... ..
      .. http://www.ravencrypt.com ....................................
      .. ICQ: 18204204 .................... Yahoo! ID: deggial_wrath ..
      .................................................................

      "The road to truth is long, and lined the entire way with annoying bastards."
      -- Alexander Jablokov, The place of no shadows
    • Panayotis Vryonis
      ... O kaluteros tropos (an den 8eleis ssessions) einai na xrhsimopoihseis to serialize. P.x. echo
      Message 2 of 6 , Jun 27, 2001
        Batis wrote:

        > At 10:34 μμ 24/6/2001, you wrote:
        >
        >>Er..
        >>
        >>sigoura den einai kai o pio orthodo3os tropos , alla prosopika tha ekana
        >>save ta periexomena tou array se ena file temporarily.


        O kaluteros tropos (an den 8eleis ssessions) einai na xrhsimopoihseis
        to serialize. P.x.

        echo "<input type=hidden name=panos value=\"" .
        urlencode(serialize($myarray)) . "\">" ;

        Sthn epomenh selida 8a exeis:

        $myarray = unserialize(urldecode($panos)) ;

        An malista 8eleis na eisai "sigouros" oti o xrhsths den kanei peiramata
        kai bazei me kapoio tropo dikes tou times, mporeis na exeis:

        Page1.php:
        $secret="exw ena mustiko (Vougiouklakh)" ;
        $ser = serialize($myarray) ;
        $check = md5($ser . $secret) ;
        echo "<input type=hidden name=mydata value=\"" . urlencode($ser) . "\">" ;

        echo "<input type=hidden name=check value=\"" . urlencode($check) . "\">" ;


        Page2.php:

        $secret="exw ena mustiko (Vougiouklakh)" ;
        if ( md5($ser . $mydata))!=$check ) {
        ERROR!!!
        } else {
        $myarray = unserialize($mydata) ;
        }

        Ennoeitai oti to $secret den fanerwnetai *pote* ston xrhsth!

        Panayotis.

        --
        yassou.net: be there before you go!
        http://www.yassou.net/
      • Panayotis Vryonis
        Oooops! Typografiko! Sorry! To exw dior8wsei, einai h grammh pou ksekinanei me ==== ... -- yassou.net: be there before you go! http://www.yassou.net/
        Message 3 of 6 , Jun 27, 2001
          Oooops! Typografiko! Sorry!
          To exw dior8wsei, einai h grammh pou ksekinanei me ====>

          Panayotis Vryonis wrote:

          > O kaluteros tropos (an den 8eleis ssessions) einai na xrhsimopoihseis
          > to serialize. P.x.
          >
          > echo "<input type=hidden name=panos value=\"" .
          > urlencode(serialize($myarray)) . "\">" ;
          >
          > Sthn epomenh selida 8a exeis:
          >
          > $myarray = unserialize(urldecode($panos)) ;
          >
          > An malista 8eleis na eisai "sigouros" oti o xrhsths den kanei peiramata
          > kai bazei me kapoio tropo dikes tou times, mporeis na exeis:
          >
          > Page1.php:
          > $secret="exw ena mustiko (Vougiouklakh)" ;
          > $ser = serialize($myarray) ;
          > $check = md5($ser . $secret) ;
          > echo "<input type=hidden name=mydata value=\"" . urlencode($ser) . "\">" ;
          >
          > echo "<input type=hidden name=check value=\"" . urlencode($check) . "\">" ;
          >
          >
          > Page2.php:
          >
          > $secret="exw ena mustiko (Vougiouklakh)" ;
          ====> if ( md5($mydata . $secret))!=$check ) {
          > ERROR!!!
          > } else {
          > $myarray = unserialize($mydata) ;
          > }
          >
          > Ennoeitai oti to $secret den fanerwnetai *pote* ston xrhsth!
          >
          > Panayotis.
          >
          >



          --
          yassou.net: be there before you go!
          http://www.yassou.net/
        Your message has been successfully submitted and would be delivered to recipients shortly.