|
Posted by cwdjrxyz on 11/04/54 11:38
Toby Inkster wrote:
> cwdjrxyz wrote:
>
> > An example is at http://www.cwdjr.net/souearly/songs2Root.php . Much
> > of the code is written in php which you will not be able to see when you
> > view the source, but I can supply a text file of the php.
>
> Tip for writing example PHP files...
>
> 1. Include the following at the very top of your PHP file:
>
> <?php
> if ($_GET['source']) {
> highlight_file($_SERVER['SCRIPT_FILENAME']);
> exit;
> }
> ?>
>
> 2. And include the following near the end:
>
> <p><a href="<?=$_SERVER['PHP_SELF']?>?source=1">View source.</a></p>
Thanks, Toby. That is useful when you want someone to view the php code
easily. Actually the page I gave is just part of a set of pages that
can be reached at http://www.cwdjr.info/media/playersRoot.php . Links
to the external script, php text, etc are given near the bottom of the
page under the description of the scripted WMP embedded player. I have
been working on a new section for several embedded broadband video
formats, and this will be added sometime in the future. At that time I
might revise older parts of the page set somewhat.
However, I should note that one can use the basic WMP player, without a
lot of fancy stuff and without script, to play a .wax playlist which
can contain a mixture of several audio formats supported by the WMP.
The link at the extreme upper left of the page referenced is such an
enbedded example.
[Back to original message]
|