28-Apr-2024 00:25 GMT.
UNDER CONSTRUCTION
[Motd] MOTD 18/Feb/2001ANN.lu
Posted on 18-Feb-2001 19:12 GMT by Christian Kemp17 comments
View flat
View list
As you might have noticed, I did some minor maintenance on ANN's layout and re-arranged a few things while fixing a few inconveniences. What do you think?
List of all comments to this article
Sorted by date, most recent at bottom
Comment 1John Block17-Feb-2001 23:00 GMT
Comment 2Anonymous17-Feb-2001 23:00 GMT
Comment 3Hagge17-Feb-2001 23:00 GMT
Comment 4Johnny C. Kitchens18-Feb-2001 23:00 GMT
Comment 5Han van Gelderen18-Feb-2001 23:00 GMT
Comment 6Graham18-Feb-2001 23:00 GMT
Comment 7Dave18-Feb-2001 23:00 GMT
Comment 8the man in the shadows18-Feb-2001 23:00 GMT
Comment 9Anonymous18-Feb-2001 23:00 GMT
Comment 10Christian Kemp18-Feb-2001 23:00 GMT
Comment 11Christian Kemp18-Feb-2001 23:00 GMT
Comment 12Christian Kemp18-Feb-2001 23:00 GMT
Comment 13Christian Kemp18-Feb-2001 23:00 GMT
MOTD 18/Feb/2001 : Comment 14 of 17ANN.lu
Posted by Christian Kemp on 18-Feb-2001 23:00 GMT
In reply to Comment 9 (Anonymous):
> That brings me to an idea CK. Is there any way that you could check to see if
> someone posts a message with "http://" and post a warning message as needed.
> Same goes for "*@*.*" (email purposes). Doing so would help eliminate the
> badly formed posts.
Detecting all kinds of links is kinda hard, since you never know which character really ends an URL. I wouldn't even dare to think what kind of regexp (if that's even the technical term) I would have to come up with to cater with all kinds of argument separators and special characters the various websites tend to use. What could perhaps be done would be to just count HREF's and http's or mailto's and if either one exceeds the other, complain.
> Another idea would be to check and see if the message does not contain
> any "<P>" or "<BR>" tags.
In some cases, paragraph separators do make sense, even if I try not to use them.
> I'm working with Apache/1.3.6 but I haven't clue one about PHP/3 or PHP/4. I
> know that it's possible, but a pain nonetheless. Hell, if it was ARexx, I'd
> write it for you and have it at your door in a couple shakes. :-)
I'm not using PHP at this point, everything is in Perl.
Depending on the upcoming Dreamhost update, I might have access to mysql and then also use PHP, but on the other hand I think I'll just keep on using Perl and flat datafiles since it seems to work well enough for a site the size of ANN.
Jump...
#15 Graham
TopPrevious commentNext commentbottom
List of all comments to this article (continued)
Comment 15Graham19-Feb-2001 23:00 GMT
Comment 16AmigaPower20-Feb-2001 23:00 GMT
Comment 17Leon Davidoff24-Feb-2001 23:00 GMT
Back to Top