Microsoft
Software
Hardware
Network
Question : PHP calling URL (which domain got me here?) PATH_INFO?
I have the case where a single hosting account (LAMP) needs to vary the contents depending on which URL was used. The client wants to have a subordinate "site" (unbranded) that his resellers can use, and it would display certain sections with different content substituted.
I need to know what is the best method to use (perhaps PATH_INFO? PATH_TRANSLATED?) in IF statements to know how to steer the content selection.
This steering would be coded to affect ALL aspects of menus,etc. in order to "insulate" the reseller site version to show no hint (even in subsequent browsed URLs in the browser's address bar).
Any advice would be helpful for the top-level aspects. (I'm fine once past the IF statement)
thanks
Answer : PHP calling URL (which domain got me here?) PATH_INFO?
The variable $PHP_SELF will have the path+filename in it or you can use $_SERVER["SCRIPT_URI"], $_SERVER["SCRIPT_URL"], and many other built in variables to find out what url / file system path was called.
Random Solutions
How do I manage connection to MySql db from VB.NET ?
How do you mirror a hard drive
VB .Net 2008 Express Deploy Application
ASP Menu control with css working in Firefox, and IE, but not in Chrome
Is it possible to have backgrounds automatically shuffle every so often on an iPad?
Active Directory Query
Allow user to navigate to a folder in windows directory and select the PATH to the file in a .aspx page. Is this possible and how?
Trying to change selection in DDL but when i read it i get the programticlly set value
WNLB between to exchange 2010 CAS Servers
How to add multiple names to one field from a access form