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
Using Page in ASP.NET
Windows XP + CVS on shared Drive + Configure NetBean + local repository
0x0000007E(0x C0000005,0X B976BEE9,0X BA4F7154,0X BA4F6E50)
How To Configure Windows 2003 Terminal Server
Lookup table value and assign to text box
MakeTable of 6 million records
How do i start mssqlserver service as network system account
How to find SQL 2000 installation settings ?
EOF sent to Glassfish when upload fails with mod_jk
How to replace hard drive on Sony VGN-NS240E laptop. PCG-7153L