Re: [PHP] Hide Warnings

2006-11-18 Thread Stein Ivar Johnsen
Thanks to all that replied to my message.
I have managed to fix the problem with help from Tom Chubb, ThanX Tom!
I made my own php.ini file with the keywords I needed, and uploaded it to 
the same dir as my script. Now it works fine

-- 
Regards
sijo
http://www.dyg.no



Tom Chubb [EMAIL PROTECTED] skrev i melding 
news:[EMAIL PROTECTED]
 Choose one of the following, but if you are getting warnings,
 something is wrong and you should address it.

 ?php

 // Turn off all error reporting
 error_reporting(0);

 // Report simple running errors
 error_reporting(E_ERROR | E_WARNING | E_PARSE);

 // Reporting E_NOTICE can be good too (to report uninitialized
 // variables or catch variable name misspellings ...)
 error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);

 // Report all errors except E_NOTICE
 // This is the default value set in php.ini
 error_reporting(E_ALL ^ E_NOTICE);

 // Report all PHP errors (bitwise 63 may be used in PHP 3)
 error_reporting(E_ALL);

 // Same as error_reporting(E_ALL);
 ini_set('error_reporting', E_ALL);

 ?

 On 16/11/06, Stein Ivar Johnsen [EMAIL PROTECTED] wrote:
 Hi..

 How can I hide Warning messages so they are not shown on screen..:
 Warning: Call-time pass-by-reference has been deprecated - argument 
 passed
 by value; If you would like to pass it by reference, modify the 
 declaration
 of [runtime function name](). If you would like to enable call-time
 pass-by-reference, you can set allow_call_time_pass_reference to true in
 your INI file. However, future versions may not support this any longer. 
 in
 /home/users/kivugog/Blog/index.php on line 69

 I will appreciate all help on this...

 --
 Regards
 sijo
 http://www.dyg.no

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Hide Warnings

2006-11-17 Thread Stein Ivar Johnsen
Hi..

How can I hide Warning messages so they are not shown on screen..:
Warning: Call-time pass-by-reference has been deprecated - argument passed 
by value; If you would like to pass it by reference, modify the declaration 
of [runtime function name](). If you would like to enable call-time 
pass-by-reference, you can set allow_call_time_pass_reference to true in 
your INI file. However, future versions may not support this any longer. in 
/home/users/kivugog/Blog/index.php on line 69

I will appreciate all help on this...

-- 
Regards
sijo
http://www.dyg.no

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Hide Warnings

2006-11-17 Thread Tom Chubb

Choose one of the following, but if you are getting warnings,
something is wrong and you should address it.

?php

// Turn off all error reporting
error_reporting(0);

// Report simple running errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);

// Reporting E_NOTICE can be good too (to report uninitialized
// variables or catch variable name misspellings ...)
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);

// Report all errors except E_NOTICE
// This is the default value set in php.ini
error_reporting(E_ALL ^ E_NOTICE);

// Report all PHP errors (bitwise 63 may be used in PHP 3)
error_reporting(E_ALL);

// Same as error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);

?

On 16/11/06, Stein Ivar Johnsen [EMAIL PROTECTED] wrote:

Hi..

How can I hide Warning messages so they are not shown on screen..:
Warning: Call-time pass-by-reference has been deprecated - argument passed
by value; If you would like to pass it by reference, modify the declaration
of [runtime function name](). If you would like to enable call-time
pass-by-reference, you can set allow_call_time_pass_reference to true in
your INI file. However, future versions may not support this any longer. in
/home/users/kivugog/Blog/index.php on line 69

I will appreciate all help on this...

--
Regards
sijo
http://www.dyg.no

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Hide Warnings

2006-11-17 Thread clive

Stein Ivar Johnsen wrote:

Hi..

How can I hide Warning messages so they are not shown on screen..:


look in your php.ini file and set error_reporting to an appropriate value

or

set display_errors to off

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Hide Warnings

2006-11-17 Thread Stein Ivar Johnsen
I have tried error_reporting(0); but this does not help. The program is 
still writing warnings to screen.
My ISP is using PHP Version 4.3.10 if that is any help.
I have no access to the PHP.INI file.

Any more ideas, please?
-- 
Regards
sijo
http://www.dyg.no



Tom Chubb [EMAIL PROTECTED] skrev i melding 
news:[EMAIL PROTECTED]
 Choose one of the following, but if you are getting warnings,
 something is wrong and you should address it.

 ?php

 // Turn off all error reporting
 error_reporting(0);

 // Report simple running errors
 error_reporting(E_ERROR | E_WARNING | E_PARSE);

 // Reporting E_NOTICE can be good too (to report uninitialized
 // variables or catch variable name misspellings ...)
 error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);

 // Report all errors except E_NOTICE
 // This is the default value set in php.ini
 error_reporting(E_ALL ^ E_NOTICE);

 // Report all PHP errors (bitwise 63 may be used in PHP 3)
 error_reporting(E_ALL);

 // Same as error_reporting(E_ALL);
 ini_set('error_reporting', E_ALL);

 ?

 On 16/11/06, Stein Ivar Johnsen [EMAIL PROTECTED] wrote:
 Hi..

 How can I hide Warning messages so they are not shown on screen..:
 Warning: Call-time pass-by-reference has been deprecated - argument 
 passed
 by value; If you would like to pass it by reference, modify the 
 declaration
 of [runtime function name](). If you would like to enable call-time
 pass-by-reference, you can set allow_call_time_pass_reference to true in
 your INI file. However, future versions may not support this any longer. 
 in
 /home/users/kivugog/Blog/index.php on line 69

 I will appreciate all help on this...

 --
 Regards
 sijo
 http://www.dyg.no

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Hide Warnings

2006-11-17 Thread Stein Ivar Johnsen
Sorry, I have no access to my ISP's php.ini file. I need to turn off 
warnings in the php script code?

-- 
Regards
sijo
http://www.dyg.no



clive [EMAIL PROTECTED] skrev i melding 
news:[EMAIL PROTECTED]
 Stein Ivar Johnsen wrote:
 Hi..

 How can I hide Warning messages so they are not shown on screen..:

 look in your php.ini file and set error_reporting to an appropriate value

 or

 set display_errors to off 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Hide Warnings

2006-11-17 Thread clive

Stein Ivar Johnsen wrote:
I have tried error_reporting(0); but this does not help. The program is 
still writing warnings to screen.

My ISP is using PHP Version 4.3.10 if that is any help.
I have no access to the PHP.INI file.

Any more ideas, please?

fix the code thats generating the errors?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Hide Warnings

2006-11-17 Thread Kevin Waterson
This one time, at band camp, Stein Ivar Johnsen [EMAIL PROTECTED] wrote:

 Hi..
 
 How can I hide Warning messages so they are not shown on screen..:

code properly...


-- 
Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Hide Warnings

2006-11-17 Thread Eric Butera

On 11/17/06, Stein Ivar Johnsen [EMAIL PROTECTED] wrote:

Sorry, I have no access to my ISP's php.ini file. I need to turn off
warnings in the php script code?

--
Regards
sijo
http://www.dyg.no



clive [EMAIL PROTECTED] skrev i melding
news:[EMAIL PROTECTED]
 Stein Ivar Johnsen wrote:
 Hi..

 How can I hide Warning messages so they are not shown on screen..:

 look in your php.ini file and set error_reporting to an appropriate value

 or

 set display_errors to off

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Maybe you know this because you want warnings off, but I'll say it
anyways.  Your host is doing a disservice to you with display_warnings
on.  When you have an error in your script it shows potential bad
people the complete path to your script and all sorts of other data
allowing them to tamper more easily.

Another great example is the mysql_query() or die(here is my complete
sql statement please tamper with it).  I would encourage you to plead
with your host to turn off display_errors and allow logging them.
This way you can handle your errors gracefully with
set_error_handler() without showing the world errors that can be
exploited.

I'm not sure if it is possible but maybe it can be turned off in a
htaccess file or within the virtual itself?

Also you should listen to everyone else on fixing your code.  My rant
above is based on the fact that just because you wrote and tested
something to work properly today doesn't mean a change tomorrow that
could potentially cause errors throwing more sensitive data to the end
user.  Maybe if you don't know how to fix the warning you received you
could post the code that is giving you a problem.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php