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 Link to comment https://forums.phpfreaks.com/topic/25110-new-and-frustrated/ 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 Link to comment https://forums.phpfreaks.com/topic/25110-new-and-frustrated/#findComment-114515 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 Link to comment https://forums.phpfreaks.com/topic/25110-new-and-frustrated/#findComment-114520 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] Link to comment https://forums.phpfreaks.com/topic/25110-new-and-frustrated/#findComment-114526 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 Link to comment https://forums.phpfreaks.com/topic/25110-new-and-frustrated/#findComment-114528 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. Link to comment https://forums.phpfreaks.com/topic/25110-new-and-frustrated/#findComment-114532 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 Link to comment https://forums.phpfreaks.com/topic/25110-new-and-frustrated/#findComment-114533 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.