Closed Thread
Results 1 to 3 of 3

Thread: htaccess render as php

  1. #1
    wjh2303 is offline x10 Sophmore wjh2303 is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    139

    htaccess render as php

    Put this in community support, but on reflection probably belongs here:

    .htaccess reads as:

    "AddType application/x-httpd-php .xml" (just the one entry)

    to make it render .xml files as php, this is so i can use php/mysql to render an rss page that will update automatically. This works fine on my dev server, but when i try to put it onto the x10 server it all goes wrong, see http://lifeinmegapixels.com/rss.xml which when i visit it asks me how itd like to open the file, and on opening it it is just the original text with the php in it, rather than having been rendered by the server.

    Something i need to do to make this work properly? it seems odd that it would work ok on the dev server but not live...

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: htaccess render as php

    Don't multipost. Your question has already been answered.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    wjh2303 is offline x10 Sophmore wjh2303 is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    139

    Re: htaccess render as php

    already, ten minuites after i posted here, but whatever, yes solved etc, close the thread or somthing

Closed Thread

Similar Threads

  1. Ever Been Suspended For Using PHP?
    By dragoneye_xp in forum Off Topic
    Replies: 26
    Last Post: 08-16-2009, 07:17 PM
  2. [PHP] Variables in PHP
    By Bryon in forum Tutorials
    Replies: 15
    Last Post: 01-29-2009, 09:46 AM
  3. currently have an application pending php
    By biomasti in forum Free Hosting
    Replies: 1
    Last Post: 09-03-2008, 01:58 PM
  4. PHP Easter Eggs
    By dragoneye_xp in forum Off Topic
    Replies: 3
    Last Post: 06-14-2006, 05:48 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers