I have gotten everything together for this based off advice here and there.
There is one element, I don't know how to do, or don't understand.
i have a way to open the file, get the info, close the file.
I have a way to take that information that was removed from that file, then I open/create a new file, and put that content within that file, set permissions on it, so the person can edit it with admin later, then close the file.
I need to figure out how to place something within a file. FOr instance.
I have a file, it contains this.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Template 1</title> </head> <body> <div id="content"> </div> </body> </html>currently that's all it contains. Later I am going to have to actually put a atemplate on the page, so I will be doing that manually within the template page. Now what I need to figure out how to do, is dynamically create cms information within the page. I need to get the database call to display the information to show up there, I know how to extract the information from the file, and create another file and paste all that text in there. I don't know how to "open up" the file and place contents in the file where I need to place it at.
Chances are if it has something to do with finding a specific kilobyte position to start putting the information in, then that won't work, because when I go back and add in the styling for the page, and keyword preperation adn everything, it will change. I can't ahve that happening?