Page 1 of 1

error 500 problem using file(), help

Posted: Wed Sep 10, 2003 4:36 am
by mikebr
I am stumped with this, when I first placed a script with the following lines of code on one of my servers 3 weeks ago it worked fine, I have now discovered it returns an error 500, the server support is telling me there is a programming problem in my script but it did work and does work on another server I use, has anyone any ideas where the problem moght be on this? I wrote a small test script with the following lines as below:

Code: Select all

<?php
if(($metar_ = @file("ftp://weather.noaa.gov/data/observations/metar/stations/LEAL.TXT")) == false){
print "false";
}else{
 print "$metar_";
}

?>

Posted: Wed Sep 10, 2003 5:41 am
by JayBird
When I try to access that FTP server using an FTP program, I am getting “Too many users” error message.

Basically, this means there is a limit to the number of people that can log in to that FTP at any one time, which is probably why you are getting the error message.

Mark