RE: [phplib] Applying a template to a database output From: Adam Robertson (adam <email protected>)
Date: 06/22/01

Hi,

If it really is LOCALHOST, you could just use 127.0.0.1 to always point to
Localhost?
Otherwise look at the str_replace or ereg functions.

Adam Robertson
Internet Developer

Random Media
14 South Audley Street
Mayfair
London W1K 1HN
t.+44 (0)20 7923 4298
f.+44 (0)20 7598 8826
www.randommedia.co.uk

> -----Original Message-----
> From: Roberto Guerreiro [mailto:zwatt <email protected>]
> Sent: 22 June 2001 15:50
> To: phplib <email protected>
> Subject: [phplib] Applying a template to a database output
>
>
> Hi!
>
> I'm developing a website using templates and mysql. THe
> problem is that
> some times i have the need to apply templates to the output of the
> database.
>
> i.e. when i read something like this from the database:
> |id |name |url
> |1 |nav1 |http://{LOCALHOST}/nav1.php
>
> i want to substitute {LOCALHOST} for the url of the localhost.
> How can i do that?
>
> Thanks for your attention!...
>
> ___________________________________
> / SECCAO DIGITAL - AEIST \
> | http://joel.ist.utl.pt |
> |-------------------------------------|
> | ROBERTO GUERREIRO |
> |-------------------------------------|
> | email: zwatt <email protected> |
> \___________________________________/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>