Users Online
Could some one please explain to me how to display the number users online in a table. I think I have a rough idea on how to do it, I am just..well..lost on how to do it
Basically I am asking how to add the IP into the DB, and when they leave it deletes thier ip from the DB. And it would count the number of IPs in the DB and convert that to a number. Any ideas?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Users Online Help!
I have a column in my datasase and whenever you login, it sets it to "yes". The Users online just retrieves all users that have "yes" in that column. However, the only way to get the user off the Users Online list (make the column "no") is to go via logout. I don't want this to be the users only choice. I want the online column in the database to be set to "no" if they have been on a page for 30 minutes. Now I figured out most of the code, but I can't seem to find a way to track the number of minutes (or any time) that the user has been on the page. I tried incorporation JS but I can't get that to work. I tried cookie's but I got nothing. BTW: I'm using sessions so $_SESSION['online'] controls the online status. Can someone please help me track the minutes the user has been on the page?
Users Online?
How would I go about implementing a feature that lists the number of users that are currently visiting my site (registered users with user info stored in a cookie)?
Users Online
Is there a way to see how many users that are online on a webpage right now!
Users Online
I have a timer and it times out is there anyway that i can make that timer give the user a window to extend the timer to stay signed on. because everytime it times out the user is no longer signed in on the system so some of the features I am afraid stop working. Code:
Users Online
I have a SQL Database which holds information on the people who are online on my forum. On one of my webpages I want to display a query showing which users are online. How would I use PHP to display the results of this query?
Users Online
I'm trying to create a users online script for only those that are logged in. I have my users table set up, and the cookies (not sessions) i use are $_COOKIE['loggedin'] (true/false values) to see if the user is logged in. And $_COOKIE['uid'] to grab info about their profile. You have to be logged in to view the website, so I thought users would like to know whose online with them. How do I do this? I read other related topics and people said use a timestamp and another mysql table? Whats a timestamp?
Users Online Script
I have the below code and it works, but all that it shows in the words "user online" and not the number why? Code:
Sessions Users Online
i have a signin site and in the page accessible only to members there is a section updating all the time with a refresh with a list of users currently online. Fine all this works and I have done the signout part no problem which deletes the users entry in the sessions table and kills the cookie on his machine at the same time. now if the person does not logout i have the cookie set to expire in an hour, so for that user when they come back they will have to log on, however the entry in the sessions table will stay there so to other users on the site it will look like the person is always logged on, get me? so is there a way to kill the entry in the sessions table after a certain amount of time or will using sessions in php4 help solve this problem in any way.
Displaying IP All Users Online
I need your help-I want to display all users which are online on my web page and I don't know how to do this. I know how to do this whit one IP but for more - I don't. HELP ME :o(
Online Calendar For Users
Does anybody have a script or know where i can get one so that my website will now allow the users to record events on an online calendar when they log in?
No.of Users Online Count
i want to find a simple way of incorporating into my website the number of people which are currently viewing. I just want to be able to display a simple message saying "there are people online". How can this be obtained using PHP, or does a database need to be used too?
Registered Users Online
Right now I'm programming a user authentication system in PHP and I have a question about a fun feature I want to add. I want to have one of those things that tells you if a user is logged on at the moment, such as the one on PHP Freaks. I was thinking that I should have a mySQL table dedicated solely to online users. I just don't know how (and where) I should put the script that deletes old users from the "online" table, say if the users didn't use the log out feature, but just closed his/her browser.
Active Users Online
I am trying to keep track of the active users who are online. How would I implement a system of this nature?
Track Users Online With Sessions?
Since I'm on the topic of sesions, I've seen a few examples of tracking online users using a mysql table and inserting the session and timestamp and checking it at period to remove it from the list after expiration time but is there a simpler way? Is there a way to count how many active sessions there are open at one time? I don't care to see user info but would like to at least know how many people are online. I guess getting logged in users and guests would require using a table or something. Is there any information on how to do this?
Show List Of Users Online
How can i list the users logged into the system? Maybe save the list of session id in application attribute?
Track Users Online Time
I need to track the time online of my users on a site. Just like on here where you can see how many days/hours/minutes you have been logged in. I'm a little stuck on how to start. I've done some searches for this sort of thing but I haven't come up with anything decent. Any ideas or places that you can point me to?
Creating A Users Online Page
I'm currently creating a Users Online page for my php forums. And I was wondering about a couple of things. When the user logs in, the script I created saves the username/session_id into a DB table called users_online, and lists the elements of that table on the Users Online page. All good and nice except for two things: - How can I remove a user from the online list (DB?) when his session times out and he's offline? I wrote a simple function that remove him from the Users Online page if he clicks the logout link, but what if he simply closes the browser window? He'll just stay on the online list. - How can I prevent duplicate usernames from showing up in the users online page? For example, I log into my account from two different browsers, each with a different session, and it shows the username twice! What to do?
Allowing Users To Use Excel Worksheet Online.
i am working for a charity here in the UK and one of our sources of donations is collecting money from muslims in the local community who are paying their annual zakat. Just a bit of background on it, zakat is compulsary on all muslims who can afford it. it basically means paying 2.5% of your earnings for the year to charitable causes eg. homeless people or charities. we have created an excel worksheet which our employees use to calculate a persons total zakat payable. now we would like people to be able to calculate their zakat themselves online via our website. so really, what we need is a way to display the excel file online and allow users to input their figures and let them work out their zakat payable online via our website. i understand this could become fairly complicated but if anyone has any suggestions on formats we can use or software that will help us it would be well appreciated. remember, its for a good cause.
Maintaing List Of "online" Users
I've seen a few posts asking for a way to keep a list of all "online" users. For example, when the user logs in, his/her record in the database is updated to show that the user is currently logged in. There can also be a "logout" script, which sets the user's status in the database to "logged off" when it is run. The problem is, however, that many users simply close the browser window, in which case the logout scripts does not run at all. So far, there only good solutions for this problem involved checking user's activity in certain time increments (like 5 or 10 minutes) and if there is none, assume that the user has logged out. However, this would not work for me, because I have to allow for arbitrary long periods of inactivity (while still browsing my website) before logging users out automatically (not just 5-10 minutes); but log users out immediately when they leave the website. While reading the user notes in PHP manual, I've come accross a possible way of solving this problem (this script can be included in an invisible frame on any website): PHP Code:
"how Many Users Online" With PHP: Session Or DB?
The following two URLs illustrate different approaches to the idea of showing "how many users online" issue. I am looking at two different sites where I am looking into implementing this type of script; one that has mySQL and one that has no db access of any kind; both use PHP 4.1. I (for once) understand what I would need to do to implement it; problem comes in as to which solution would be the fastest, most efficient and most secure considering that one of them deals with sessions (then there is the cookie issue, but that's another issue altogether, see http://www.webkreator.com/php/confi...n-security.html on security issues and cookies/sessions). What would one best recommend I use: the PHP/mySQL solution (for the non-db issue I would have to write complicated XML procedures instead), or sessions? Oh, more info: Site #1 (has mySQL) is Linux/Apache ??/mySQL 3.23.41 and PHP 4.1 Site #2 (has no DB) is generic UNIX/Apache ?? and PHP 4.1
CMS - Blocking Users From Certain Users
I'm created a content managment system and the only thing I can completed is a login script (most important) and how to use sessions. Right know, how do you make something that you can add a few users, give permissions like he is allowed to add news and reviews but not features, etc? Would I add something on the each page for inserting to see if they have such permissions?
Who Is Online?
i want to show how many visitors are on my homepage "index.php" at the same time. i do not want nor do i need them to register for membership or anything. i just want to simply show how many people are on at the same moment.
Who's Online?
Can somebody explain how these "Who's Online" features work? Do they check to see if a sessionid exists and isn't expired? Please describe the theory of how these work.
Who's Online - Timestamp
i am trying to make a "whos online" type thing. the following code returns all members as being online within the last 5 mins, but i dont think my "$last_hit" variable is working properly a when i return it i get "Resource id #3" i have tried: $last_hit[0] and $last_hit[0][0] but neither seem to work, anyone have any ideas ? PHP Code:
User Online
I need to be able to tell and post it out to a web page when/who is on my website. There is a login screen, a members mysql database, and the rest of the site is php.
Online Questionnaire
i need to create an html questionnaire form that depending on how many correct answers the user answers a different message will display. how do i go about doing that in PHP?
Who's Online Script
I'm trying to use a whos online script that shows how many vistors are online my site at a time. I'm getting an error message though and cant seem to figure it out. Here's the error that shows up where i want the script to display Warning: Supplied argument is not a valid MySQL result resource in /home/jbs/public_html/pages/clsOnlineUsers.php on line 215 And here's line 215 in the clsonlineusers.php script PHP Code:
Online PHP Editor?
I'm looking for a php editor that I can use online to modify files on my server. I did a search on the forums here, but most of the posts relating to this are rather old. The two things it needs to have is line numbers, and syntax highlighting. And it needs to be free, if possible. Ones I've found so far: 1) Helene Has weird bugs with the line numbers, if you erase lines, etc. 2) IDE.PHP Doesn't have syntax highlighting. 3) AboutEdit The plugin version is very nice -- very close to what I need. Not free, though, and I need to use this on many servers, so the cost starts getting prohibitive. Has anyone else run across something that might work? Plain text area with javascript, flash, java applet, I don't care.
IRC Online Count
is there any way of getting the online count for an IRC channel? Best, without creating a user and logging in?...
Online Calendar
some quick facts to get ya started: it supports multiple calendars, custom fields within calendars. users/groups and permissions. it will include: import/export to .ics format, event validation, and searching.
Best Online PHP Editor?
what are some of the best php editors that are available for online use. As in using to edit php directly taken from a database. Requirements: Syntax Highlighting, Line # Display I've seen examples of this on forums and such, but not for editing my personal code.
Online Indicator
I ran into some problems with a really cool Perl script that enables websites to tell visitors if the owner is currently online. I am trying to translate it into PHP because the Perl script forces site owners to use SSI. Basically, there are three scripts and a .dat file (for anyone who may be familiar with this, it comes from a script called "I am Online"). A config file (onlineconfig.php) An online checker file (check_online.php) I am online file (i_am_online.php) that site owners most use with a browser to tell visitors they are online Code:
If A Domain Is Online?
i'd like to see your best tricks to check if a domain is online ... how would you do this in php?
Looking For Online PHP Editors
I've seen lots of posts regarding PHP development environments, and I already have some good ones to use offline. Still, there has been many times when I'm away from home and need to get in and edit a file. Has anyone run across a good web based editor for PHP? Ideally, the editor would allow for updating a file and checking it's syntax using the built-in PHP functions for syntax checking and color highlighting. Once the result is accepted, the edited file could then replace the original. Pushed further out, it is easy to imagine an online editor with versioning ability to allow rollback to an earlier saved version. Another nice feature would be working on the code on one website and then either copying or uploading it to another site. All should be possible, and straight forward, but I'm not sure if anyone has put the pieces together in an open source project.
Practise Php Online?
is there a site where you can practise your php coding online? I'm at work and don't get ftp access to my server because they have it blocked. I would like to try some scripts to see how they responde.
Redirect If Online
Ive been looking for a nice Redirect if online script, but there i didnt manage to find one. I know its probably easy to create one, but i dont understand a single bit of PHP making this very hard for me . I found this code to redirect though: <?php header("Location: http://website.com/"); exit;?> My question: Whats the best way to extend this into a "redirect if server is online" script. should i add a "if http://website.com is online, then redirect" like rule? and how could i do this?>
Survey Online
i need to make an online survey which is going to bee presented in several pages where in which page are placed some questions. I am trying to store the answer in session until the last page of questions is presented and than to add the question to the mysql db, but it is not working. I can se that the variable of page1 can be printed in page 2 but not on page3 and further. My question is: How can I do so that I save all the answers to the session variables or something like that so that even if the users is surfing back and forth so the variable are not going to add to the db twice or more.
Best Online PHP Editor??
In your opinion, what are some of the best php editors that are available for online use. As in using to edit php directly taken from a database. Requirements: Syntax Highlighting, Line # Display ....... I've seen examples of this on forums and such, but not for editing my personal code.
Php Online Book
where can i find a good online php book for beginner. or give me any website that offers a good php tutorial that can be easily understand and with clear explanations. what can you suggest for starting learning php? where should i start to study php?how long it will take for learning php?is OOP in php is hard to learn?
Who Is Online Code
I have two tables.. one for guest(guest_online) and one for members(mem_online) the code for the guest is working just right but the one to insert the member if he is logged in is not working as it should.. When i logged in, it insert the username in the mem_online table, but when i refresh the page, it keeps incrementing the members. Code:
Online Players
I have some code and it is for a online players page so it shows who is online i am trying to get it so that if there are no MODS online then it says no MODS. I have the code for selecting the online mods below i tryed an else command but it returned nothing. Code:
Log Out And Set Online Counter To 0
I have a membership site that I created and as one of the last things I wanted to do was to set when members are online or not. So I know there was probably an easier method but what I did was add a online field to the member table. When a sucessful login is made they go to a loggedin.php page and on that page I have the following code: $query = "UPDATE mwcplayers SET online=1 WHERE id= '".$_SESSION['id']."'"; This works great the users online status is set to 1. My problem is when they log out and getting that online status set to 0 again: here is my logout page logout.php: Code:
Online Product Catalog
Can anyone suggest me a good and reasonably priced or free script for setting up an online product catalog. Like the other image library scripts the catalog can create its own thubnails and we can also input the details about the product.
Accepting Checks Online With PHP
I want to accept checks online via a secure php form. Other than the check information does anyone know what else I need to do?
Interactive Online Calculators With Php
We're looking to add several forms and calculators to our php system. My fisrt thought was to use a java applet, but I was wondering if these types of functions are possible using php without getting into JSP and Java applets. The problem is that we want numbers from the MySQL database to be auto filled in the calculator as default values. Does anyone know a good way to do these with php (or is JAVA the best way to go?
Any Idea About Online Radio?
I need an assistance on creating on Online Radio. Is there anyone already worked with Online Radio? I need few ideas how should this Online Radio could work and what sort of Equipment setups i may need?
|