View Full Version : Linking to a php file

03-17-2010, 05:51 AM
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.

<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.

03-17-2010, 11:12 AM
have you tried renaming it to .txt format ?

03-17-2010, 01:14 PM
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?

03-17-2010, 05:44 PM

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.


EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum