![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| I want my PHP code behaviour depends on container HTML page. Thus, PHP must know which page contains it. I can get that with $_SERVER['HTTP_REFERER'] but the PHP.NET doc states: "Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted." Is there another way to get the envelop HTML page name? TIA Claire | |||
| Advertisements |
| | #2 | ||
| "ease" <ease@wanadoo.fr> schreef in bericht news:bgjk1n$s3q$1@news-reader2.wanadoo.fr... > I want my PHP code behaviour depends on container HTML page. > Thus, PHP must know which page contains it. > > I can get that with $_SERVER['HTTP_REFERER'] but the PHP.NET doc states: > > "Not all user agents will set this, and some provide the ability to modify > HTTP_REFERER as a feature. In short, it cannot really be trusted." > > Is there another way to get the envelop HTML page name? > Try $_SERVER['REMOTE_ADDR'] instead... JW | |||
| Featured Websites | ||||
|
![]() |
| Tags: _serverhttp_referer |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| Featured Websites | ||||
|