perfect! I was trying to do $this = "text" $email "more text" and such
I havent seen this used much? It will be very useful for me, now all I need
to do is get it to work on the AS/400s!
----- Original Message -----
From: "Joey Kelly" <joey@joeykelly.net>
To: <nolug@joeykelly.net>
Sent: Monday, March 08, 2004 5:37 PM
Subject: Re: [Nolug] Dynamic Text
> On Monday 08 March 2004 16:47, Jeff Lee spake:
> > Is it possible to do something like this:
> >
> > Have one long paragrah of data with parts that are changeable but still
> > have the paragraph be stored in the includes.inc file
> >
> > Like:
> >
> > $someemail = "jeff@think-solutions.com";
> >
> > $sometext = "This is some sample text which I want to have other things
> > included in." $someemail "is my work email address etc.";
> >
> > SO THAT it would print this:
> > This is some sample text which I want to have other things included in.
> > jeff@think-solutions.com is my work email address etc.
>
> All you have to do is print the string, enclosed in double-quotes, and it
will
> evaluate any variables it finds:
>
> $someemail = "jeff@think-solutions.com";
>
> echo "This is some sample text which I want to have other things included
in.
> $someemail is my work email address etc.";
>
> Use a print statement if you like; I always default to echo.
>
> If you use single-quotes, $someemail is not evaluated.
>
>
> <snip>
>
> --
>
>
> Joey Kelly
> < Minister of the Gospel | Linux Consultant >
> http://joeykelly.net
>
>
> "I may have invented it, but Bill made it famous."
> --- David Bradley, the IBM employee that invented CTRL-ALT-DEL
>
> ___________________
> Nolug mailing list
> nolug@nolug.org
>
___________________
Nolug mailing list
nolug@nolug.org
Received on 03/08/04
This archive was generated by hypermail 2.2.0 : 12/19/08 EST