Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 136,582 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,934 people online right now. Registration is fast and FREE... Join Now!




edit var's ..?

 
Reply to this topicStart new topic

edit var's ..?

nutter
28 Sep, 2008 - 08:06 AM
Post #1

New D.I.C Head
*

Joined: 3 Nov, 2007
Posts: 34


My Contributions
Well what i want to do is edit a singal $var in a config file through the admin panel
example:

config.php:
CODE

$global['maintenance'] = "1";

and from the admin panel i can edit ONLY that $var

im sure its possable...

thanks,
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Edit Var's ..?
28 Sep, 2008 - 09:28 AM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,213



Thanked: 217 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
First of all, what admin panel are you talking about? Secondly, if you have access to that admin panel's php code then you can edit whatever vars you want. Third, if you are talking about the config file of php, check out the function ini_set().

I think overall though you will have to provide more information and tell us exactly what you are looking to do and with what.

smile.gif
User is offlineProfile CardPM
+Quote Post

nutter
RE: Edit Var's ..?
2 Oct, 2008 - 10:14 AM
Post #3

New D.I.C Head
*

Joined: 3 Nov, 2007
Posts: 34


My Contributions
Aaa you have mis-understood i will explain as clearly as i can

i am making a CMS and The admin panel i refered to is this CMS's admin panel
the config file is the CMS's config file

now i want to be able to Edit a particular Veriable which is stored in the config file from the admin panel

Any help..

Thanks.
User is offlineProfile CardPM
+Quote Post

akozlik
RE: Edit Var's ..?
2 Oct, 2008 - 10:45 AM
Post #4

D.I.C Addict
Group Icon

Joined: 25 Feb, 2008
Posts: 614



Thanked: 24 times
Dream Kudos: 750
My Contributions
How are you currently storing your settings? We need more information.

Read this:

How to get better help on DIC
User is offlineProfile CardPM
+Quote Post

nutter
RE: Edit Var's ..?
2 Oct, 2008 - 11:17 AM
Post #5

New D.I.C Head
*

Joined: 3 Nov, 2007
Posts: 34


My Contributions
Well there will be a few settings stored in the config.php file & others in a Mysql DB

The config settings are stored like tih s:

CODE
$global['maintenance'] = "1";
$global['maintenance-page'] = "down.html";




This post has been edited by nutter: 2 Oct, 2008 - 11:18 AM
User is offlineProfile CardPM
+Quote Post

nutter
RE: Edit Var's ..?
5 Oct, 2008 - 01:44 AM
Post #6

New D.I.C Head
*

Joined: 3 Nov, 2007
Posts: 34


My Contributions
Any help...?
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 12:41AM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month