Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Calling a file in php


w9914420 - 8:54 am on Jun 28, 2009 (gmt 0)


I simply want to target the index.php on my server which is located in the root I have created the following php script

<?php
$folder = "";
if(stristr($_SERVER['REQUEST_URI'], "index.php"))
$folder = "home";
if(stristr($_SERVER['REQUEST_URI'], "/approach/"))
$folder = "approach";
if(stristr($_SERVER['REQUEST_URI'], "/services/"))
$folder = "services";
if(stristr($_SERVER['REQUEST_URI'], "/projects/"))
$folder = "projects";
if(stristr($_SERVER['REQUEST_URI'], "/contact/"))
$folder = "contact";

?>

I can target all the other folders in my root, but in php how would i specify the server to target that index.php file on root level, i have tried various other methods but no joy

regards

w9914420


Thread source:: http://www.webmasterworld.com/php/3941884.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com