error 500 problem using file(), help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mikebr
Forum Contributor
Posts: 243
Joined: Sat Sep 28, 2002 7:05 am

error 500 problem using file(), help

Post 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_";
}

?>
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post 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
Post Reply