
August 13th, 2002, 05:15 AM
|
|
|
|
Join Date: Apr 2007
Location: Melbourne, VIC, Australia
Posts: 56
Time spent in forums: < 1 sec
Reputation Power: 2
|
|
|
Source Code
I checked out the source code of the source.php file on php.net and this is what i found:
php Code:
Original
- php Code |
|
|
|
<?php echo "No page URL specified."; } "/forums" => 1, "/common" => 1, "http://www.nr1webresource.com/" => 1, "/include" => 1 ); // The separate manual language dirs are legal dirs if (preg_match("!^/manual/(en|pt_BR|cs|nl|fr|de|hu|it|ja|kr|es)$!", $dir) || $legal_dirs[$dir]) { $legal_dir = TRUE; } else { $legal_dir = FALSE; } // If this is a legal dir, then it is under the docroot, else use basename if ($dir && $legal_dir) { $page_name = $DOCUMENT_ROOT . $url; } else { } } else if (@ is_dir($page_name)) { echo "<p>No file specified. Can't show source for a directory.</p>n"; } else { echo "<p>This file does not exist.</p>n"; } ?>
The product is:
Array (then the source).
For all I try, I cant seem to find out why it says "Array"!
Help would be appreciated, and thanks a lot,
Liam Getreu
http://www.i-source101.com
|