html and php in the same document

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default html and php in the same document

    If php and html are to be included in the same document, does the document extension always have to be .php ? Are there ways to include php into an html document without changing the extension?
    Thanks, Bill


    ---------------------------------
    Do you Yahoo!?
    Yahoo! SiteBuilder - Free, easy-to-use web site design software
    Bill Pilgrim Guest

  2. Similar Questions and Discussions

    1. Attch document on a html form
      Hellow to everybody a have an html form page, that runs on a Unix Server, with the form action, method="post". I has got the Text fields "name",...
    2. !! Inserting HTML document !!
      Hello. My webpage (www.talhagriot.com) has a News section. For convenience, I want the news section to display a simple HTML document, so that...
    3. Rendering HTML within an InDesign document
      Hi all, I'm trying to use InDesign to create User Experience specs for a e-commerce company. Specifically, I want to be able to prototype in a...
    4. Embed HTML into a flash document?
      Is this possible? thanks nic
    5. Opening an html document (macosx)
      Hello people, Is there anyone who can tell me how to open a html document from my application? I'm writing an application for MacOSX. I can...
  3. #2

    Default Re: [PHP] html and php in the same document

    At 04:09 PM 7/24/2003 +0000, Curt Zirzow wrote:
    >* Thus wrote Curt Zirzow (curt@zirzow.dyndns.org):
    > > * Thus wrote Bill Pilgrim (billpilgrim2000@yahoo.com):
    > > > If php and html are to be included in the same document, does the
    > document extension always have to be .php ? Are there ways to include
    > php into an html document without changing the extension?
    > >
    > > Apache, IIS, Other?
    > >
    > > If apache:
    > >
    > > AddType application/x-httpd-php .php .html
    > > add this ----------------------------^^^^^
    >
    >Btw, thats in your system http.conf, and if you have permissions to
    >do that.
    And every .html page is parsed by PHP.
    He will still have to turn PHP on and off within the page.
    Unless he *really* wants to hide usage of PHP, I don't see the point of
    doing this.

    Miles Thompson

    PS Curt - Like the sig<g>.



    >Curt
    >--
    >"I used to think I was indecisive, but now I'm not so sure."
    Miles Thompson Guest

  4. #3

    Default Re: html and php in the same document

    <20030724155718.26259.qmail@web41007.mail.yahoo.co m>
    Bill Pilgrim:
    > If php and html are to be included in the same document, does the
    > document extension always have to be .php ?
    No, but /why/ do you want to change it?


    Comex Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139