Jump to content

mehrdad

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by mehrdad

  1. I tested your files and everything works.I may have made a bad assumption. When you opened this thread by mentioning php, I assumed you had php installed. Do you? One way to tell would be to run page.php again, and then, still in your browser, view the source code. If the php tag is visible there, then php is not turned on. You'll have to turn it on in your server's control panel. (Assuming it's available.)I've also been assuming that you're testing this from your server. If you try to view these files on your desktop, the php code will not be interpreted.
    Oh ok, ill check that out.. If it doesnt work then ill reply but ill assume it will work! TY!EDIT: it worked .. TY !!!
  2. I dont understand what your talking about.. can you do it for me please?
    I tried thispage.php
    <!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"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled Document</title></head><body><?php include ("menu.html"); ?></body></html>

    menu.html

    hello

    Umm... So it still doesnt work... WHY :) im a big noob at this... please help!

  3. Sorry. Your .rar file doesn't expand for me, maybe because I'm on a Mac. Could you just copy/paste the relevant snippets of code that don't work? I actually tested the include trick I showed you, so it really should be okay.
    menu.html
    <!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"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled Document</title></head><body>HELLO</body></html>
    page.php
    <!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"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled Document</title></head><body><?php include ("menu.html"); ?></body></html>
  4. Put the menu in a separate file. NOT a complete HTML document, but just the code for the menu. Then, in the other documents, where you want the menu to appear, add a line like this: <?php include ("menu.html"); ?> Make sure those other docs have a .php extension.If it's style changes you want to make, then just use an external style sheet and link to it, as you probably already do or have done.
    I tried that, it doesnt work...here is what i am doing and here is the source files (Download it please --> http://leechbox.com/filesforsite.rar )OFFTOPIC: how do you like my banner?

    post-23182-1215793603_thumb.jpg

  5. I have a site and i want to make my menu header like this "Home Forums Avatar Bleach Naruto One Piece Legal Disclaimer Contact Us". But if i want to change it to something else and for example remove one thing, how can i edit a file to make the changes in all files. It has to do something with php, but i forgot how to do it.So basically if i had a box saying "Hello" and its on 10 pages, i want to edit 1 file to change it saying "Hello and welcome" on all 10 pages instead of chaning it one by one... Understand?Thank you for helping me!

×
×
  • Create New...