- HTML Question
- Posted by Alan Little on February 20th, 2004
I want to distribute a set of example pages with Phorm. They have a
substantial amount of images - not a lot for a web site, but more than I
want to include in the distro - and also a number of sound files. My
intention is to have the graphics and sound files on my server, and just
distribute the pages. I know I can avoid having to put fully-qualified URLs
in the SRC and HREF attributes by using the BASE tag, but this also affects
the <A> tags for the inter-page links. Is there a way to specify that some
references should be relative and some absolute, without having to fully
qualify the absolute references?
--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
- Posted by GreyWyvern on February 20th, 2004
On Fri, 20 Feb 2004 13:57:11 -0600, Alan Little
<alan@n-o-s-p-a-m-phorm.com> wrote:
Not without hacks that'll make it work only under certain conditions.
As an alternative, you could pass it through a PHP script that adds
"http://www.yourdomain.com/" to the src attribute of all <img> tags before
sending the file on it's way.
Regular Expressions to do that sort of thing are easy.
Grey
--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollory that nothing is ridiculous.
- http://www.greywyvern.com - Orca RingMaker: PHP web ring creation and
management


