Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default Php Processing

    Is there a way for a file.htm or file.html to try to be processed as a php file without have to rename all the files to .php??

    Thanks in advance
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  2. #2
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default Disregard

    Disregard I got it!!
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  3. #3
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Out of interest, why do you want to do this?

    You can certainly tell Apache to process all .htm or .html files with PHP, however this will surely only result in an increase in server load as a lot of static html pages that would otherwise not be passed to PHP will be processed for no reason.

  4. #4
    Member
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    675

    Default

    Add a handler for it =) in httpd.conf or .htaccess
    Upload Guardian 2.0 - Sign up for our early beta
    ServerProgress - Server security, consulting and assistance

  5. #5
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default Thanks

    Quote Originally Posted by ramprage
    Add a handler for it =) in httpd.conf or .htaccess
    Yeah thats what I did. Thanks
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  6. #6
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default Renaming etc...

    Quote Originally Posted by webignition
    Out of interest, why do you want to do this?

    You can certainly tell Apache to process all .htm or .html files with PHP, however this will surely only result in an increase in server load as a lot of static html pages that would otherwise not be passed to PHP will be processed for no reason.
    Basically to avoid renaming. Many people use FrontPage and insert PHP code in the pages but cannot name the file .php because it will cause FrontPage to not read the file. So they would have to rename extenison and not be able to take advantage of the publishing features. Since I have done it I have not noticed an increase in load. Our load stays under .30 most of the time and .00 so I do not think it will be an issue.
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

Similar Threads & Tags
Similar threads

  1. ini_set or htaccess memory_limit kills php processing
    By mrlugal in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-22-2010, 05:40 PM
  2. PHP processing problem - particular domains
    By Camarao in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-12-2008, 06:06 PM
  3. processing mail in PHP
    By elck in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-28-2005, 11:12 AM
  4. PHP Form Processing Help
    By [JZ] in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-29-2004, 10:49 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube