Page 1 of 1
Why <div id="menu" class="menu"></div> ?
Posted: Sat May 17, 2014 7:49 am
by phpcoder511
Hi,
When I try to run a simple html page in web browser without php server, it works fine. But when I paste the same html file in www folder of WAMP server, and try to run the page, the div: <div id="menu" class="menu"></div>, is being added automatically.
I do not understand why WAMP is adding this div automatically ?
Re: Why <div id="menu" class="menu"></div> ?
Posted: Sat May 17, 2014 1:35 pm
by Christopher
Can you post the code and filenames for both files. Are you using a app or framework?
Re: Why <div id="menu" class="menu"></div> ?
Posted: Sun May 18, 2014 12:16 pm
by phpcoder511
File name: index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>test</title>
</head>
<body>
<p>Hello</p>
</body>
</html>
Re: Why <div id="menu" class="menu"></div> ?
Posted: Sun May 18, 2014 12:22 pm
by phpcoder511
I am just using notepad to edit the html file.
when i do: localhost/index.html,
the <div id="menu" class="menu"></div>, is added automatically when I see the html code in browser.
Re: Why <div id="menu" class="menu"></div> ?
Posted: Mon May 19, 2014 12:34 am
by Christopher
Do you have Server Side Includes set in your web server. Or do you have PHP set with auto_prepend_file or auto_append_file ?
Re: Why <div id="menu" class="menu"></div> ?
Posted: Wed May 21, 2014 1:08 am
by phpcoder511
No, prepend or append is not set in php.ini:
Automatically add files before PHP document.
;
http://php.net/auto-prepend-file
auto_prepend_file =
; Automatically add files after PHP document.
;
http://php.net/auto-append-file
auto_append_file =
Re: Why <div id="menu" class="menu"></div> ?
Posted: Wed May 21, 2014 12:22 pm
by Christopher
Are you using a framework?