NYCPHP Meetup

NYPHP.org

[nycphp-talk] include "<?php" in data

Birgit Wolter bw at megabit.net
Mon Nov 3 22:15:55 EST 2003


Why do you try to call php within php?
When you say $data = ......, you are already within php. So it should
be:
$data = "blah blah<br />".popbig('holster');

Should you be in the html part then it looks something like this:

<body>....
blah blah<br /><?php echo popbig('holster'); ?>
.....
</body>

Hope this helps.

Birgit


> I have this piece of data:
> $data="blah blah<br /><?php popbig('holster'); ?>";

> Popbig puts up a link to a javascript popup.

> When I echo $data, I get the "blah blah<br />" but not the popbig.  I can't
> say I'm completely surprised because I didn't really expect it to 
> work.  But how can I make it work?  Maybe write it out with hex characters
> or entities (doesn't really seem as though that would work either).

> I hope this is clear; I can provide more script if necessary.

> Michael G. Southwell =================================
> DNEBA Enterprises
> 81 South Road
> Bloomingdale, NJ 07403-1419
> 973/492-7873 (voice and fax)
> southwell at dneba.com
> http://www.dneba.com
> ======================================================

> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk





More information about the talk mailing list