Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Options for creating dynamic page update 1

Status
Not open for further replies.

jlockley

Technical User
Nov 28, 2001
1,522
US
I am looking at options for updating dynamic web pages, and I am getting confused.
-I have (and dislike) Microsoft Expression web which allows creation of templates using unique extension dwt. Updates would have to take place on desktop with Expression web. Would be my last choice.
- I have played with Wordpress, which I like, using and tweaking available templates. I would rather use my own with links, but I guess I could take on the learning curve to make one.
- I am working hard at PHP - What I was thinking was using a password protected form to update which inserts into the appropriate <div> page or publishes to a page within the page. I haven't yet figured how to get code reported to a page, or if it is possible to include the page in an existing HTML page. That would probably be the best option.
---Would the HTML page have to be registered as a php page? It looks to me as it it would, in which case it would be unavailable for web serches , if I read correctly.
-Frames??? I have noticed something called Iframes mentioned here, which I am going to research now.

Any and all opinions and suggestions appreciated.

If I sound confused, that's because I am.

Your thoughts on this would be appreciate.
 
If your looking into PHP the I think that would be your best bet.

You can use PHP just in the way you mention and create a form that would show you thew underlying code of the web page for you to alter as you see fit for the updates.

The pages would not need to be PHP pages if you make your PHP script just write to an HTML file instead of it being a PHP page.

With that said, there's nothing preventing PHP pages form being searchable.

It just comes down to how you generate the content, put if your writing the content before hand, then there should be no problem.




----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
That was what I was hopoing, but when I think it's clear, I keep finding something I don't know. Below is what I have in mind, but with a question of how this actualy prints/echoes etc to the page .. I think this is way to simple to work. Is this anywhere close?

Right now I each page in itself will continue to be flat html.

<html>
<div id = wrapper>
<div id ="header">
some stuff
</div>

<div id="content">

<?php
include(content_form.php) //this is where it gets dicey
if (isset(content)
{print content}//this would be more complex, but my current question is how to include this in the page
?>
</div>
</div>
</html>




 
If its flat HTML then you can't have PHP code in it.

You can have a independent PHP file that read your HTML file, and dumps contents of file into a textarea, or wysiwyg editor module to make modifications.

Once the modifications are done, you push a button, and it saves the file back.

The next time the page is requested the modifications will appear.

This way you keep the page HTML, and can modify it when you need to.

As for your way, I don't quite understand the problem. If you include the file, anything in it will be displayed when you include it.

If your content is in a variable, then you can just echo the content out.




----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
I will fool around with this. Thank you very much.
 
If you need any help with the PHP side, you can always ask in the :
forum434




----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thanks. I am going to try to play with it a bit. May be back.
 
I'm not clear on exactly what you mean by "updating dynamic web pages". Do you...
[ol]
[li]Want a way to wrap a standard template around your content - but are happy to produce that content using (say) a text editor and uploading it to the web.[/li]
[li]Want an online system that you can log in to, type your content, and have it convert that to web pages. (The proper name for this is a Content Management System or CMS. Blogging platforms like Wordpress are a form of CMS)[/li]
[li]Have some other source of data that you want to expose to the web by dynamically generating pages.[/li]
[/ol]
PHP might have some role to play in all three of those things, but knowing which you want is a path out of confusion.
Would the HTML page have to be registered as a php page? It looks to me as it it would, in which case it would be unavailable for web serches , if I read correctly.
You read incorrectly. PHP programs like, say, Wordpress generate HTML as their output. It doesn't matter whether the URL ends with .htm or .php, if the end result looks like HTML that's how it will be treated. (It's actually a bit more complicated than that, but I don't want to delve into the technicalities of MIME types at this stage).





-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top