Jump to content


Photo

New and frustrated!


  • Please log in to reply
6 replies to this topic

#1 bluetech

bluetech
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 25 October 2006 - 11:39 PM

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..../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.maverickc...s.com/test3.php

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

#2 jwk811

jwk811
  • Members
  • PipPipPip
  • Advanced Member
  • 714 posts

Posted 25 October 2006 - 11:48 PM

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

#3 bluetech

bluetech
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 26 October 2006 - 12:01 AM

I made the change, and the page still looks the same (http://www.maverickc...s.com/test3.php). What am I missing? Thanks for the help. Dave

#4 marcus

marcus
  • Members
  • PipPipPip
  • Advanced Member
  • 1,842 posts
  • LocationRochester, NY

Posted 26 October 2006 - 12:07 AM

<?php
include("http://weather.noaa.gov/cgi-bin/fmtbltn.pl?file=forecasts/marine/coastal/an/anz254.txt");
?>


#5 bluetech

bluetech
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 26 October 2006 - 12:13 AM

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.maverickc....com/test_4.php

#6 marcus

marcus
  • Members
  • PipPipPip
  • Advanced Member
  • 1,842 posts
  • LocationRochester, NY

Posted 26 October 2006 - 12:16 AM

Ok, those pages don't exist, so please stop linking us to them.

#7 bluetech

bluetech
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 26 October 2006 - 12:19 AM

I apologize for that...http://www.maverickchartersltd.com/test_4.php. My mistake! Dave




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users