Get exclusive CAP network offers from top brands

View CAP Offers

there has to be a better way!

[bsa_pro_ad_space id=2]
  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #584517
    Anonymous
    Guest

    Ok, a little background.

    I do my html all on notebook.

    Everytime I want to add something to the menu, or whatever, just anything I want to put on every page, I have to go through every singe page *…..copy…..open……past……save…..upload…..open…..past…..save……upload….open……past……save…..upload…..open…..past…..save……upload….open……past……save…..upload…..open…..past…..save……upload….open……past……save…..upload…..open…..past…..save……upload….
    you get the idea……

    -by the time I’m through, my mouse hand is numb-

    Is there any utility that will do this……something that actually works without screwing up the html, using an ftp uploader without any bells or whistles.

    #644507
    Anonymous
    Inactive

    Rather than looking for a utility that will allow you to do these mass edits, you could avoid the whole issue by using a server side method to share the common parts of your pages in one file instead of many.

    If your server runs PHP, you can change the filenames to end in ‘.php’, and include this bit of code on each page, to include a shared menu page…

    [php]
    include(‘menu.php’);
    ?>
    [/php]

    That way, menu changes involve changing only one file, and all of your pages are immediately updated.

    #644509
    Anonymous
    Guest

    Thanks!

    I have my book “Build Your Own Database Driven Website Using PHP & MySQL” handy here…….

    And my server runs PHP, which is why I chose it, because I knew I wanted it for some reason.

    Imagine editing one page for all menus.

    :bigsmile:

    #644522
    Anonymous
    Inactive

    PHP is great for menus etc. as you change it once and the changes will migrate all pages calling the php file.

    One thing to watch for…

    Eliminate all head tags on the php page thats being called, otherwise you will end up with two titles, descriptions, meta tags etc. in the source code which may confuse any visiting spiders.

    Good luck with this!

Viewing 4 posts - 1 through 4 (of 4 total)