# suggetion: Webfronted for PHP itself

- Thread: https://externals.io/message/48644
- Original archive: https://news-web.php.net/php.internals/48644
- Started by Alexander Schunk on 2010-06-04T06:28:05+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #48644 — Alexander Schunk — 2010-06-04T06:28:05+00:00

URL: https://externals.io/message/48644#48644

Hello,

i am working on a webfrontend for php itself.

For example i have a little script that writes ini settings into ini.php.

I am using normal vars to write the variables into the ini file.

yours sincerly

Alexander Schunk

---

## #48656 — iftecan NAzeem — 2010-06-05T07:55:14+00:00

URL: https://externals.io/message/48644#48656 · In reply to: #48644

Hello Alexander,

Could you elaborate on how this would be useful for developer. I would also
like to know the security implications of exposing ini variables.



> Hello,
>
> i am working on a webfrontend for php itself.
>
> For example i have a little script that writes ini settings into ini.php.
>
> I am using normal vars to write the variables into the ini file.
>
> yours sincerly
>
> Alexander Schunk
>
> --
> 
> 
>
>


-- 
-- 
Thanks and Best Regards,
Iftikhan Nazeem
Mob  : +971 050 - 7382623

---

## #48658 — Tomas Kuliavas — 2010-06-05T10:21:27+00:00

URL: https://externals.io/message/48644#48658 · In reply to: #48656

Such software could allow webmaster to reconfigure PHP without terminal
connection. Although some PHP configuration variables are not global and
can be changed without modifying global PHP settings. Zend sells software
which allows to change global PHP configuration in web browser (among
other features)

2010.06.05 10:55 iftecan NAzeem rašė:
> Hello Alexander,
>
> Could you elaborate on how this would be useful for developer. I would
> also
> like to know the security implications of exposing ini variables.
>
> On Fri, Jun 4, 2010 at 10:28 AM, Alexander Schunk <aschunk@gmail.com>
> wrote:
>
> > […]

---

## #48662 — Tomas Kuliavas — 2010-06-05T20:40:56+00:00

URL: https://externals.io/message/48644#48662

2010.06.05 21:18 Mike Willbanks rašė:
> Tomas,
>
> Such software could allow webmaster to reconfigure PHP without terminal
> > […]
> I believe you are talking about Zend Server (which the community edition
> does this as well).  Modifying PHP settings on the fly I do not believe
> should be a core aspect of the language (or even a focus).  Not only do
> you
> need to change the ini settings, but then you also need to restart the web
> server (if you are in that mode).
>
> Someone could easily write this type of functionality into a user land
> script and create a locked down area that controls the execution of
> changing
> the run time.  This could be as easy as utilizing parse_ini_file and then
> rebuilding it after setting the variables.  Once you have completed that,
> write out the file and restart your web processes.

Actually I was thinking about Zend Platform, but according documentation
Zend Server has similar options.

Please keep conversation on the list. I don't need cc:.

-- 
Tomas

---

## #48663 — Tomas Kuliavas — 2010-06-05T20:41:25+00:00

URL: https://externals.io/message/48644#48663

You will have more problems than that if you ask generic questions.
Writing file is easy task. It is unclear, if you can't create new file
with desired PHP configuration, or you can't overwrite current php.ini,
because it is owned by other user, or you write file and don't see your
configuration changes, because you forgot to restart web service.

There are many ways to setup PHP. Which variation are you using for
debugging? DSO, ISAPI or CGI?

When I talked about commercial Zend product, I was thinking about Zend
Platform. Zend Server has free version and according to documentation can
also change PHP onfiguration. Why are you wasting your time creating
something that is already there?

Please keep conversation on mailing list (i don't need cc: to my email
address) and note that internals@lists.php.net is not related to your
problem. In most of the cases webmasters don't need write access to
php.ini. Hostmasters must setup things correctly and webmasters can use
.htaccess, local php.ini or change configuration in the script or code
things in the way which is portable and works no matter how fubared
php.ini is.

2010.06.05 15:54 Alexander Schunk rašė:
> That was my inital goal.
>
> I wanted to controll php by a webfronted.
>
> I currently have a problem with writing php vars into the ini file.
>
> Many thanks for your input concerning the security problem.
>
> Alexander
>
> On Sat, Jun 5, 2010 at 12:21 PM, Tomas Kuliavas
> <tokul@users.sourceforge.net> wrote:
> > […]
connection. Although some PHP configuration variables are not global
and
> > […]
other features)
> > […]
also
> > […]
Fri, Jun 4, 2010 at 10:28 AM, Alexander Schunk <aschunk@gmail.com>
wrote:
> > […]
ini.php.
> > […]
yours sincerly
> > […]
