php.ini and extentions
Posted: Sat Jun 10, 2006 10:51 am
well in another thread someone asked about installing a PHP extention and this brought up some ideas in my head.
well, i wanted to know a few things.
i'm a C/C++ programmer as well and i know the interpreter/parser for PHP is written in C and i would love to make my own extentions for PHP and set them wherever. well, the problem with this is that the website application that i'm creating should be able to be used on as many servers as possible. granted alot will be enterprise so theycan do thier own but i want to make it as easy as possible for everyone and anyone to set up so that it's almost like windows. less screwing around and more work.
that being said i know that there are some functions called ini_get/set() and i was wondering if those actually temporarilly set/get the php.ini and then i can do whatever with them. is this the case? would i be able to do that?
i want to be able to set it in code and look for the php.ini, temporarilly set the variables as to where the extention is (some hosts might not allow you to use extentions and such) and then i can use it.
what do you think? is it possible? can i do it? or am i barking up a wall?
well, i wanted to know a few things.
i'm a C/C++ programmer as well and i know the interpreter/parser for PHP is written in C and i would love to make my own extentions for PHP and set them wherever. well, the problem with this is that the website application that i'm creating should be able to be used on as many servers as possible. granted alot will be enterprise so theycan do thier own but i want to make it as easy as possible for everyone and anyone to set up so that it's almost like windows. less screwing around and more work.
that being said i know that there are some functions called ini_get/set() and i was wondering if those actually temporarilly set/get the php.ini and then i can do whatever with them. is this the case? would i be able to do that?
i want to be able to set it in code and look for the php.ini, temporarilly set the variables as to where the extention is (some hosts might not allow you to use extentions and such) and then i can use it.
what do you think? is it possible? can i do it? or am i barking up a wall?