I am preparing to build my first PHP web page and plan to grab a variable from the server environment to be used in links.
If these links are written on the pages that are called by the $include function, will the variable created in the wrapper portion be recognized throughout the completed document?
For example, In my base document I have ...
Many Thanks for any help.
<?php $my_data = explode("/", $REQUEST_URI,3);?>
And in my "filename.php," I have ...
.... some content ....
<a HREF="'http://mydomain.com/' . $my_data ">Some Text</a>
.... more content ....
Would that variable be replaced with the value, and did I put the quoation marks in sufficiently and in the right places?