General discussion
Thread display: Collapse - |
All Comments
Start or search
Create a new discussion
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
Virtual Pages / Scripts as Directories
example
http://www.myserver.com/animals/mammals/dog
A mammals file exists at http://www.myserver.com/animals/
with the following code:
<?php
require_once($_SERVER['DOCUMENT_ROOT'] . '/_includes/config.php');
list($a, $cat_id) = explode("/", $_SERVER['PATH_INFO']);
if($cat_id=='' || !is_numeric($cat_id)){
echo "Invalid or no parameter supplied";
exit();
}
if(!Biology::validCategoryID($cat_id)){
echo "Invalid category supplied";
exit();
}
Does a redirect or dns alias need to be setup for the mammals file to work properly? Is this an "approved" method of displaying virtual pages?