Assign Variable from Directory name?
In : ttp://www.ovationmortgageloans.com/jacksonville%20mortgage%20rates.html
<?php
$keyword = preg_replace("/_/",' ',$_REQUEST["keyword"]);
?>
Gets the term before the .html so everywhere I place <?php echo $keyword; ?> on the page that term will show up.
Can this be done for a static directory :
mysite.com/florida/jacksonville%20mortgage%20rates.html
So that I could place something like <? echo $dir; ?> and the intended directory name would show up everywhere that code is placed?
Thanks!
-
KirkMcD -
[ 1 ] Thanks
{{ DiscussionBoard.errors[3919923].message }} -
-
andrejvasso -
[ 1 ] Thanks - 1 reply
{{ DiscussionBoard.errors[3919987].message }}-
newbie365 -
[ 1 ] Thanks
{{ DiscussionBoard.errors[3920508].message }} -
-
-
scotl47 -
Thanks
{{ DiscussionBoard.errors[3920858].message }} -