php-install Digest 16 Jan 2002 12:12:53 -0000 Issue 652
Topics (messages 5590 through 5595):
PHP & Windows problems: "Warning: Undefined variables..."
5590 by: Robert Abbate
5591 by: Rasmus Lerdorf
5593 by: Christ Christoph (Erste)
5594 by: Phil Driscoll
using PHP as ROOT
5592 by: Robert Abbate
5595 by: EdwardSPL.ita.org.mo
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 ---
What's up with the Windows versions for PHP? They keep saying that all
variables must be defined instead of allowing them to be defined when
necessary. Is there a way to disable this warning in Windows setup?
Thanks
Robert A,.
--- End Message ---
--- Begin Message ---
Fix your error_reporting level in your php.ini file
On Tue, 15 Jan 2002, Robert Abbate wrote:
> What's up with the Windows versions for PHP? They keep saying that all
> variables must be defined instead of allowing them to be defined when
> necessary. Is there a way to disable this warning in Windows setup?
>
> Thanks
> Robert A,.
>
>
>
> --
> PHP Install 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 ---
dear robert,
use php.ini-dist and not php.ini-recommended, then you have backwards
compatiblity, but this disables some of the good and new features....
But if you want to use your current setup, add simply following code for
each required but not defined variable:
if (!isset($yourvariable)) {
$yourvariable = "";
}
alternately you could also call the script with:
scriptname.php3?yourvariable=value
Then the variable is defined and no error messages occur
regards
Christoph
-----Original Message-----
From: Robert Abbate [mailto:[EMAIL PROTECTED]]
Sent: 16. ledna 2002 4:04
To: [EMAIL PROTECTED]
Subject: [PHP-INST] PHP & Windows problems: "Warning: Undefined
variables..."
What's up with the Windows versions for PHP? They keep saying that all
variables must be defined instead of allowing them to be defined when
necessary. Is there a way to disable this warning in Windows setup?
Thanks
Robert A,.
--
PHP Install 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 ---
On Wednesday 16 January 2002 3:04 am, Robert Abbate wrote:
> What's up with the Windows versions for PHP? They keep saying that all
> variables must be defined instead of allowing them to be defined when
> necessary. Is there a way to disable this warning in Windows setup?
Like all versions of PHP, it's just telling you that the variables should be
defined before you use them. You can get rid of the warning messages by
changing the error_reporting level in php.ini, BUT you should only do this on
a production machine, not your development machine. Each of those warning
messages flags up a potential security hole in your code. Your best bet is to
fix the code!
Cheers
--
Phil Driscoll
--- End Message ---
--- Begin Message ---
Hi. I am trying to have PHP do things as a ROOT user. Like: make files,
change permissions of files etc...
however, I cannot do it! Even if I give the php scripts root ownership, it
still says that apache is the owner of the files, and hence, I can't do
anything with them.
Does anyone have any insight?
Thanks,
Robert A
--- End Message ---
--- Begin Message ---
Robert Abbate wrote:
>
> Hi. I am trying to have PHP do things as a ROOT user. Like: make files,
> change permissions of files etc...
>
> however, I cannot do it! Even if I give the php scripts root ownership, it
> still says that apache is the owner of the files, and hence, I can't do
> anything with them.
>
> Does anyone have any insight?
>
> Thanks,
> Robert A
Hello,
What thing do you want to do ?
Edward.
--- End Message ---