i am integrate the news into my original site. the file(index.shtml) shows the news stories, however the 'comment button' or when you try to read the extended/full article(not just the short) or go to the next page it flashes the same page back up just adding /?id=7 to my url. however what ever the request is(ie. clicking on comments. doesnt do anything). to get my page to show the news i used this code: <!--#include virtual="/news/index.php" --> any advise?
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
I suspect this may have something to do with your mixing of ASP and PHP. I've never tested the script using an ASP include. May I ask why you don't use a php include?
If it's because the file is an .shtml, a way around with would be if you're server is running Apache is to make it treat shtml files as php files, placing the following code in your .htaccess file would accomplish that.
Code:
AddType application/x-httpd-php .php .shtml
If your server is running IIS I remember seeing somewhere how to do the same thing I just can't remember exactly how right now.
im not using the php include because when i tried to add it to my page i couldnt get the script at all to work. that is also the reason why my file is .shtml, another script i used to use, which was also .php, was able to be displayed.
when i add the code to my .htaccess trying to access my site the browser trys and downloads the page. " you have chosen to open which is a: AddType application/x-httpd-php from: [myurl]"