Jump to content

Archived

This topic is now archived and is closed to further replies.

bluetech

New and frustrated!

Recommended Posts

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.php

I feel stupid asking this question, but I am getting very frustrated at this point. Thanks! Dave

Share this post


Link to post
Share on other sites
i dont think you need those () and what not.. try this:
[code]
<?php
include 'http://weather.noaa.gov/cgi-bin/fmtbltn.pl?file=forecasts/marine/coastal/an/anz254.txt';
?>
[/code]
i think that should do it

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
[code]
<?php
include("http://weather.noaa.gov/cgi-bin/fmtbltn.pl?file=forecasts/marine/coastal/an/anz254.txt");
?>[/code]

Share this post


Link to post
Share on other sites
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 Error
The 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

Share this post


Link to post
Share on other sites
Ok, those pages don't exist, so please stop linking us to them.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.