RE: Error settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Dillon, John" <JDillon@cantor.co.uk>

> 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.

"<b>Notice</b>:  Undefined variable:  ID in <b>c:\program files\apache
group\apache\htdocs\apics3.php</b> on line <b>11</b><br />"

My php.ini contains: 
<quote>
; This directive tells PHP whether to declare the argv&argc 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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux