PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'd like to create a flat file page template that I will be able to edit via a browser. What I think is a simple concept would be input text elements for $title, $meta_description, $meta_keywords, with a textarea for the $page variable.
At this moment my main interest is figuring out if I can have PHP target $variables on a page and write form content to the specified variable, if so I'm open to examples and suggestions please.
<?php
$title = 'My Web Page';
$meta_description = 'This is my handy dandy web page, great is it not?';
$meta_words = 'cheese, girls, Mario, candy, explosions ';
$page = <<<EOD
<body>
//stuff here
</body>
EOD;
?>
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Well I've set up as much as I can think of for the moment.
What I still need to do is figure out how to target the variables in the template file...I'm not sure I follow scottayy right now so before I start toying with things beyond me I thought I'd post what wasn't yet beyond me.
Here are the two files, I have written the editor to also edit files that request this if they send a referrer. Of course in any live scenario this would need to be encased within an authentication script.
<?php
// $_POST info should be assigned as the values to the respective variables below ($_POST['title'] goes to $title).
$title = '';
$meta_description = '';
$meta_keywords = '';
$page = <<<EOD
EOD;
?>