Bavarian-Board.co.uk - BMW Owners Discussion Forum Homepage
Forum Home Forum Home > General Forums > General Off Topic Forum
  New Posts New Posts RSS Feed - Computer question * boring & techy! *
  FAQ FAQ  Forum Search   Register Register  Login Login

Forum LockedComputer question * boring & techy! *

 Post Reply Post Reply Page  <12
Author
Message Reverse Sort Order
NOISUFNOC View Drop Down
Really Senior Member II
Really Senior Member II
Avatar

Joined: 27-September-2004
Location: Sunny Greenock by the Sea
Status: Offline
Points: 1473
Direct Link To This Post Posted: 19-April-2005 at 16:37

Could you not write a simple script file that pings ftp://sperry.serveftp.com

if its offline then it could just display an offline message and if its up it would allow access, bit rusty on ins and outs but concept is similar to software that tells you uptime of ftp sites etc.

im sure if seen code for this somewhere in the past but have a funny feeling it may have been unix stuff, i will check and let you know.

528 for now
Back to Top
Sponsored Links


Back to Top
stephenperry View Drop Down
Bavarian-Board Contributor
Bavarian-Board Contributor
Avatar

Joined: 20-April-2004
Location: Elgin
Status: Offline
Points: 7213
Direct Link To This Post Posted: 19-April-2005 at 16:35
more wrinkles than an elephants trunk...   thanks for reading it anyway, i did warn it was boring lol

    2007 Ford Mondeo 2.0 TDCI Titanium X Auto

    1983 Ford Sierra XR4i
    2000 Alpina B10 3.3 #118
    1999 BMW 323Ci
    1995 BMW 318i SE
    1994 Vauxhall Omega 2.0 GLS
    1995 Ford Mondeo 1.8 LX
    1990 Honda Concerto 1.6 EX
    1986 Ford Orion 1.6 GL
    1989 Ford Fiesta 1.1 Firefly
Back to Top
Goldryder View Drop Down
Bavarian-Board Contributor
Bavarian-Board Contributor
Avatar
Illegitimi Non Carborundum

Joined: 02-April-2004
Location: Acomb, North Yorkshire
Status: Offline
Points: 5301
Direct Link To This Post Posted: 19-April-2005 at 16:34
Originally posted by stephenperry stephenperry wrote:

umm..

1.  you click the link for www.stephensftpserver.com at the bottom of my profile

2.  your internet browser (internet explorer/firefox whatever) opens the page located at www.stephensftpserver.com

3.  this page contains something to test the connection to ftp://sperry.serveftp.com, maybe download a small test file, or responding to a command, something to signify that its responding

     IF this test is successful

         THEN open ftp://sperry.serveftp.com in your web browser

     ELSE if the test is not successful, show a "failed to connect" error message or webpage instead

 

is that clearer?




erm.....

well......

ummmmmm.....

nope


never mind, I'm sure Killian will iron out your wrinkles for you Stephen
October 2-6 2008 - Houston, Texas - Long Distance Wedding
March 15-April 1 2009 - Transatlantic Cruise
October 10-25 2009 - China, Korea, Taiwan & Japan Cruise
Back to Top
stephenperry View Drop Down
Bavarian-Board Contributor
Bavarian-Board Contributor
Avatar

Joined: 20-April-2004
Location: Elgin
Status: Offline
Points: 7213
Direct Link To This Post Posted: 19-April-2005 at 16:34

could you email them to me please?

stephen@perrypc.co.uk

 


    2007 Ford Mondeo 2.0 TDCI Titanium X Auto

    1983 Ford Sierra XR4i
    2000 Alpina B10 3.3 #118
    1999 BMW 323Ci
    1995 BMW 318i SE
    1994 Vauxhall Omega 2.0 GLS
    1995 Ford Mondeo 1.8 LX
    1990 Honda Concerto 1.6 EX
    1986 Ford Orion 1.6 GL
    1989 Ford Fiesta 1.1 Firefly
Back to Top
kbannon View Drop Down
Admin Group
Admin Group
Avatar
E39 525i Sport Individual

Joined: 09-October-2002
Location: 64 Zoo Lane
Status: Offline
Points: 15508
Direct Link To This Post Posted: 19-April-2005 at 16:30

my reply was written befopre you got allys reply

Anyway what I have there is a php function that pings the server and displays online or offline. It could as easily be modded to redirect instead of write online!

I also have an ASP version of it.
K.

Current: 2009 E60 520d "Sport" tractor
Previous: 1989 E30 320i SE
1997 E39 523i
2003 E39 525i Sport Individual
Back to Top
kbannon View Drop Down
Admin Group
Admin Group
Avatar
E39 525i Sport Individual

Joined: 09-October-2002
Location: 64 Zoo Lane
Status: Offline
Points: 15508
Direct Link To This Post Posted: 19-April-2005 at 16:27

let me get this right - you want a web page to ping the ftp server and if switched on then redirect visitor to it otherwise display a custom error?

If so then the page pinging the server would need to be on an entirely different server [if it is on the same then it cant really test itself if off!]

So then you want a page that will do something like this
http://www.bmwmovies.net/sp_ping/ (without the google/yahoo stuff!)

Current: 2009 E60 520d "Sport" tractor
Previous: 1989 E30 320i SE
1997 E39 523i
2003 E39 525i Sport Individual
Back to Top
stephenperry View Drop Down
Bavarian-Board Contributor
Bavarian-Board Contributor
Avatar

Joined: 20-April-2004
Location: Elgin
Status: Offline
Points: 7213
Direct Link To This Post Posted: 19-April-2005 at 16:24

umm..

1.  you click the link for www.stephensftpserver.com at the bottom of my profile

2.  your internet browser (internet explorer/firefox whatever) opens the page located at www.stephensftpserver.com

3.  this page contains something to test the connection to ftp://sperry.serveftp.com, maybe download a small test file, or responding to a command, something to signify that its responding

     IF this test is successful

         THEN open ftp://sperry.serveftp.com in your web browser

     ELSE if the test is not successful, show a "failed to connect" error message or webpage instead

 

is that clearer?


    2007 Ford Mondeo 2.0 TDCI Titanium X Auto

    1983 Ford Sierra XR4i
    2000 Alpina B10 3.3 #118
    1999 BMW 323Ci
    1995 BMW 318i SE
    1994 Vauxhall Omega 2.0 GLS
    1995 Ford Mondeo 1.8 LX
    1990 Honda Concerto 1.6 EX
    1986 Ford Orion 1.6 GL
    1989 Ford Fiesta 1.1 Firefly
Back to Top
Goldryder View Drop Down
Bavarian-Board Contributor
Bavarian-Board Contributor
Avatar
Illegitimi Non Carborundum

Joined: 02-April-2004
Location: Acomb, North Yorkshire
Status: Offline
Points: 5301
Direct Link To This Post Posted: 19-April-2005 at 16:06
erm....

Can we have that in 'pooter dunce speak' please?

Specially as this pooter is still not behaving itself.....
October 2-6 2008 - Houston, Texas - Long Distance Wedding
March 15-April 1 2009 - Transatlantic Cruise
October 10-25 2009 - China, Korea, Taiwan & Japan Cruise
Back to Top
stephenperry View Drop Down
Bavarian-Board Contributor
Bavarian-Board Contributor
Avatar

Joined: 20-April-2004
Location: Elgin
Status: Offline
Points: 7213
Direct Link To This Post Posted: 19-April-2005 at 15:57

you were warned!!

Okay, here goes...

Currently running a popular FTP server on one of my computers on the mini-LAN at home using Serv-U v5.0 Corporate Edition, IIS 6.0 is installed, Windows XP Pro SP2.

Dynamic IP address provided by ISP, changes every few weeks or so, dynamic host domain provided by "no-ip.com"

ADSL port redirecting FTP port 21 to internal address of computer on LAN (192.168.0.2), all thats working great

Now for my question....

When people connect to my FTP server, they usually connect by using internet explorers built in FTP browser, instead of using a dedicated FTP client.  Given this, if my computer is turned off or the server is offline for any reason, the FTP browser takes about 30 seconds before it gives up and times out.

What I would like is to open a webpage, which in turn tests for connectivity to the FTP server (pinging port 21?) and, depending on the result, redirects to either the FTP browser screen (ftp://sperry.serveftp.com) or onto a holding page saying something like "server currently offline, please try again later"

Easiest way would be to just leave the server running 24/7 but i don't really want to do that for various reasons

Using Windows Scripting Host is a possibility, put the script within the index page on a some webspace

Any ideas?  


    2007 Ford Mondeo 2.0 TDCI Titanium X Auto

    1983 Ford Sierra XR4i
    2000 Alpina B10 3.3 #118
    1999 BMW 323Ci
    1995 BMW 318i SE
    1994 Vauxhall Omega 2.0 GLS
    1995 Ford Mondeo 1.8 LX
    1990 Honda Concerto 1.6 EX
    1986 Ford Orion 1.6 GL
    1989 Ford Fiesta 1.1 Firefly
Back to Top
 Post Reply Post Reply Page  <12
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.141 seconds.