Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    ppl
    ppl is offline
    New to the CF scene
    Join Date
    Mar 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Linking to a php file

    I have a perl script running a website which works fine. I wish to place a link on the site that would connect to a php file. I have tried two approached with the same result. First was to create the link directly to the php file, but that did not work.

    Code:
    <A HREF="/test_php.php">Test</A>
    I then created a html file with a link to the php file and that did not work. In this second case, I could click the html link and would be directed to the html page with no problems. However, when I click the link to the php file the result was the same as in the first case with a direct link to the file. The browser pops-up the Download file message box rather than opening the page.

    Is it possible to link to a php file? and if so what additional steps am I missing? Thanks.

  • #2
    New to the CF scene
    Join Date
    Mar 2010
    Location
    Estonia
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    have you tried renaming it to .txt format ?

  • #3
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,877
    Thanks
    2
    Thanked 164 Times in 159 Posts
    Is your web server configured to process php scripts?

    Do you get the download prompt for all of your php scripts or just this one?

  • #4
    New Coder
    Join Date
    Aug 2009
    Location
    McKinleyville, CA
    Posts
    40
    Thanks
    3
    Thanked 0 Times in 0 Posts
    FishMonger

    Thanks for the response. I checked with the server company this morning and they made changes to the handlers so that .php files will now work.

    ppl


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •