470,848 Members | 1,203 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,848 developers. It's quick & easy.

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.
Jul 17 '05 #1
4 5869

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.


error_reporting( ... )

http://uk.php.net/manual/en/function...-reporting.php

And choose what you want to disable.

Simon.
http://www.schoolsofafrica.com/
Jul 17 '05 #2
In article <2g************@uni-berlin.de>, Simon wrote:

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.


error_reporting( ... )

http://uk.php.net/manual/en/function...-reporting.php

And choose what you want to disable.


Imho it's better to find out why the warnings are there :)
--
http://home.mysth.be/~timvw
Jul 17 '05 #3
> 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_iv(): 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
Jul 17 '05 #4
In article <c7**********@scotsman.ed.ac.uk>, Ross Marrins wrote:
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_iv(): Cannot open source device

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


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

--
http://home.mysth.be/~timvw
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Kylotan | last post: by
3 posts views Thread by Terry Richards | last post: by
30 posts views Thread by prasanna | last post: by
22 posts views Thread by John Fisher | last post: by
6 posts views Thread by pete142 | last post: by
3 posts views Thread by gil | last post: by
1 post views Thread by billiejoex | last post: by
1 post views Thread by Robert Singer | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.