Hello,
I'm writing php extension to read php.ini settings from independent
location,
particularly some object or relational database, or, sleepycat db.
PHP ini development concept seems pretty straightforward to me,
anyway I can't figure out how to make a php.ini setting to be "admin
value",
e.g. not changeable with ini_set() function from within php script,
whatever
access type its definition has.
I looked into apache mod_php5 module source, to find out how
php_admin_value/flag is implemented, and it seems there's special
handler, different than "normal" variable change handler.
Type of php.ini variable access is controlled via third argument
to PHP_INI_ENTRY() macro, anyway php_admin_value implementation
overrides it somehow, I mean no matter what kind of access was
defined with the variable definition in php source, if the value
is set with php_admin_value , it is not changeable later, and
this is exactly what I want.
There's also a modification handler for php.ini variables, but
obviously this is also variable-definition setting, I mean, if
e.g. modfication handler for mysql.port is onUpdateString,
I cannot in my extension change it to OnOtherUpdateSt ringProcedure,
as mysql extension's php ini variables are already
defined in mysql extension source.
Anyway with mod_php php_admin_value/flag does
it somehow (make php ini variable unchangeable).
To be exact - I want to set any php.ini variable inside extension
code - and this is something I know how to do it -
and mark it to be "admin value" (not changeable later) - and this
is something I cannot figure out.
I actually use php as cgi/fcgi, and since I noticed, that
command-line specified variable (-d switch) is not automatically
marked as "admin value" (works according with variable access type).
The only one advanced php api information I could find was "Extending
and Embedding PHP" book,
written by Sara Golemon, anyway php.ini chapter does not say anything
about
overriding original access type setting.
Regards,
DT <pw****@jewish. org.pl> 6 2547
"DT" <pw****@jewish. org.plwrote in message
news:a0******** *************** ***********@c30 g2000hsa.google groups.com...
Hello,
I'm writing php extension to read php.ini settings from independent
location,
particularly some object or relational database, or, sleepycat db.
PHP ini development concept seems pretty straightforward to me,
anyway I can't figure out how to make a php.ini setting to be "admin
value",
e.g. not changeable with ini_set() function from within php script,
whatever
access type its definition has.
That has to be done in the installation - can't be done through php code.
You'll have to know a lot about compiling, *nix security and such to get it
right.
I looked into apache mod_php5 module source, to find out how
php_admin_value/flag is implemented, and it seems there's special
handler, different than "normal" variable change handler.
Type of php.ini variable access is controlled via third argument
to PHP_INI_ENTRY() macro, anyway php_admin_value implementation
overrides it somehow, I mean no matter what kind of access was
defined with the variable definition in php source, if the value
is set with php_admin_value , it is not changeable later, and
this is exactly what I want.
There's also a modification handler for php.ini variables, but
obviously this is also variable-definition setting, I mean, if
e.g. modfication handler for mysql.port is onUpdateString,
I cannot in my extension change it to OnOtherUpdateSt ringProcedure,
as mysql extension's php ini variables are already
defined in mysql extension source.
Anyway with mod_php php_admin_value/flag does
it somehow (make php ini variable unchangeable).
To be exact - I want to set any php.ini variable inside extension
code - and this is something I know how to do it -
and mark it to be "admin value" (not changeable later) - and this
is something I cannot figure out.
I actually use php as cgi/fcgi, and since I noticed, that
command-line specified variable (-d switch) is not automatically
marked as "admin value" (works according with variable access type).
The only one advanced php api information I could find was "Extending
and Embedding PHP" book,
written by Sara Golemon, anyway php.ini chapter does not say anything
about
overriding original access type setting.
Regards,
DT <pw****@jewish. org.pl>
>
That has to be done in the installation - can't be done through php code.
You'll have to know a lot about compiling, *nix security and such to get it
right.
I'm Unix programmer, I intend to write php extension in C, and I mean
PHP language environment source, not PHP script code.
I cannot find any PHP core development newsgroup, so I post here,
hoping php C hackers read it :)
Regards,
P.
On Thu, 15 Nov 2007 15:06:42 +0100, DT <pw****@jewish. org.plwrote:
>> That has to be done in the installation - can't be done through php code. You'll have to know a lot about compiling, *nix security and such to get it right.
I'm Unix programmer, I intend to write php extension in C, and I mean
PHP language environment source, not PHP script code.
I cannot find any PHP core development newsgroup, so I post here,
hoping php C hackers read it :)
Allthough it wouldn't be offtopic here, extension internals are not an
issue dealt with here on a regular basis. For more information on PHP
extensions & internals, I'd advise looking at the available resources at
<http://pecl.php.net/support.phpand/or the internal developers list
<news://news.php.net/php.internals>
--
Rik Wasmus
"DT" <pw****@jewish. org.plwrote in message
news:12******** *************** ***********@p69 g2000hsa.google groups.com...
That has to be done in the installation - can't be done through php code. You'll have to know a lot about compiling, *nix security and such to get it right.
I'm Unix programmer, I intend to write php extension in C, and I mean
PHP language environment source, not PHP script code.
I cannot find any PHP core development newsgroup, so I post here,
hoping php C hackers read it :)
Ahhh - so you gots the chops.
My IPP helped me out with that one.
....I was just about to point you to a *great* site for that.
Then I saw that slimebag return-address of yours and decided to just tell
you to sod off.
So - sod off.
On Thu, 15 Nov 2007 21:30:06 +0100, Sanders Kaufman <bu***@kaufman. net
wrote:
"DT" <pw****@jewish. org.plwrote in message
news:12******** *************** ***********@p69 g2000hsa.google groups.com....
> That has to be done in the installation - can't be done through php code. You'll have to know a lot about compiling, *nix security and such to get it right.
I'm Unix programmer, I intend to write php extension in C, and I mean PHP language environment source, not PHP script code. I cannot find any PHP core development newsgroup, so I post here, hoping php C hackers read it :)
Ahhh - so you gots the chops.
My IPP helped me out with that one.
...I was just about to point you to a *great* site for that.
Then I saw that slimebag return-address of yours and decided to just tell
you to sod off.
WTF? Other then that polish isn't one of the languages I know, and I can't
really see what the site is about
(<http://www.tranexp.com :2000/InterTran?type= url&url=http%3A %2F%2Fwww.jewis h.org.pl%2F&tex t=&from=pol&to= eng
was not of any help) I can't see any problem?
--
Rik Wasmus
For some reason, a lot of whackos think that .PL stands for Palestine.
I don't know *why* they think that - but in the political groups, a lot of
jew-bashers use it that way.
I see this a LOT in the newsgroups.
So, when I saw this one - I presumed it was another like that.
But I'll be damned - Jewish.org.pl is real!
And I'm a friggin idiot.
That said...
The site to which I referred, is the PHP.net newsgroups, mentioned earlier
by you, I think.
"Rik Wasmus" <lu************ @hotmail.comwro te in message
news:op******** *******@metalli um.lan...
On Thu, 15 Nov 2007 21:30:06 +0100, Sanders Kaufman <bu***@kaufman. net>
"DT" <pw****@jewish. org.plwrote in message
...I was just about to point you to a *great* site for that.
Then I saw that slimebag return-address of yours and decided to just tell
you to sod off.
WTF? Other then that polish isn't one of the languages I know, and I can't
really see what the site is about
(<http://www.tranexp.com :2000/InterTran?type= url&url=http%3A %2F%2Fwww.jewis h.org.pl%2F&tex t=&from=pol&to= eng>
was not of any help) I can't see any problem? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Gyger |
last post by:
Hello,
Three weeks ago, I have started to develop a binding extension for Qt and
PHP 5.
Now, I can display a dialog box containing some widgets like label, buttons
and edit line. I have just implemented some Qt classes (not completly) like
QApplication, QObject, QWidget, Qlabel, QLineEdit and QGrid just to test
some very simple application. The mecanisme of the SLOT and SIGNAL is
working but only for the existing slot and signal.
|
by: Mike Walsh |
last post by:
I would like to use PHP's Sybase extension. I am running my development
area on Windows under IIS. When I enable the Sybase extension, I get a
message that indicates the extension didn't load. After doing some digging
I have learned that in order for the Sybase extension to work
(php_sybase_ct.dll) I need libct.dll.
After Googling libct.dll and php_sybase_ct.dll and following several
threads, it appears that many people have had the...
|
by: John Underwood |
last post by:
Can I use python23_d and python23 to develop an extension for a
commercial application uses python22.dll? (Providing that I do not use
any new features found only in 2.3.)
I would bulld version 2.2 but I am having trouble doing this with
Visual Studio .NET Standard. (There is a well documented problem with
version 2.2 (involving largeint.h) and VS.NET but none of the
solutions that I found have worked.)
On the other hand, I have...
|
by: Matt |
last post by:
I currently have a client that is okay with us using Microsoft development
products but do not want their customers to see the aspx extension on any of
the web pages. I played around with creating an HTTPHandler that masks the
fact that the URL's are not aspx pages. I wonder if anyone else has come
across this and would like express a better solution or one that is
available to make sure I cover all the bases with doing this.
Thanks,
...
|
by: Adam |
last post by:
Im trying to add an httphandler for all *.sgf file extensions. I have
developed the handler,
1. installed it into the gac
2. added it to the machine.config:
<httpHandlers>
<add verb="*" path="*.sgf" type="CustomExtensionHandler,
Extenders.CustomExtensionHandler, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=d831d925597c1031" validate="True"/>
</httpHandlers>
| |
by: Michael Hudson |
last post by:
The PyPy development team has been busy working and we've now packaged
our latest improvements, completed work and new experiments as
version 0.9.0, our fourth public release.
The highlights of this fourth release of PyPy are:
**implementation of "stackless" features**
We now support the larger part of the interface of the original
Stackless Python -- see http://www.stackless.com for more. A
significant part of this is the pickling...
|
by: SMH |
last post by:
Template Document Processor: PHP 5.1.6
Server: Apache httpd 2.0.55 (Win32)
Database Server: MySQL 5.0.26-community for Win32
Operating System: Windows XP Pro SP2
=======
I just installed PHP and MySQL on my laptop for development purposes.
The following directives are set in php.ini (Windows config file):
|
by: Petr Prikryl |
last post by:
Do you think that the following could became PEP (pre PEP).
Please, read it, comment it, reformulate it,...
Abstract
Introduction of the mechanism for language extensions via
modules written using other languages. Extensions of
Python could be done via special interpreter extensions.
From Python sources, the special modules would look like
other modules, with the Python API (the key feature from
|
by: Danny |
last post by:
Hello:
I would like to develop a browser extension, or whatever such a thing
is classified as, that would allow a user of IE6, and possibly IE7,
to
switch between a live and development page.
I'm sure the individuals reading this are familiar with what I'm
referring to; however, I'll provide an example.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |