Professional Web Applications Themes

PHP while name still .html - PHP Development

Hi, I use latex2html to generate a site; it creates an indexed table of content, but the files are all named .html; is it possible to use htaccess or other to tell Apache that there is maybe a PHP code in these .html while the name is still file.html? (I'm not a PHP specialist, sorry; but its for a work). ThanX. Aldo. -- ==Osvaldo La Rosa==-==http://www.brlspeak.net/==-==GNU/Linux? 2B FREE== No individual should be discriminated against on the basis of disability in the full and equal enjoyment of the goods, services, facilities, privileges, advantages, or accommodations of any place of public accommodation ...

  1. #1

    Default PHP while name still .html

    Hi,
    I use latex2html to generate a site; it creates an indexed table of
    content, but the files are all named .html; is it possible to use htaccess
    or other to tell Apache that there is maybe a PHP code in these .html
    while the name is still file.html?

    (I'm not a PHP specialist, sorry; but its for a work).

    ThanX.

    Aldo.


    --
    ==Osvaldo La Rosa==-==http://www.brlspeak.net/==-==GNU/Linux? 2B FREE==
    No individual should be discriminated against on the basis of
    disability in the full and equal enjoyment of the goods, services,
    facilities, privileges, advantages, or accommodations of any place of
    public accommodation (American Disability Act - 42. U.S.C. 12182[a])
    Aldo Guest

  2. #2

    Default Re: PHP while name still .html

    Aldo wrote: 

    I believe that you need to use the line:

    AddType application/x-httpd-php .html

    in your .htaccess or httpd.conf file.

    However, this is not recommended practice, and also means that every single HTML
    file will be pre-processed by the PHP engine, which slows down the speed at
    which doents are returned. It would be better to rename those files that
    actually have PHP in them.

    --
    Oli
    Oli Guest

  3. #3

    Default Re: PHP while name still .html

    On Mon, 23 May 2005, Oli Filth wrote:
     
    OK I try this.
     

    The problem should then be that I have to rename all internal hrefs inside
    each page so that the links can work;

    I will check and ask if latex2html can output other extensions than .html
    automatically: this should resolve the problem.

    ThanX,

    Aldo.

     
    Aldo Guest

  4. #4

    Default Re: PHP while name still .html

    On Mon, 23 May 2005, Oli Filth wrote: 

    Ok, works fine;
    thanX very much.

    Aldo.


    Aldo Guest

  5. #5

    Default Re: PHP while name still .html

    Aldo wrote:
     
     
    >
    > I will check and ask if latex2html can output other extensions than .html
    > automatically: this should resolve the problem.
    >[/ref]

    You use LaTeX but don't know how to use 'sed'?

    C.
    Colin Guest

  6. #6

    Default Re: PHP while name still .html

    On Mon, 23 May 2005 17:32:04 +0200, Aldo <be> wrote:
     

    That's a piece of cake with search and relplace. Do you have a
    programmer's text editor?
    Jerry Guest

Similar Threads

  1. Flash .html Plays on Server but NOT on html page
    By indotcom in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: June 14th, 02:30 AM
  2. HTML <Href Link inside a form (HTML text box)
    By Lingodude in forum Coldfusion Database Access
    Replies: 1
    Last Post: February 15th, 08:31 AM
  3. textArea's and external html files> linking in the html to a new file
    By :\) Morganizer in forum Macromedia Flash Actionscript
    Replies: 0
    Last Post: February 29th, 01:36 PM
  4. Replies: 1
    Last Post: July 15th, 02:02 PM

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
  •  

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