Date: 06/22/01
- Next message: Thies C. Arntzen: "Re: [phplib] Oracle Database keeps disconnecting - or something"
- Previous message: Mike Green: "Re: [phplib] Canīt replace the fields using number off filed"
- In reply to: Roberto Guerreiro: "[phplib] Applying a template to a database output"
- Next in thread: Mike Green: "Re: [phplib] Canīt replace the fields using number off filed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Thies C. Arntzen: "Re: [phplib] Oracle Database keeps disconnecting - or something"
- Previous message: Mike Green: "Re: [phplib] Canīt replace the fields using number off filed"
- In reply to: Roberto Guerreiro: "[phplib] Applying a template to a database output"
- Next in thread: Mike Green: "Re: [phplib] Canīt replace the fields using number off filed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

