matthewlesh Posted August 8, 2007 Share Posted August 8, 2007 Hello there everyone... i need a bit of help with something, i want to be able to check if websites are working through FTP as well as http. I am getting address from a database such as... ftp://website.com.aa/ or ftp://user:pass@sub.yod.org/ or http://atua.goaje.org/ The system won't know what type of address it is, so the script needs to first work out what type, then check it. (Note: all these address are coming from MySQL) Please help. Quote Link to comment https://forums.phpfreaks.com/topic/63851-ftphttp-checker-script/ Share on other sites More sharing options...
NArc0t1c Posted August 8, 2007 Share Posted August 8, 2007 HTTP port is 80 FTP port is 21. Use fsockopen. Quote Link to comment https://forums.phpfreaks.com/topic/63851-ftphttp-checker-script/#findComment-318303 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.