Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

.htaccess setting for pdf file.

Discussion in 'General Discussion' started by SACHIN, Jan 6, 2005.


    SACHIN Guest

    Hello All......

    I have problem with .htaccess setting. I am using .htaccess file as per following setting.

    <Files pdf>
    ForceType application/x-httpd-php

    when i tried to access above page by url i am not getting any error but php coding shows dirctly on page. it is not showing properly..

    my document root or files as per below.

    .htaccess file localtion = /home/user/public_html/.htaccess
    pdf file location = /home/user/public_html/pdf

    Please guide me how should i fix this?
    i am using php 4.3.10

    Waiting for reply.....


Share This Page