Webmaster Forums 101 - Free Help and Discussions
 
 
 

MEMBER REWARDS - Earn free advertising by participating in these forums! Click here for details.

Welcome to Webmaster Forums 101!

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Reply
 
Thread Tools Search this Thread Display Modes
Old 24th September 2003, 08:16 AM   #1

Username: metguitarist
Rank: WF101 Addict
Join Date: Jan 2003
Posts: 374
Points: 0.00
Send a message via AIM to metguitarist Send a message via MSN to metguitarist
Default Help...

Okay, I want to have it so I have a config.php that this person can edit through an admin panel which would hold all the php variables for the other pages.

Anyone know how I would do this? ops:
metguitarist is offline   Reply With Quote
Old 24th September 2003, 08:40 AM   #2

Username: Reactor
Rank: WF101 Newbie
Join Date: Aug 2003
Location: Oregon
Posts: 22
Points: 0.00
Default

did you check http://www.hotscripts.com or any other site?
Reactor is offline   Reply With Quote
Old 24th September 2003, 09:10 AM   #3

Username: metguitarist
Rank: WF101 Addict
Join Date: Jan 2003
Posts: 374
Points: 0.00
Send a message via AIM to metguitarist Send a message via MSN to metguitarist
Default

I dont want a script that does it for me, I just want to learn how to do it.

I've tried looking at other scripts but there is too much clutter
metguitarist is offline   Reply With Quote
Old 24th September 2003, 10:07 AM   #4
viper's Avatar

Username: viper
Rank: WF101 Fanatic
Join Date: Apr 2003
Location: Canada
Posts: 172
Points: 28.21
Default

well i'm not exactly a expert at php yet but the way i would do it is usering the fopen and fwrite functions. If you need help coding it me or ben would be glad to help when ben gets back that is lol.
__________________
viper is offline   Reply With Quote
Old 24th September 2003, 10:31 AM   #5

Username: metguitarist
Rank: WF101 Addict
Join Date: Jan 2003
Posts: 374
Points: 0.00
Send a message via AIM to metguitarist Send a message via MSN to metguitarist
Default

Do you have AIM? MSN? Y!? ICQ? IRC?

Or could you maybe just help me through PMs?
metguitarist is offline   Reply With Quote
Old 24th September 2003, 12:26 PM   #6
viper's Avatar

Username: viper
Rank: WF101 Fanatic
Join Date: Apr 2003
Location: Canada
Posts: 172
Points: 28.21
Default

ya i've got msn and aim i'll pm you my info for them.
__________________
viper is offline   Reply With Quote
Old 27th September 2003, 01:09 PM   #7
Mr. Tech's Avatar

Username: Mr. Tech
Rank: Problem Solver
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
Send a message via MSN to Mr. Tech
Default

Don't know if you have worked it out yet but if not here's how to do it:

Code:
<?php // Update File if ($mode == "edit") { $content = <<<EOF <?php \$field1 = "$field1"; \$field2 = "$field2"; ?> EOF; $fp=fopen("config.php",w); fputs($fp,$content); fclose($fp); print "File updated!"; // Form where you edit info } else { ?> <form action="<?php echo $PHP_SELF; ?>" method="post"> <input type="hidden" name="mode" value="edit"> Field 1: <input type="text" name="field1"><br> Field 2: <input type="text" name="field2"><br> <input type="submit" value="update!"><br> </form> <?php } ?>

Hope that helps!
__________________
Please read the Forum Rules

Get rewarded for posting
- free advertising!

.::. [ Webmaster Resources ] .::. [ Web Design ] .::. [ Developer Tutorials ] .::.
Mr. Tech is offline   Reply With Quote
Old 3rd October 2003, 01:30 PM   #8

Username: metguitarist
Rank: WF101 Addict
Join Date: Jan 2003
Posts: 374
Points: 0.00
Send a message via AIM to metguitarist Send a message via MSN to metguitarist
Default

It helps a bit, I'll play around with it to make it fit my needs, thanks!
metguitarist is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Login
User Name
Password


Featured Members


Featured Links


Useful Resources
Webmaster Resources
Developers Tools
Developer Tutorials


Partners

All times are GMT +10. The time now is 10:04 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.3.2
 
 
WEBMASTER FORUMS 101
ARCHIVE
CONTACT US
TOP
   
© Webmaster Forums 101 2005. All Rights Reserved.
Design by: vBCore