473,394 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

register_globals=off question

With register_globals=off, is there anyway to use the $HTTP_USER_AGENT and
$REMOTE_ADDR variables?

I would like to log those variables when people visit my site.

Thanks

Jul 17 '05 #1
2 1821
Kenton Smith wrote:
With register_globals=off, is there anyway to use the $HTTP_USER_AGENT and
$REMOTE_ADDR variables?

I would like to log those variables when people visit my site.

Thanks


use $_SERVER['HTTP_USER_AGENT'] and $_SERVER['REMOTE_ADDR']
~Cameron
Jul 17 '05 #2
Do an extract($_SERVER); at the beginning of your script.

Uzytkownik "Kenton Smith" <sm*****@shaw.ca> napisal w wiadomosci
news:MkXYb.542091$JQ1.329243@pd7tw1no...
With register_globals=off, is there anyway to use the $HTTP_USER_AGENT and
$REMOTE_ADDR variables?

I would like to log those variables when people visit my site.

Thanks

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Martin Ziebart | last post by:
I'm stuck tryin to use my own (db-connected) session-handlers. After registering them with session_set_save_handler () everything works fine as long as register_globals is turned on. After...
1
by: Matthias Pospiech | last post by:
I need to access $DOCUMENT_ROOT together with the option register_globals = Off How can I acces the content of $DOCUMENT_ROOT with another variable since it is empty with register_globals = Off ...
2
by: Phil Latio | last post by:
I am newish to PHP and wish to create an authentication system where a new user is required to validate/complete their sign-up by clicking a link in an email. I am probably capable of putting...
15
by: news | last post by:
You'd think it'd be easier to find the answer to this question. Did a search, and all I can find is people asking why something's not working and people replying it's because register_globals is...
17
by: peter | last post by:
I just took over the website at work. I am still learning PHP. Register_globals are on and the script appears to be coded to take advantage of this. I know how to recode the script, but am unsure...
10
by: Kurda Yon | last post by:
Hi, I set the register_globals off and try to get my code working under the new conditions. I stuck on the following problem: Warning: Unknown(): Your script possibly relies on a session side-...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.