473,806 Members | 2,321 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to use custom properties, in php.ini?

What is the best mechanism for using custom application properties? Do
these go into the php.ini file or somewhere else? And what functions
are available to handle such properties?
Jul 14 '08 #1
7 2210
On 14 jul, 03:17, jkaash...@belai rintl.com wrote:
What is the best mechanism for using custom application properties? Do
these go into the php.ini file or somewhere else? And what functions
are available to handle such properties?
the functions to handle php.ini properties are
# ini_alter — Alias of ini_set
# ini_get_all — Gets all configuration options
# ini_get — Gets the value of a configuration option
# ini_restore — Restores the value of a configuration option
# ini_set — Sets the value of a configuration option

more info is available here
http://www.php.net/manual/en/ref.info.php

i think that is not a good practice to add custom properties to the
php.ini (and i don't know if it's possile)

what do you need to do? I mean, would you like to modify php.ini
properties only for your application?
or you need to store your OWN properties in a file?

Claudio
Jul 14 '08 #2
jk*******@belai rintl.com wrote:
What is the best mechanism for using custom application properties? Do
these go into the php.ini file or somewhere else? And what functions
are available to handle such properties?
What "custom application properties" are you talking about? Could you
please explain better? Maybe an example?

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Jul 14 '08 #3
On Jul 14, 4:56*am, Jerry Stuckle <jstuck...@attg lobal.netwrote:
jkaash...@belai rintl.com wrote:
What is the best mechanism for using custom application properties? Do
these go into the php.ini file or somewhere else? And what functions
are available to handle such properties?

What "custom application properties" are you talking about? *Could you
please explain better? *Maybe an example?

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attgl obal.net
=============== ===

An example of a custom property is a google account code for
eCommerce, which is different on our staging/testing system vs the
production site. We'd like to keep all such site-specific values
neatly in one file. If it is not the php.ini file, what file should it
be?

Best Regards,

Joop
Jul 14 '08 #4
Joop wrote:
On Jul 14, 4:56 am, Jerry Stuckle <jstuck...@attg lobal.netwrote:
>jkaash...@bela irintl.com wrote:
>>What is the best mechanism for using custom application properties? Do
these go into the php.ini file or somewhere else? And what functions
are available to handle such properties?
What "custom application properties" are you talking about? Could you
please explain better? Maybe an example?

--
============== ====
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attg lobal.net
============== ====


An example of a custom property is a google account code for
eCommerce, which is different on our staging/testing system vs the
production site. We'd like to keep all such site-specific values
neatly in one file. If it is not the php.ini file, what file should it
be?

Best Regards,

Joop
I put this type of information in an include file outside of the
document root of the web server. Then just include it where necessary.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Jul 14 '08 #5
On 14 jul, 13:12, Jerry Stuckle <jstuck...@attg lobal.netwrote:
>
I put this type of information in an include file outside of the
document root of the web server. Then just include it where necessary.
I agree, usually I do the same thing
I think that It's important to keep these files with keys or passwords
outside of the document root of the web server
Jul 14 '08 #6
..oO(jk*******@ belairintl.com)
>What is the best mechanism for using custom application properties? Do
these go into the php.ini file or somewhere else? And what functions
are available to handle such properties?
You can use your own ini file(s).

http://www.php.net/parse_ini_file

Micha
Jul 14 '08 #7
On Jul 14, 12:32*pm, Claudio Corlatti <corla...@gmail .comwrote:
On 14 jul, 13:12, Jerry Stuckle <jstuck...@attg lobal.netwrote:
I put this type of information in an include file outside of the
document root of the web server. *Then just include it where necessary.

I agree, usually I do the same thing
I think that It's important to keep these files with keys or passwords
outside of the document root of the web server
Thanks for the input, I have a set up my own include file.
Jul 16 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2233
by: Shimon Sim | last post by:
Hi I am working on application that need to hold custom user information - Last and first name, email, some other domain related information. I used to create Base class for all my pages. The base class would have CurrentUser property that would hold customer class in session and that was fine for all my situations. Now ASP.NET 2.0 came and we have Profile property for pages that could be extended with configuration to have custom...
6
2338
by: kbs | last post by:
Hi, I'm looking for some good examples that illustrate how to code a web service that exposes a custom collection so that the properties of the collection are accessible on the client without having to do a httpwebreqeust call.
7
4749
by: John Grandy | last post by:
My ASP.NET Web Service project has a Web Method that returns an array filled with instances of a custom class. The custom class is defined in a Class Library that is included in the web-service project. The same class lib is included in the ASP.NET Web Application that calls the web-method I can successfully call the web-method with
0
1553
by: Pavan | last post by:
My name is Pavan and I am a software engineer working on ASP .Net web development. Currently I am using .Net 2.0 Professional Edition to develop my web pages. I have a problem
0
1685
by: george_Martinho | last post by:
It seems that the ASP.NET Microsoft team didn't think about this!! The profilemanager class has the following methods: - DeleteInactiveProfiles. Enables you to delete all profiles older than a specified date. - DeleteProfile. Enables you to delete a profile associated with a specified username. - DeleteProfiles. Enables you to delete a set of profiles. - FindInactiveProfilesByUserName. Returns a collection of ProfileInfo
0
2578
by: Giorgio | last post by:
It seems that the ASP.NET Microsoft team didn't think about this!! The profilemanager class has the following methods: - DeleteInactiveProfiles. Enables you to delete all profiles older than a specified date. - DeleteProfile. Enables you to delete a profile associated with a
8
2025
by: a | last post by:
I'm trying to save data from a custom object into the profile object, but it is not structured the way that I want. I'm trying to get the custom object to serialize as xml to a Profile object like so: <Teachers> <Teacher> <Classes> <Class>
9
3807
by: Greger | last post by:
Hi, I am building an architecture that passes my custom objects to and from webservices. (Our internal architecture requires me to use webservices to any suggestion to use other remoting techniques are not feasible) The question is; Given that I have a Person object with a private set for id. What is the recommended approac in passing that object to the web service
4
2793
by: Suresh | last post by:
Is there any way to access the custom properties of a master page from the aspx form? I know the custom properties of a master page can be accessed from the aspx.cs partial class by specifying the MasterType directive on the aspx form. My master page will render a custom navigation menu and I'd like to put in the properties of which tab and sub tab to load and other misc style info in the aspx form that can be used by master page.
6
11092
by: | last post by:
I have made some user controls with custom properties. I can set those properties on instances of my user controls, and I have programmed my user control to do useful visual things in response to how those properties are set. I want to be able to do two other things: a) add User control instances to my page, filling in the place of placeholder controls, and b) programmatically setting custom properties on those dynamically spawned...
0
9719
marktang
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...
0
9597
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,...
0
10618
Oralloy
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...
0
10366
jinu1996
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...
0
9187
agi2029
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...
0
6877
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();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4329
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3850
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.