[PHP-DB] Error settings

2003-10-21 Thread Dillon, John
How do I get rid of the undefined variable errors I get on a new (default)
set up of Apache 1.3.28/PHP4.3.2 (without re-writing the code).  It works on
the internet on my host providers server but I am running this on localhost.
I also get undefined offset error.

Regards,

John
































   http://www.cantor.com
CONFIDENTIAL: This e-mail, including its contents and attachments, if any, are 
confidential. If you are not the named recipient please notify the sender and 
immediately delete it. You may not disseminate, distribute, or forward this e-mail 
message or disclose its contents to anybody else. Copyright and any other intellectual 
property rights in its contents are the sole property of Cantor Fitzgerald.
 E-mail transmission cannot be guaranteed to be secure or error-free. The sender 
therefore does not accept liability for any errors or omissions in the contents of 
this message which arise as a result of e-mail transmission.  If verification is 
required please request a hard-copy version.
 Although we routinely screen for viruses, addressees should check this e-mail and 
any attachments for viruses. We make no representation or warranty as to the absence 
of viruses in this e-mail or any attachments. Please note that to ensure regulatory 
compliance and for the protection of our customers and business, we may monitor and 
read e-mails sent to and from our server(s). 

For further important information, please read the  Important Legal Information and 
Legal Statement at http://www.cantor.com/legal_information.html

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



Re: [PHP-DB] Error settings

2003-10-21 Thread CPT John W. Holmes
From: Dillon, John [EMAIL PROTECTED]

 How do I get rid of the undefined variable errors I get on a new (default)
 set up of Apache 1.3.28/PHP4.3.2 (without re-writing the code).  It works
on
 the internet on my host providers server but I am running this on
localhost.
 I also get undefined offset error.

Adjust your error_reporting level in php.ini or use the error_reporting()
function.

---John Holmes...






























http://www.cantor.com
CONFIDENTIAL: This e-mail, including its contents and attachments, if any,
are confidential. If you are not the named recipient please notify the
sender and immediately delete it. You may not disseminate, distribute, or
forward this e-mail message or disclose its contents to anybody else.
Copyright and any other intellectual property rights in its contents are the
sole property of Cantor Fitzgerald.
 E-mail transmission cannot be guaranteed to be secure or error-free.
The sender therefore does not accept liability for any errors or omissions
in the contents of this message which arise as a result of e-mail
transmission.  If verification is required please request a hard-copy
version.
 Although we routinely screen for viruses, addressees should check this
e-mail and any attachments for viruses. We make no representation or
warranty as to the absence of viruses in this e-mail or any attachments.
Please note that to ensure regulatory compliance and for the protection of
our customers and business, we may monitor and read e-mails sent to and from
our server(s).

For further important information, please read the  Important Legal
Information and Legal Statement at
http://www.cantor.com/legal_information.html

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

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



RE: [PHP-DB] Error settings

2003-10-21 Thread Dillon, John
From: Dillon, John [EMAIL PROTECTED]

 How do I get rid of the undefined variable errors I get on a new (default)
 set up of Apache 1.3.28/PHP4.3.2 (without re-writing the code).  It works
on
 the internet on my host providers server but I am running this on
localhost.
 I also get undefined offset error.

Adjust your error_reporting level in php.ini or use the error_reporting()
function.

---John Holmes...


Hm. Adjusted error_reporting to none.  Why would I still get: 

Forbidden
You don't have permission to access /method=post on this server.


Apache/1.3.28 Server at www.somenet.com Port 80

same if I use get.

And if I use the address: http://localhost/apics3.php?ID=349 it complains
about undefined variable, ID.

bNotice/b:  Undefined variable:  ID in bc:\program files\apache
group\apache\htdocs\apics3.php/b on line b11/bbr /

My php.ini contains: 
quote
; This directive tells PHP whether to declare the argvargc variables (that
; would contain the GET information).  If you don't use these variables, you
; should turn it off for increased performance.
register_argc_argv = On
unquote

My Apache httpd file has:
quote
   LoadModule php4_module c:/PHP/php-4.3.2-Win32/sapi/php4apache.dll
   AddModule mod_php4.c
   AddType application/x-httpd-php .php
unquote

Sounds like I've adjusted the wrong file.  I have only one php.ini file in
c:\winnt (apart from the one in c:\php\backup), the one in
c:/PHP/php-4.3.2-Win32 is called php.ini-dist and php.ini-recommended.  I
haven't touched these.  Should I?

Thanks,

John























http://www.cantor.com
CONFIDENTIAL: This e-mail, including its contents and attachments, if any,
are confidential. If you are not the named recipient please notify the
sender and immediately delete it. You may not disseminate, distribute, or
forward this e-mail message or disclose its contents to anybody else.
Copyright and any other intellectual property rights in its contents are the
sole property of Cantor Fitzgerald.
 E-mail transmission cannot be guaranteed to be secure or error-free.
The sender therefore does not accept liability for any errors or omissions
in the contents of this message which arise as a result of e-mail
transmission.  If verification is required please request a hard-copy
version.
 Although we routinely screen for viruses, addressees should check this
e-mail and any attachments for viruses. We make no representation or
warranty as to the absence of viruses in this e-mail or any attachments.
Please note that to ensure regulatory compliance and for the protection of
our customers and business, we may monitor and read e-mails sent to and from
our server(s).

For further important information, please read the  Important Legal
Information and Legal Statement at
http://www.cantor.com/legal_information.html

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

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



Re: [PHP-DB] Error settings

2003-10-21 Thread CPT John W. Holmes
From: Dillon, John [EMAIL PROTECTED]
 Hm. Adjusted error_reporting to none.  Why would I still get:

 Forbidden
 You don't have permission to access /method=post on this server.
 --
--
 
 Apache/1.3.28 Server at www.somenet.com Port 80

Nothing to do with PHP. Seems like your server will not allow you to use the
POST method...

 And if I use the address: http://localhost/apics3.php?ID=349 it complains
 about undefined variable, ID.

 bNotice/b:  Undefined variable:  ID in bc:\program files\apache
 group\apache\htdocs\apics3.php/b on line b11/bbr /

Because of your error_reporting level. You say you changed it, but do the
changes reflect in a phpinfo() page?

 My php.ini contains:
 quote
 ; This directive tells PHP whether to declare the argvargc variables
(that
 ; would contain the GET information).  If you don't use these variables,
you
 ; should turn it off for increased performance.
 register_argc_argv = On
 unquote

Nothing to do with error reporting. This is mainly used for the command
line.

 Sounds like I've adjusted the wrong file.  I have only one php.ini file in
 c:\winnt (apart from the one in c:\php\backup), the one in
 c:/PHP/php-4.3.2-Win32 is called php.ini-dist and php.ini-recommended.  I
 haven't touched these.  Should I?

You should have copied one of those files to create your initial php.ini.
Take a look at the output of phpinfo() and it'll tell you where PHP is
reading it's php.ini file in the first block. If a path is shown, but no
php.ini file at the end, that's where PHP is expecting to find the php.ini
file, but it's not there. If a full path to php.ini is shown, then that's
the file you should be editing.

Finally, and the key to all of this, I think: restart your web server after
you make a change to php.ini.

---John Holmes...

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