RE: [PHP] Variable parsing & Safe Mode
| From: | Krznaric Michael | Date: | Wed, 16 Aug 2000 13:35:46 +0000 |
| Subject: | RE: [PHP] Variable parsing & Safe Mode | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-11999@lists.php.net to get a copy of this message | ||
I think all the posted variables are stored in $HTTP_POST_VARS or
$HTTP_GET_VARS. It's an array you can go through for all your variables.
See http://www.php.net/manual/language.variables.predefined.php
With respect to your other problem it seems that they are all using their
own accounts. And by default the owner of the file will assigned to the
file creator. Either use the FTP/RDS option of allaire and everyone use the
same account or see if setting the umask value helps. The umask may do the
trick. You should at least set the group write permissions in the umask if
all the developers belong to the same group. I'm not sure what the policy
is on environment variables with SMB.
Mike
-----Original Message-----
From: dwacks@saleslogix.com [mailto:dwacks@saleslogix.com]
Sent: Wednesday, August 16, 2000 9:26 AM
To: php-general@lists.php.net
Subject: [PHP] Variable parsing & Safe Mode
Hi,
I was wondering if anyone has a PHP solution for this problem.
1. I need to be able to capture all variables passed from a form. The
problem
is that I may not know all the variables. If known, I can access the
variables with a $varname. I am trying to find a way to do this if the
variable is unknown. I do not want to use PERL (for this solution) although
I know it can be done.
2. We use RedHat 6.2, MySQL, PHP 3.x and have 5 developers. Each logs in
under their own name. They are part of the same group (website).
All of the websites are stored under the /www/sitename directory. All pages
are owned by Webdude and group .website
If a developer modifies an existing page, there is not a problem.
However, if they create a new page it sets the ownership to them and then
(seemingly randomly) when trying to access the page we get a safe mode
violation.
Note: most access the pages via Homesite connected thru a SMB connection.
e.g. the linux box has an SMB point called www, the developers connect (via
windows 2000/NT) and map the drive. All changes are using Homesite.
To fix the problem, we have to set the owner, group, and permissions. Then
it is fine.
Any ideas?
Thanks,
Dave
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net