Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 24-10-2009
Member
 
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?
Reply With Quote
  #2  
Old 24-10-2009
Member
 
Join Date: Oct 2005
Posts: 2,389
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 ?>
Reply With Quote
  #3  
Old 24-10-2009
Member
 
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'); 
?>
Reply With Quote
  #4  
Old 24-10-2009
Member
 
Join Date: May 2008
Posts: 2,383
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.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Change automatic dial on each html page"
Thread Thread Starter Forum Replies Last Post
How can I get speed dial page as default page in Google Chrome v13 ? Shurod Technology & Internet 6 12-09-2011 10:47 PM
How to remove thumbnail from speed dial page of Google Chrome? Leana_rus Technology & Internet 5 30-01-2010 07:30 PM
Disable automatic start of Dial-up connection Xylon Networking & Security 6 28-10-2009 12:19 PM
How to embed a WMV into an html page Ameyaa Software Development 2 19-05-2009 10:37 AM
page's HTML preload screwball Software Development 5 24-09-2008 05:56 PM


All times are GMT +5.5. The time now is 05:45 PM.