473,388 Members | 1,423 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,388 software developers and data experts.

Capturing the username logon the computer(windows 98)

xxoulmate
how can i captured the username logged on the computer.,
and print it in the php page.
tnx
Aug 18 '07 #1
2 1426
Atli
5,058 Expert 4TB
What compuer? The server or the client?

If you are talking about the client, the short answer is: you cant! No decent browser would ever give your script access to that kind of information.

If you mean the server however, that's easy. Just do this:
Expand|Select|Wrap|Line Numbers
  1. echo exec('whoami');
  2. // or maybe
  3. echo exec('echo %USERNAME%');
  4.  
Aug 18 '07 #2
yap the client user what i want to get the username.,
tnx
Aug 21 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: dave | last post by:
Hi I have succesfully captured the users login detail, but I now have a new problem I have assigned the login to a Session Variable, however when I come to use the string stored in the variable it...
3
by: LongRunner | last post by:
Hi, I am writing an application that contains a logon function. I want to use the Windows Logon account to logon my application. Does .NET provide classes for me to do it? In fact, i am using the...
1
by: Mohit Sachdeva | last post by:
Hello folks. I want my app to process windows events first, so that it has some kind of a "global hook". The scenario is - i want my app to process all messages for "F3" key (or any other key for...
1
by: Jonny | last post by:
Hi all, Does anyone know how to capture the Windows Keys (I know that they are out of the ascii key range) and how to capture and record Mouse movements? Thanks, /Jonny
0
by: BK Kim | last post by:
Hello. I am tryring to find a way to capture some of the windows messages ( eg. messages for creating, deleting files ) in c#. In windows application, i can override wndProc method to capture...
1
by: Rick | last post by:
Assuming proper authentication, does the framework offer a way to capture Windows Server 2003 system security events, as found in the event viewer log files? I'd like to be able to write some...
8
by: Raj Thakkar | last post by:
Hi, I am currenty working on a site for intranet. I have a user control in the header of every page that will be displayed only if people with certain username are surfing the site. These lists...
5
by: Sarah | last post by:
What is the best way to close my program gracefully and have the computer restart on a Windows XP system?
7
xxoulmate
by: xxoulmate | last post by:
what script do i use to determine the username currently logged on the computer., tnx is there any way to do it using php or javascript.,
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.