Jpoel Posted January 21, 2008 Share Posted January 21, 2008 hi guys i want to make an online now system for my visual basic program, one which shows who is using the program at the same time as others each user is asigned a UserID by visual basic, and i want to use a php script to somehow log this UserID into a text file and remove it once the program is closed. For example: User123 logs in, followed by User152 Each of the user's clients will automatically use PHP to update a text file held on my server in the form of something like this: &Usersonline=,User123,User152, User 123 then logs off, and the text file is altered again: &Usersonline=,User152, And i can then use Visual basic to parse this text file into a list box (thats the easy part ) Does anyone know how i could do this? Im not very familiar with MySQL so if any responses suggest that, please tell me the SQL Syntax, code to create tables, etc And please note, im not asking you to help me with the Visual Basic code, just the PHP/SQL Quote Link to comment https://forums.phpfreaks.com/topic/87032-solved-online-now-system/ Share on other sites More sharing options...
adam291086 Posted January 21, 2008 Share Posted January 21, 2008 Do you have a login system that verifies the users? If so how have you done this? Quote Link to comment https://forums.phpfreaks.com/topic/87032-solved-online-now-system/#findComment-445054 Share on other sites More sharing options...
Jpoel Posted January 21, 2008 Author Share Posted January 21, 2008 I'm not really looking to "varify" the users, this is only for a small college computing project Quote Link to comment https://forums.phpfreaks.com/topic/87032-solved-online-now-system/#findComment-445055 Share on other sites More sharing options...
trq Posted January 21, 2008 Share Posted January 21, 2008 Um, thats what a login system does. Verifies its users. Where are you stuck exactly? Any code? Quote Link to comment https://forums.phpfreaks.com/topic/87032-solved-online-now-system/#findComment-445072 Share on other sites More sharing options...
pdkv2 Posted January 21, 2008 Share Posted January 21, 2008 i can give you the code but tell me where from the user id come from. Quote Link to comment https://forums.phpfreaks.com/topic/87032-solved-online-now-system/#findComment-445077 Share on other sites More sharing options...
Jpoel Posted January 21, 2008 Author Share Posted January 21, 2008 the userID is generated by the visual basic program, so i could send it as a variable to the php script Quote Link to comment https://forums.phpfreaks.com/topic/87032-solved-online-now-system/#findComment-445082 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.