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.

  1. SACHIN

    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
    </Files>

    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.

    /home/user/public_html/
    .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.....

    :confused:
     
Loading...

Share This Page