SEO Class in Chicago, IL
Are you a Google Analytics enthusiast?
More SEO Content
Cleaning And Re-arranging The Php And Html Codes I
Posted 04 February 2005 - 02:08 PM
Posted 04 February 2005 - 03:47 PM
Short Answer: Not that I know of.
Long Answer: If you want to clean up the code produced in your site, the easiest way I can think of would be to create a static page "template" from it (just copy the source-code from your browser's view-source) and then clean that up:
1) Run template through HTML Tidy
2) Fix the errors reported
3) Repeat 1-2 until the page cleanly validates
4) Split the static HTML file back as it was originally in the PHP files.
As far a re-arranging the code, I am not sure what you mean. If you are referring to moving inline formatting & scripting to a .css file & .js file (respectively), then I would suggest checking out W3 School's CSS & JS tutorials, as that is covered there.
Posted 05 February 2005 - 03:44 PM
We are converting our shoppingsystem to smarty templates. It really separates the codes to different pages. You get another page to deal with but if the system is big it's worth it.
Now we have two pages:
item.php - Where all the php code and mysql request goes.
item.tpl - Where the html for the page is stored
It's great, one page for the developer, one for the designer and full control if something goes wrong.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users