I successfully loaded the ads on a Unix server, but I am having trouble on a Windows server. Before posting here, I did read through all of the posts on this forum. from what I can gather, it sounds like my problem is on my host's end - but I hope that someone here can confirm this for me. First off, my ad_network_ads.txt is showing data - that's good. I tried getting the ads to load using both the PHP script in my HTM file and using SSI. Here's what I get: When I try to use SSI, the output was the text of the ad_network.php file. After reading through the forums, I set my include file using the full server path to the file. This caused an "error processing SSI file" message to appear. BTW - I already use includes on the site and they work fine. The next step was to try inserting the <?php snippet in my HTM file. The result was that no ads showed up on the page. So I pulled out the code snippet and replaced it with <?php echo "Test"; ?> I have zero experience with PHP, but I believe that should output the word "Test" on my page. But again, the test area of the page was blank. My thinking is that my host has not set up the server to parse PHP scripts in HTM and HTML files. Is this a correct assumption? My host provider asked me to change all of my file extensions to PHP. That made me think it was time to transfer to another host. Then again - I may be wrong. So - am I on the right track believing that the problem is on the server end?
I believe that is correct. I had my host (Windows Server) change my settings and have it installed on an .htm site - There was no requirement to change all my pages to .php file extensions
yes. Try a couple of things: 1) create a phpinfo.php file upload it, and try to access it: <?php phpinfo(); ?> This will tell you if php is working on your server or not. 2) now try to rename phpinfo.php to phpinfo.htm - see if that shows the same info. This will tell you if your server is processing .htm pages as .php pages. (assuming step 1 was successful). 3) if 1 was a success, and 2 was not, try using a .htaccess file. (assuming apache server, I don't know how IIS handles .htaccess files.)
This won't work with IIS. You have to contact your host to do this if this is the issue (which I think is the step you are stuck on) If they won't do it, change web hosts. There is so much competetion, I wouldn't waste my time with them.
Thanks for the replies. I had already checked the server, and it is running PHP 4.3.x. I got an email from my host today, and they have no idea how to set a IIS server that allows the PHP to be parsed. Does anyone know of a resource that I can point them to?
got are such providers still out there..... time to change .....you have to set the mime type in IIS to allow PHP to process .html files if PHP is installed and .php for example does work. M
Thanks expat! Can you give me the exact string or instructions for a IIS server (6.0) to set the mime type correctly? I could also use a recommendation for a good host that can parse the PHP correctly in an HTM file, and supports ASP and MS Access.
I'm not a windows IIS expert but if memory serves it's In the Start menu, go to Programs>Administrative Tools>Internet Services Manager. Select your Web server and right click on the icon, select Properties. Click on the Computer MIME map tab and click Edit. In the File Type window, click New Type. Enter the associated file extensions and content types if so check what is under php and just plonk it under htm / html - regarding hosts there has been a long thread on here search for hosting hope it helps M