...

View Full Version : Linking to a php file



ppl
03-17-2010, 06: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.

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

FishMonger
03-17-2010, 02: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?

Fishhead
03-17-2010, 06:44 PM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum