note 47449 deleted from function.highlight-file by tularis
| From: | tularis@php.net | Date: | Tue, 16 Nov 2004 20:46:53 +0000 |
| Subject: | note 47449 deleted from function.highlight-file by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-80614@lists.php.net to get a copy of this message | ||
Note Submitter: hank at compusolver dot com
----
For files in same folder as your executing script:
<?php
$f = $_REQUEST['f'];
highlight_file($f);
?>
Otherwise:
<?php
$g_basepath = $_SERVER['DOCUMENT_ROOT'] . "/";
$f = $g_basepath . "filename.php";
highlight_file($f);
?>
----
Reason: useless example