Jump to content

Archived

This topic is now archived and is closed to further replies.

pwes24

writing to php/css files

Recommended Posts

Hello everyone.

 

I'd like to create a user friendly admin file where one can change elements like coloron a different web page. For example, to change the background of a web page, the client just logs on to the admin panel and makes the change. How do I write code to go to the web page and update this information permanently?

 

Your help will be apperciated.

Share this post


Link to post
Share on other sites

I imagine this would involve either just displaying the contents of the css file in a textarea and the users edits or or more complicated approach of parsing the css into a form and recompiling when saved.

Share this post


Link to post
Share on other sites

Do you have an example db structure for that? I would seem that would be hard to do when you start to get into the more complex css files.

Share this post


Link to post
Share on other sites

Your description is really too loosely defined to be able to give an adequate suggestion on design. Can you list some specific requirements for how you wish the system will work? Have you thought about the user interfaces and how a user would be updating these fields. Often times it helps to come up with what you want the interface to do and look like and then figure out how to write the code to do it. This is why that role is often split up. When you get developers thinking about design... while keeping coding in mind it can limit creativity (can also be a good thing sometimes...). Give us some more thought to your vision and then we'll help.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.