'ello all.
This is the first time I have come across this problem without the file actually being corrupt or missing.
When I visit website.com/index.php/this/is/GET/vars on my web server, everything works fine. But when installing the site on another server, I get "No input file specified."
I am thinking that Apache is trying to use the entire URL as the document, instead of stopping at index.php.
All I am doing is internally parsing the URL and using the URL information like mod_rewrite, without actually using mod_rewrite.
Is there somethign I can change with the code as opposed to Apache?
/* get page information from URL */
$PAGE = $_SERVER['REQUEST_URI'];
/* put URL and vars into slicable chunk -> index:/var1/var2/var3/etc */
$PAGE = preg_replace("#[/]?(.*)[/](.*)\.php(.*)#", "\\1#\\2:\\3", $PAGE);
/* explode into array -> [0] = page [1] = /var1/var2/var3/etc */
$pagevars = explode(":", $PAGE);
$thisPage = explode("#", $pagevars[0]);
$thisPageUpper = $thisPage[1];
$thisPagePrefix = $thisPage[0];
/* set $page to actual page (i.e. index.php) */
$PAGE = strtolower($thisPageUpper);
/* explode to get page vars (zero is empty) -> [1] = var1 [2] = var2 etc */
$pagevars = explode("\x2F", $pagevars[1]);
/* page fix -- setting all pages to index.php */
/* actual page is first (NOT ZERO!!!) in exploded array */
/*set URL var pointer to /var1/var2/var3/etc */
$PAGEVARS = $pagevars;
array_shift($PAGEVARS);
// then I use the variables like so
if($PAGE == 'index')...
if($PAGEVARS[0] == 'this') ...
Any help would be great.
TIA!