mirror.php code not working

Hey drop us a line about the show. Feel free to ask questions, provide feedback and criticism, or just ramble on about anything your little heart desires.

Moderators: snarkout, Patrick, dann

Post Reply
User avatar
platypus_low
Posts: 43
Joined: Tue Jul 25, 2006 5:07 am

mirror.php code not working

Post by platypus_low » Tue Sep 26, 2006 3:09 am

I think the subject speaks for itself ... the error when u stick it in wget is :

Code: Select all

wget -c http://tllts.org/mirror.php?fname=tllts_158-09-20-06.ogg
--16:04:56--  http://tllts.org/mirror.php?fname=tllts_158-09-20-06.ogg
           => `mirror.php?fname=tllts_158-09-20-06.ogg'
Resolving tllts.org... 70.103.16.156
Connecting to tllts.org|70.103.16.156|:80... connected.
HTTP request sent, awaiting response... 302
Location:  [following]
--16:04:57--  http://tllts.org/mirror.php?fname=tllts_158-09-20-06.ogg
           => `mirror.php?fname=tllts_158-09-20-06.ogg'
Connecting to tllts.org|70.103.16.156|:80... connected.
HTTP request sent, awaiting response... 302
Location:  [following]
--16:04:58--  http://tllts.org/mirror.php?fname=tllts_158-09-20-06.ogg
           => `mirror.php?fname=tllts_158-09-20-06.ogg'
Connecting to tllts.org|70.103.16.156|:80... connected.
HTTP request sent, awaiting response... 302
Location: http://www.jeffratliff.org /mirror/TLLTS/ogg/tllts_158-09-20-06.ogg [following]
--16:04:59--  http://www.jeffratliff.org%20/mirror/TLLTS/ogg/tllts_158-09-20-06.ogg
           => `tllts_158-09-20-06.ogg'
Resolving www.jeffratliff.org ... failed: Name or service not known.

A stray space character somewhere linc ?

User avatar
Linc
Site Admin
Posts: 345
Joined: Mon Apr 26, 2004 11:54 pm
Contact:

Re: mirror.php code not working

Post by Linc » Tue Sep 26, 2006 7:07 am

platypus_low wrote:I think the subject speaks for itself ... the error when u stick it in wget is :

Code: Select all

wget -c http://tllts.org/mirror.php?fname=tllts_158-09-20-06.ogg
--16:04:56--  http://tllts.org/mirror.php?fname=tllts_158-09-20-06.ogg
           => `mirror.php?fname=tllts_158-09-20-06.ogg'
Resolving tllts.org... 70.103.16.156
Connecting to tllts.org|70.103.16.156|:80... connected.
HTTP request sent, awaiting response... 302
Location:  [following]
--16:04:57--  http://tllts.org/mirror.php?fname=tllts_158-09-20-06.ogg
           => `mirror.php?fname=tllts_158-09-20-06.ogg'
Connecting to tllts.org|70.103.16.156|:80... connected.
HTTP request sent, awaiting response... 302
Location:  [following]
--16:04:58--  http://tllts.org/mirror.php?fname=tllts_158-09-20-06.ogg
           => `mirror.php?fname=tllts_158-09-20-06.ogg'
Connecting to tllts.org|70.103.16.156|:80... connected.
HTTP request sent, awaiting response... 302
Location: http://www.jeffratliff.org /mirror/TLLTS/ogg/tllts_158-09-20-06.ogg [following]
--16:04:59--  http://www.jeffratliff.org%20/mirror/TLLTS/ogg/tllts_158-09-20-06.ogg
           => `tllts_158-09-20-06.ogg'
Resolving www.jeffratliff.org ... failed: Name or service not known.

A stray space character somewhere linc ?
Actually, the subject only speaks for itself in that it is wrong. The mirror code and mechanism works fine. The problem is that each mirror adds themselves to the rotation and this particular url has an extra space in it making it invalid. I just pulled the space out and all should be well again.

By the way, if you do encounter this, and you all probably will on occasion as people do make typos once in a while, please do not hesitate to email me so I can fix it right away, and also you can just re-download it. Every time you make a request for a file a new random mirror site should pop up, and they won't all be bad ;-)
-Linc Fessenden

In the Beginning there was nothing, which exploded - Yeah right...

User avatar
Gomer_X
Posts: 901
Joined: Fri Jun 03, 2005 1:31 pm
Location: Cincinnati, Ohio, USA
Contact:

Re: mirror.php code not working

Post by Gomer_X » Tue Sep 26, 2006 8:13 am

Linc wrote:By the way, if you do encounter this, and you all probably will on occasion as people do make typos once in a while, please do not hesitate to email me so I can fix it right away, and also you can just re-download it. Every time you make a request for a file a new random mirror site should pop up, and they won't all be bad ;-)
The real problem is I mistyped the URL when I added the show to the feed (I think). Can we add some error checking to the script? Pinging the URL to see that the file exists would help. Once I've submitted my mirror, I have no way of verifying it unless I repeatedly hit the the feed until I get my mirror. For extra points you could check the submitted URL to make sure the file is for an existing show, and that the size is right.

In the mean time I'm working on some automation on this end so my human error can be eliminated. :)

User avatar
Linc
Site Admin
Posts: 345
Joined: Mon Apr 26, 2004 11:54 pm
Contact:

Re: mirror.php code not working

Post by Linc » Tue Sep 26, 2006 11:08 am

Gomer_X wrote:
The real problem is I mistyped the URL when I added the show to the feed (I think). Can we add some error checking to the script? Pinging the URL to see that the file exists would help. Once I've submitted my mirror, I have no way of verifying it unless I repeatedly hit the the feed until I get my mirror. For extra points you could check the submitted URL to make sure the file is for an existing show, and that the size is right.

In the mean time I'm working on some automation on this end so my human error can be eliminated. :)
I believe I am goint to put a link on the result page when you add your link, that points back to itself. That way you can just click on it quickly to see if it is valid.
-Linc Fessenden

In the Beginning there was nothing, which exploded - Yeah right...

User avatar
Gomer_X
Posts: 901
Joined: Fri Jun 03, 2005 1:31 pm
Location: Cincinnati, Ohio, USA
Contact:

Re: mirror.php code not working

Post by Gomer_X » Wed Sep 27, 2006 9:03 am

Linc wrote: I believe I am goint to put a link on the result page when you add your link, that points back to itself. That way you can just click on it quickly to see if it is valid.
W00t!! That would work. Simple but effective!

Post Reply