Posted by Toby Inkster on 01/20/29 11:38
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>
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|