[nycphp-talk] <script language="php">
chris at psydeshow.org
Thu Feb 6 14:05:32 EST 2003
Jon Baer wrote:
>A small but annoying thing, I have been using this convention for a while
>but always wonder why you really couldn't use it for header() since it is
>your first code to pass through:
> header("Location: file.php");
>It is so much cleaner but I get the feeling it's not really acceptable ...
>(this is coming from someone with JSP exp), in fact is it possible to write
>parsing for a custom tag?
><script language="php" src="foo.php" arg1="bar"/>
>Sorry for off the wall question :-)
Wow, does this work?
in the page that way:
foo.php would return something like this when called with $format==js :
document.writeln('Hello. Arg equals bar.');
It would be fun to see this work the way you imply, though, with PHP
outputting HTML as a client-side include. Never tried it.
More information about the talk