PHP warnings

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ross Marrins

    #1

    PHP warnings

    Hi,

    Anyone know how to disable non-fatal PHP warnings from appearing in the
    browser when the PHP file is run? My code is ok I think, the results are as
    expected, but im getting warnings appearing in the browser with the expecte
    outputs.

    Thanks,
    Rossco.


  • Simon

    #2
    Re: PHP warnings

    [color=blue]
    >
    > Anyone know how to disable non-fatal PHP warnings from appearing in the
    > browser when the PHP file is run? My code is ok I think, the results are[/color]
    as[color=blue]
    > expected, but im getting warnings appearing in the browser with the[/color]
    expecte[color=blue]
    > outputs.
    >
    > Thanks,
    > Rossco.
    >[/color]

    error_reporting ( ... )



    And choose what you want to disable.

    Simon.



    Comment

    • Tim Van Wassenhove

      #3
      Re: PHP warnings

      In article <2g1mu7F3ha99U1 @uni-berlin.de>, Simon wrote:[color=blue]
      >[color=green]
      >>
      >> Anyone know how to disable non-fatal PHP warnings from appearing in the
      >> browser when the PHP file is run? My code is ok I think, the results are[/color]
      > as[color=green]
      >> expected, but im getting warnings appearing in the browser with the[/color]
      > expecte[color=green]
      >> outputs.
      >>
      >> Thanks,
      >> Rossco.
      >>[/color]
      >
      > error_reporting ( ... )
      >
      > http://uk.php.net/manual/en/function...-reporting.php
      >
      > And choose what you want to disable.[/color]

      Imho it's better to find out why the warnings are there :)


      --

      Comment

      • Ross Marrins

        #4
        Re: PHP warnings

        > Imho it's better to find out why the warnings are there :)

        Very true, but that is proving rather difficult! If anyone can help, that
        would be great. Im using the mcrypt libraries to encrypt and decrypt strings
        of data, however, whenever i do it, with any key or data size, i get the
        same warnings.

        Warning: mcrypt_create_i v(): Cannot open source device

        Warning: mcrypt_encrypt( ): The IV parameter must be as long as the blocksize

        However, i still get the result I want and that I can use? beats me! :-D


        Comment

        • Tim Van Wassenhove

          #5
          Re: PHP warnings

          In article <c7ge6o$ksj$1@s cotsman.ed.ac.u k>, Ross Marrins wrote:[color=blue][color=green]
          >> Imho it's better to find out why the warnings are there :)[/color]
          >
          > Very true, but that is proving rather difficult! If anyone can help, that
          > would be great. Im using the mcrypt libraries to encrypt and decrypt strings
          > of data, however, whenever i do it, with any key or data size, i get the
          > same warnings.
          >
          > Warning: mcrypt_create_i v(): Cannot open source device
          >
          > Warning: mcrypt_encrypt( ): The IV parameter must be as long as the blocksize[/color]

          http://www.php.net/manual, mcrypt section.

          --

          Comment

          Working...