php-windows Digest 14 Dec 2001 01:26:29 -0000 Issue 899

Topics (messages 10871 through 10883):

Re: PHP 4.1.0 Win32 Error
        10871 by: John Lim

php warning messages
        10872 by: Martin Lindhe
        10873 by: Pac mon
        10874 by: R'twick Niceorgaw
        10875 by: Martin Lindhe
        10878 by: FPU.WHITES1.FRIENDSPROVIDENT.CO.UK
        10881 by: Martin Lindhe
        10882 by: Phil Driscoll

warnings
        10876 by: overlord.daoist-tiger.com

Win2k, Apache, PHP and Oracle
        10877 by: Tales Bitelo Viegas

Magic Quotes
        10879 by: Asendorf, John

& character in e-mail msg
        10880 by: Mick
        10883 by: Michael Sims

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hi !

This is a bug in PHP 4.1.0 when using persistent connections in a CGI
script.

Turning off persistent connections or switching to ISAPI avoids this
problem.

I have reported it to bugs.php.net.

-- John

============
"Rygars" <[EMAIL PROTECTED]> wrote in message
002d01c183a7$3a002670$e39d5dd4@rygars">news:002d01c183a7$3a002670$e39d5dd4@rygars...
> A message that is almost like yours I encountered with PHP 4.1.0: PHP
> Warning: Unknown persistent list entry type in module shutdown (11) in
> Unknown on line 0. The configuration file was not changed while in upgrade
> process.
> PHP 4.1.0 + IIS 5.0 + Win2K Server + 2Gb RAM + 2XP3 800 + HDD UltraATA 100
>
> ----- Original Message -----
> From: "Yinjing" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, December 13, 2001 7:55 AM
> Subject: [PHP-WIN] PHP 4.1.0 Win32 Error
>
>
> > When I upgrade my PHP from version 4.0.6 to version 4.1.0, I met with a
> > warning message as below:
> > Warning: Unknown persistent list entry type in module shutdown (20) in
> > Unknown on line 0
> > If I come back to the version lower than 4.0.6, such an error will not
> > occur.
> > In all the above version changing process, the configuration file
php.ini
> > remain not changed.
> >
> > Yinjing
> > 2001-12-13
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>


--- End Message ---
--- Begin Message ---
hi all :)

i configured php 4.1.0 to display all errors and errors (E_ALL) and get
warnings (Undefined index: blah) on lines like this:

$username = $_POST["user"]; how come?

(this is not a 4.1.0 specific behaviour, just wondering how i should write
proper code that doesnt display these warnings)

/Martin
--- End Message ---
--- Begin Message ---



>From: Martin Lindhe <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: [PHP-WIN] php warning messages
>Date: Thu, 13 Dec 2001 15:10:33 +0100
>MIME-Version: 1.0
>Received: from [66.150.5.56] by hotmail.com (3.2) with ESMTP id 
>MHotMailBDE2028B006D40043717429605380CA00; Thu, 13 Dec 2001 06:13:32 -0800
>Received: from pb1.pair.com ([216.92.131.4]) by eforward1.enom.com with 
>Microsoft SMTPSVC(5.0.2195.3779); Thu, 13 Dec 2001 06:13:31 -0800
>Received: (qmail 78954 invoked by uid 1010); 13 Dec 2001 14:13:27 -0000
>Received: (qmail 78939 invoked from network); 13 Dec 2001 14:13:25 -0000
>From php-windows-return-10872-professional Thu, 13 Dec 2001 06:13:41 -0800
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>list-help: <mailto:[EMAIL PROTECTED]>
>list-unsubscribe: <mailto:[EMAIL PROTECTED]>
>list-post: <mailto:[EMAIL PROTECTED]>
>Delivered-To: mailing list [EMAIL PROTECTED]
>Message-ID: <831D8A28AF18D5119EAA00E018C5B81C23BC4D@MAIL1>
>Return-Path: 
>[EMAIL PROTECTED]
>X-OriginalArrivalTime: 13 Dec 2001 14:13:31.0602 (UTC) 
>FILETIME=[58099320:01C183E0]
>
>hi all :)
>
>i configured php 4.1.0 to display all errors and errors (E_ALL) and get
>warnings (Undefined index: blah) on lines like this:
>
>$username = $_POST["user"]; how come?
>
>(this is not a 4.1.0 specific behaviour, just wondering how i should write
>proper code that doesnt display these warnings)
>
>/Martin
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

--- End Message ---
--- Begin Message ---
This should work

if (isset($_POST["user"]))
     $username = $_POST["user"];


----- Original Message -----
From: "Martin Lindhe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 13, 2001 9:10 AM
Subject: [PHP-WIN] php warning messages


> hi all :)
>
> i configured php 4.1.0 to display all errors and errors (E_ALL) and get
> warnings (Undefined index: blah) on lines like this:
>
> $username = $_POST["user"]; how come?
>
> (this is not a 4.1.0 specific behaviour, just wondering how i should write
> proper code that doesnt display these warnings)
>
> /Martin
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>

--- End Message ---
--- Begin Message ---
> This should work
> 
> if (isset($_POST["user"]))
>      $username = $_POST["user"];


Cool, it works!

But im questioning the need for this.. why add extra checks on perhaps
200 locations in my code to satisfy a warning message, which points
out a nonexisting bug? i want warnings turned off but i dont want this one
in particular, is there any easy solution to that?

/Martin



> > hi all :)
> >
> > i configured php 4.1.0 to display all errors and errors (E_ALL) and 
> > get warnings (Undefined index: blah) on lines like this:
> >
> > $username = $_POST["user"]; how come?
> >
> > (this is not a 4.1.0 specific behaviour, just wondering how 
> i should 
> > write proper code that doesnt display these warnings)
> >
> > /Martin
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED] To 
> > contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> >
> >
> 
--- End Message ---
--- Begin Message ---
--- Received from FPU.WHITES1 799 3703                      13-12-01 15:25

  -> [EMAIL PROTECTED]
  -> [EMAIL PROTECTED]
  -> [EMAIL PROTECTED]

If memory serves that particular warning comes up as an E_NOTICE type not
an E_WARNING, so you can switch it off without getting rid of the warnings
you really DO want to see.

-Steve

--------------------------------------------------------------------------

From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Date: Thu, 13 Dec 2001 16:17:56 +0100
Subject: RE: [PHP-WIN] php warning messages

> This should work

> if (isset($_POST["user"]))
>      $username = $_POST["user"];


Cool, it works!

But im questioning the need for this.. why add extra checks on perhaps
200 locations in my code to satisfy a warning message, which points
out a nonexisting bug? i want warnings turned off but i dont want this one
in particular, is there any easy solution to that?

/Martin



> > hi all :)
> >
> > i configured php 4.1.0 to display all errors and errors (E_ALL) and
> > get warnings (Undefined index: blah) on lines like this:
> >
> > $username = $_POST["user"]; how come?
> >
> > (this is not a 4.1.0 specific behaviour, just wondering how
> i should
> > write proper code that doesnt display these warnings)
> >
> > /Martin
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED] To
> > contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> >
> >


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

This e-mail may contain confidential information and/or copyright
material. This e-mail is intended for the use of the addressee
only. Any unauthorised use may be unlawful.

If you receive this e-mail by mistake please advise the sender
immediately by using the reply facility in your e-mail software.

Friends Provident Marketing Group consists of the following
companies:

Friends Provident Life and Pensions Limited.
Registered number 4096141.
Friends' Provident Unit Trust Managers Limited.
Registered number 970641
FP Life Assurance Limited.
Registered number 782698
Friends Provident Pensions Limited.
Registered number 475201
Friends Ivory & Sime Managed Pensions Funds Limited.
Registered number 1020044
Registered and Head Office of each of the above companies is at Pixham End,
Dorking, Surrey RH4 1QA.
Registered in England. Incorporated companies limited by shares.
Ivory & Sime Trustlink Limited. Registered number 151198
Registered and Head Office: One Charlotte Square, Edinburgh EH2
4DZ.  Registered in Scotland. Incorporated company limited by
shares.

Companies within this Group transact life assurance, pension,
permanent health, unit trust and investment trust business

All are regulated by the Financial Services Authority.
--- End Message ---
--- Begin Message ---
> On Thursday 13 December 2001 3:17 pm, Martin Lindhe wrote:
> > But im questioning the need for this.. why add extra checks 
> on perhaps 
> > 200 locations in my code to satisfy a warning message, which points 
> > out a nonexisting bug? i want warnings turned off but i 
> dont want this 
> > one in particular, is there any easy solution to that?
> 
> The truth is that you *DO* want to see these errors, because 
> they are a 
> fantastic reminder that your code is full of potential 
> security holes. This data is coming from the user to it 
> cannot be trusted at all. For all 
> user input you *MUST* sanitise the data, along the lines of:
> 
> Check that the user has bothered to send something (with 
> isset) If not, either bomb out or set the variable to a 
> sensible and safe default. Check that the data is safe - e.g. 
> within a specified range of values, 
> containing no dangerous characters etc. etc.
> If the data is unsafe then stop, and ideally, don't give the 
> hacker any clues.

I am doing this already... Oh well.

Anyway, my problem is more like i want exactly this warning turned off
(because im well aware of how i should handle user data)
but i dont want all warnings turned off. I'd like to suggest something
that exist in traditional compilers (not that php is a compiler, but hey ;),
where you can turn on/off specific error/warning checks

/Martin

> 
> All this makes your code bigger and more complicated, but if 
> you don't do it, 
> then it would be foolish to put your code on a public facing server.
> 
> Cheers
> -- 
> Phil Driscoll
> 
--- End Message ---
--- Begin Message ---
On Thursday 13 December 2001 5:19 pm, Martin Lindhe wrote:

> I am doing this already... Oh well.

No you're not! If you were doing it already you would not be seeing the 
undefined index messages.

Sorry :)
-- 
Phil Driscoll
--- End Message ---
--- Begin Message ---
If memory serves that particular warning comes up as an E_NOTICE type not
an E_WARNING, so you can switch it off without getting rid of the warnings
you really DO want to see.

-Steve
--- End Message ---
--- Begin Message ---
Someone have a step-by-step to configure PHP with Oracle in a Apache Server
under Win2k?

Thanks for help

Tales Bitelo Viegas
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
OK, maybe I'm just off my rocker or have something set incorrectly or
something, but...

What's the deal with magic quotes?

you turn it on, and it automatically performs the addslashes for data being
entered into databases, right?  But it doesn't automatically run
stripslashes when you retreive the data.  Is this accurate or am I doing
something wrong?

thanks,

John

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit

--- End Message ---
--- Begin Message ---
I'm trying to dynamically place a 'querystring' link in the body of an
e-mail message but it won't read past the & character in the string.
Tried
'urlencode(), addbackslash(), qoutemeta(), hex values, etc. etc. but
nothing
seems to work.
I know it can be done as I have received plenty of messages that do it!!

Any suggestions??



--- End Message ---
--- Begin Message ---
At 12:19 PM 12/13/2001 -0400, Mick wrote:
>I'm trying to dynamically place a 'querystring' link in the body of an
>e-mail message but it won't read past the & character in the string.
>Tried
>'urlencode(), addbackslash(), qoutemeta(), hex values, etc. etc. but
>nothing
>seems to work.
>I know it can be done as I have received plenty of messages that do it!!
>
>Any suggestions??

Can you post the code that is generating the email?  That might help...

--- End Message ---

Reply via email to