http://cork.linux.ie/projects/
Not much there yet. I'll post snapshots of my work on Io there for
anyone to examine.. comments are welcome, and I'd dearly appreciate
feedback on the regex used to transform
'<a href="file.html' to '<a href="http://somehost/somedir/file.html'
Currently the code is
$page=eregi_replace( "(href=\")[^mailto]([.^</a>]*)", "\\1$host/", $page
);
where $page holds the html data and $host is simply the hostname without
directories
two bugs so far:
1. It seems to work on every second link for some reason.
2. I haven't got around to adding in directories yet.
FYI: there's a $url variable defined as
http://somehost/directory/file.html
Donncha.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!