Re: strings with $ sign
| From: | martinahingis | Date: | Mon, 01 Apr 2002 21:08:33 +0000 |
| Subject: | Re: strings with $ sign | ||
| References: | 1 2 3 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-12868@lists.php.net to get a copy of this message | ||
use this
$result_html = " ... html code....<-- \" FOOTER CENTER \$LOGOIMAGE
footer.jpg \" !--> ... more html code";
---------------
martina.
"Sviss Cobazor" <sviss@nospam.dk> wrote in message
news:20020310105643.57938.qmail@pb1.pair.com...
> The thing is that the result html code is to be parsed by HTMLDOC (pdf
> generator) to create pdf from the webpage. By inserting <-- "some string"
> !--> into the html, HTMLDOC can catch these strings and act from them.
>
> example:
>
> $result_html = " ... html code....<-- " FOOTER CENTER $LOGOIMAGE
footer.jpg
> " !--> ... more html code";
>
> result_html is the page contens for HTMLDOC to parse and through that
catch
> the footer code and insert footer.jpg as the footer on the pdf pages.
>
> the problem is that php converts $LOGOIMAGE to a php variable. \$LOGOIMAGE
> doesn't seem to work.
>
> "Robert Janeczek" <rashid@ds.pg.gda.pl> wrote in message
> news:20020309105808.9529.qmail@pb1.pair.com...
> > > I just wanted to know how to use strings with $ sign.
> > >
> > > If a word starts with a dollar sign php will think it's a variable,
how
> > can
> > > I make
> > > " $bla bla and bla $bla " to stay that way?
> > > Will this work? " \$bla bla and bla \$bla "
> >
> > don
t use "" - use ''. php doesnt parse
> > variables in such kind of
> strings.
> > ' $bla bla and bla $bla '
> >
> > " \$bla bla and bla \$bla " - this should work too, but i haven`t
> checked.
> >
> > rash
> >
> >
>
>