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

Re: php security

Expand Messages
  • Pavlos Stamboulides
    H leitourgia Output buffering mporei na xrisimeysei gia na entopiseis ena error message oso bary kai an einai ayto (diladi akoma kai parse error). Sto .ini
    Message 1 of 4 , Feb 17, 2004
    View Source
    • 0 Attachment
      H leitourgia Output buffering mporei na xrisimeysei gia na entopiseis
      ena error message oso bary kai an einai ayto (diladi akoma kai parse
      error).

      Sto .ini mporeis na allakseis to ti emfanizetai prin kai meta apo to
      minima la8ous, opote i zwi sou ginetai pio eykoli ap' to na psaxneis
      me regular expressions.

      Akolou8ei kwdikas poy to kanei.
      =====================================================
      ob_start("checkerrors");
      ini_set('error_prepend_string', '<font color=ff0000><MyError>');
      ini_set('error_append_string', '</MyError></font>');

      error_reporting (E_ERROR | E_WARNING | E_PARSE | E_NOTICE);

      set_error_handler('UserError');
      =====================================================
      Pleon exeis dyo synartiseis, h mia epeksergazetai ta apla la8i pou
      den stamatane ton kwdika (me debug_backtrace() kai alla kala), enw h
      checkerrors pianei akoma kai parse errors (fatal errors) alla kai ta
      apla la8i pou exoun analy8ei idi.

      Malista xrisimopoiwntas mia kali free routina apo enan germano, exw
      frontisei wste na mou stelnei kai ayto pou 8a edeixne i selida + OLES
      tis metablites kai ta objects ti stigmi tou la8ous, se ena email.

      Symfwna me to manual, i ob synartisi (checkerrors sto paradeigma)
      epistrefei ti selida pou 8a dei o xristis (Sygnwmi alla kati etyxe,
      oi diaxeiristes exoun eidopoii8ei gia to la8os, dokimaste ksana...).
      An den brei la8os prepei na epistrefei ayto pou pire.

      Elpizw na se boi8aei....
      Pavlos

      --- In php_greek@yahoogroups.com, Alaios <alaios@y...> wrote:
      > Kalispera yparxei tropos se periptosi poy symbei
      > kapoio sfalma se mia php selida eite na min
      > emfanizetai katholou to lathos eite na emfanizetai ena
      > diko mou minima?
      > To leo ayto giati eida kapou oti otan kaneis mia php
      > selida na "skasei" mporeis na pareis stoixeia pou den
      > tha thela na dei kapoios.
      >
      > __________________________________
      > Do you Yahoo!?
      > Yahoo! Finance: Get your refund fast by filing online.
      > http://taxes.yahoo.com/filing.html
    • Dimitrios Botsis
      Kai bebaiws, anti na ftiakseis 2 mixanimata, mporeis panta na exeis 2 arxeia php.ini ena gia ka8e periptwsi, ena energo ki ena metonomasmeno p.x. se _php.ini
      Message 2 of 4 , Feb 17, 2004
      View Source
      • 0 Attachment
        Kai bebaiws, anti na ftiakseis 2 mixanimata, mporeis panta na
        exeis 2 arxeia php.ini ena gia ka8e periptwsi, ena energo ki
        ena metonomasmeno p.x. se _php.ini kai m'ena aplo script
        na energopoieis opoio ini 8eleis kata periptwsi
        Dimtris Botsis
        http://www.dbotsis.com

        ----- Original Message -----
        From: "Dimitris Glezos" <glezos@...>
        To: <php_greek@yahoogroups.com>
        Sent: Tuesday, February 17, 2004 2:58 AM
        Subject: Re: [php_greek] php security


        >
        > Alaios wrote:
        > > Kalispera yparxei tropos se periptosi poy symbei
        > > kapoio sfalma se mia php selida eite na min
        > > emfanizetai katholou to lathos eite na emfanizetai ena
        > > diko mou minima?
        > > To leo ayto giati eida kapou oti otan kaneis mia php
        > > selida na "skasei" mporeis na pareis stoixeia pou den
        > > tha thela na dei kapoios.
        >
        >
        > Μπορείς να αλλάξεις το επίπεδο των σφαλμάτων που θέλεις να σου
        > εμφανίζεται από το αρχείο php.ini, διάβασε το php manual, λέει όλα τα
        > σχετικά.
        >
        > Το καλύτερο που έχεις να κάνεις είναι να "σηκώσεις" ένα developing
        > μηχάνημα που θα σου πετάει όλα τα errors ΚΑΙ τα notices και ένα
        > production μηχάνημα που δε θα πετάει τίποτα.
        >
        > Διάβασε και το σχετικό με security κομμάτι του manual.
        >
        >
        > --
        > Dimitris Glezos
        > Jabber: subbie@..., PGP: 0xA5A04C3B
        > http://dimitris.glezos.com/
        >
        > "He who gives up functionality for ease of use
        > loses both and deserves neither." (Anonymous)
        > --
        >
        >
        >
        >
        > --
        > Ελληνική PHP mailing list
        > Yahoo! Groups Links
        >
        >
        >
        >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.