Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-21-2004, 03:14 AM   #1
AssFairy
Confirmed User
 
Join Date: Jun 2003
Location: AssTown
Posts: 674
Motherfucking stinking bitch of a URL - programmers check this link out.

I'm running my spider and indexing all the url's when suddenly the whole system freezes and eventually crashes, I managed to find the problem url and spent hours debugging my software looking for the fault.

Can you see what the problem was

http://x-star.com1.ru/xstar.htm
__________________
I sale lube
AssFairy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2004, 03:20 AM   #2
AssFairy
Confirmed User
 
Join Date: Jun 2003
Location: AssTown
Posts: 674
Quote:
Originally posted by Mystery Man
it has .com in it
Nope my url parser eats it for breakfast

results

TLD = .ru
Domain Name = com1
Subdomains= x-star
Path= "/"
FileName= xstar
File Extention = .html
__________________
I sale lube
AssFairy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2004, 03:39 AM   #3
blackmonsters
Making PHP work
 
blackmonsters's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,732
Quote:
Originally posted by AssFairy


Nope my url parser eats it for breakfast

results

TLD = .ru
Domain Name = com1
Subdomains= x-star
Path= "/"
FileName= xstar
File Extention = .html
It ate the wrong file extension.
blackmonsters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2004, 03:44 AM   #4
AssFairy
Confirmed User
 
Join Date: Jun 2003
Location: AssTown
Posts: 674
Quote:
Originally posted by blackmonsters


It ate the wrong file extension.
No that's just my bad typing, the url parser breaks down any url into all its individual component parts including port numbers user data bookmark tags cgi strings blah blah blah...

you'll never spot what is wrong with the url (as far as programming is concerned)
__________________
I sale lube
AssFairy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2004, 05:16 AM   #5
rogerbo
Confirmed User
 
Join Date: Jan 2002
Posts: 193
I realy don't see the problem
com1.ru is a Domain and x-star the subdomain.
you can also call x-star.ru also a domain
all on the same host agava.ru
so where should be the problem or secret ?
rogerbo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2004, 06:17 AM   #6
AssFairy
Confirmed User
 
Join Date: Jun 2003
Location: AssTown
Posts: 674
Quote:
Originally posted by rogerbo
I realy don't see the problem
com1.ru is a Domain and x-star the subdomain.
you can also call x-star.ru also a domain
all on the same host agava.ru
so where should be the problem or secret ?
Well this had me stumped for a long time.

The domain name is "com1" and that just so happens to be used by computers as a communications port, when I was trying to read or write to a file called "com1" the data stream was being redirected to the bloody printer

(not exactly what happened but its close enough and a lot shorter to explain)

Just wondered if anybody would spot that
__________________
I sale lube
AssFairy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2004, 07:23 AM   #7
rogerbo
Confirmed User
 
Join Date: Jan 2002
Posts: 193
Hehe what kind of printer are you using ??
the com ports are Serial ports used for Modems, Mouses, Cammeras and so on on the older PCs.
Printer normaly do run Paralell over lpt ports and as today most is run through UBS ports there is not that much use for the com ports anyway LOL.
rogerbo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2004, 08:01 AM   #8
AssFairy
Confirmed User
 
Join Date: Jun 2003
Location: AssTown
Posts: 674
Quote:
Originally posted by rogerbo
Hehe what kind of printer are you using ??
the com ports are Serial ports used for Modems, Mouses, Cammeras and so on on the older PCs.
Printer normaly do run Paralell over lpt ports and as today most is run through UBS ports there is not that much use for the com ports anyway LOL.
Well I did say it wasn't exactly how it happened

Try renaming a text file on your pc to "com1.txt" and it won't let you because its an illegal file name.

In VB you can look for the existence of a file like this

LookForFile$ = DIR("somefile.txt")

if "somefile.txt" exists then LookForFile$ would be set to "somefile.txt" otherwise is would be set to an empty string .. LookForFile$ = ""

Now if you try the following

LookForFile$ = DIR("com1.txt")

LookForFile$ = "com1" even though there is no such file as "com1.txt"

My program would then start to open "com1" for read write access because it thought the file existed and as far as I can tell started streaming data to the port "com1" (I thought that was the printer port but its not its "lpt1")

Its just a stupid one off domain name, its never happened before and I've spiderd hundreds of thousands of pages.
__________________
I sale lube
AssFairy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2004, 09:50 AM   #9
nuclei
old school fart
 
Industry Role:
Join Date: May 2001
Location: Florida
Posts: 1,015
There is nothing wrong with the url at all, which you suggested there was.

There is only something wrong with your spider and the way it names files.
__________________
The next generation of SEO
nuclei is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.