bluetech Posted October 25, 2006 Share Posted October 25, 2006 I have a page in a website that is called test.php. I have inserted the following line of code:<?php include("http://weather.noaa.gov/cgi-bin/fmtbltn.pl?file=forecasts/marine/coastal/an/anz254.txt"); ?>PHP is insalled and working correctly (version 4.4.2). All I want to do is call this page to be included in the table of the web page. I know it is a simple task, but I don't see what I am missing.The url of the page is http://www.maverickcharters.com/test3.phpI feel stupid asking this question, but I am getting very frustrated at this point. Thanks! Dave Quote Link to comment Share on other sites More sharing options...
jwk811 Posted October 25, 2006 Share Posted October 25, 2006 i dont think you need those () and what not.. try this:[code]<?phpinclude 'http://weather.noaa.gov/cgi-bin/fmtbltn.pl?file=forecasts/marine/coastal/an/anz254.txt';?>[/code]i think that should do it Quote Link to comment Share on other sites More sharing options...
bluetech Posted October 26, 2006 Author Share Posted October 26, 2006 I made the change, and the page still looks the same (http://www.maverickcharters.com/test3.php). What am I missing? Thanks for the help. Dave Quote Link to comment Share on other sites More sharing options...
marcus Posted October 26, 2006 Share Posted October 26, 2006 [code]<?phpinclude("http://weather.noaa.gov/cgi-bin/fmtbltn.pl?file=forecasts/marine/coastal/an/anz254.txt");?>[/code] Quote Link to comment Share on other sites More sharing options...
bluetech Posted October 26, 2006 Author Share Posted October 26, 2006 That didn't work either. I created a new page, with nothing in it but a table and the include code. I now get:CGI ErrorThe specified CGI application misbehaved by not returning a complete set of HTTP headers.The new page is at http://www.maverickcharters.com/test_4.php Quote Link to comment Share on other sites More sharing options...
marcus Posted October 26, 2006 Share Posted October 26, 2006 Ok, those pages don't exist, so please stop linking us to them. Quote Link to comment Share on other sites More sharing options...
bluetech Posted October 26, 2006 Author Share Posted October 26, 2006 I apologize for that...http://www.maverickchartersltd.com/test_4.php. My mistake! Dave Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.