Results 1 to 4 of 4

Thread: Change automatic dial on each html page

  1. #1
    Join Date
    Mar 2009
    Posts
    1,360

    Change automatic dial on each html page

    I am making a website but I just found that I had to change a line on repeatedly every page. I wanted to know if there exist a command line to make the change on all pages and not to do it manually on each page.

    Example: Of all the web pages there are these lines (although the content of each page are different):

    <!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">

    If I want to change these lines to:

    <!DOCTreferfgreYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.rlmgnjolrjgorejgo.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/3669/xhtml">

    Should I do it manually on all pages, or is there a faster way?

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Change automatic dial on each html page

    Yes in php, but do not be scared since you do not need to learn anything new. You simply put
    PHP Code:
    <?php 
    include('top_of_my_page.htm'); 
    ?>
    It will integrate at the place where you have placed this piece of code the whole page "top_of_my_page.htm. So I let you imagine the possibilities that it offers.

    But 2 constraints:

    Your web host must have PHP enabled. And all the pages where you do use this piece of code should no longer be extended .htm but .php so that your server can interpret.

    On the contrary, do not worry about going to do the html before and after the <?php and ?>

  3. #3
    Join Date
    Mar 2009
    Posts
    1,360

    Re: Change automatic dial on each html page

    Thank you for your response!

    But is it possible to create a file .bat or command (in bin something like that) for example:

    You'll search in file.php (or .html) of case "x" phrase "<!DOCTYPE html PUBLIC".

    You delete it. You'll search the phrase "Transitional//EN" "http://www.w3.org/". You'll replace it with:
    PHP Code:
    <?php 
    include('top_of_my_page.htm'); 
    ?>

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: Change automatic dial on each html page

    Otherwise, with notepad ++, you can use the function find / replace and it accepts RegExp. You can also specify file types (extension) and various directories. Based on a powerful editing component Scintilla, Notepad++ is written in C++ and uses pure Win32 API and STL which ensures a higher execution speed and smaller program size.

Similar Threads

  1. Replies: 6
    Last Post: 12-09-2011, 10:47 PM
  2. How to remove thumbnail from speed dial page of Google Chrome?
    By Leana_rus in forum Technology & Internet
    Replies: 5
    Last Post: 30-01-2010, 07:30 PM
  3. Disable automatic start of Dial-up connection
    By Xylon in forum Networking & Security
    Replies: 6
    Last Post: 28-10-2009, 12:19 PM
  4. How to embed a WMV into an html page
    By Ameyaa in forum Software Development
    Replies: 2
    Last Post: 19-05-2009, 10:37 AM
  5. page's HTML preload
    By screwball in forum Software Development
    Replies: 5
    Last Post: 24-09-2008, 05:56 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,538,986.30048 seconds with 16 queries