How To Find A User Is Online In Local Intranet
how to find a user is in online or not in the local intranet with php. we have any default functions.
View Complete Forum Thread with Replies
Related Forum Messages:
Querying Online Databases From Intranet/localhost
Firstly, is querying online databases from localhost/intranet servers possible? Secondly, if it is could someone shed some light on how I would go about it.... Ideally a small part of the intranet system would just contain two sets of db connects: $db1 = mysql_connect("onlinehostname", "username", "pass"); mysql_select_db("databasename", $db1); $db2 = mysql_connect("offlinehostname", "username", "pass"); mysql_select_db("databasename", $db2); but I'm guessing this is simple method is impossible.... is there a way to accomplish something similar? as I would like to be able to take parts of an online database into an offline one if they were approved..
View Replies !
Hyperlink From Intranet Web Page To Local Files On My Computer
I'm creating a company intranet, and every employee has certain program we want them to be able to run from it, meaning we want the link to the program to be on the intranet page. For example, Adobe Photoshop resides on all the employees computer under "C:Program FilesAdobePhotoshop 7.0Photoshop.exe" However, when I enter that as a hyperlink on the page, it does not run the program. Is there a way to get a web page to run a program on the local host?
View Replies !
Include A File That Is Online - Not Local
Someone asked me to include one of their php files in my code that is hosted on their server. I have done this like so: include("http://www.somesite.com/level2/includes.php"); $info = return_user_info($_COOKIE["provident_email"]); echo $info['Last Name']; But i get this error: Fatal error: Call to undefined function return_user_info() Is this even possible? Or do i need to store that include.php file locally?
View Replies !
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.
View Replies !
How Many User's Online
im new here and i just want to know where can i get a hit counter that say's the hit's and how many user's online that's all i want or could some one give me some tip's on making one or give me a url of a place to learn php.
View Replies !
Online User
The php page just has a function that access the variable defined by this script(stored in a text file). I would like to modify this script to not ++ the variable, but I am unsure of the items I should change w/o ruining the script.
View Replies !
User Online Script
I will like to know how can I check an IP to see if the ip is alive or DEAD. I was going to do this with the function fsockopen(); but it require a port.
View Replies !
User Online Time
I was searching trough internet and didn't find anything useful .. I want to do user online time counter... Like this one on phpFreaks. Total time logged in: 180 hours and 15 minutes.
View Replies !
Online User Management
Vielleicht kan mir von euch einer eine kleine hilfe zu meinem problem liefern : Ich brauche eine Art Online User Management, das heißt wenn sich ein user auf meiner page anmeldet muss ich immer genau wissen wo er sich gerade befindet und natürlich wenn er wieder von meiner seite verschwindet. wie kann ich das am besten machen ? cookies und merken der session in meiner datenbank?
View Replies !
User Online Issue
$timeMax = time() - (60* SESSION_LENGTH); $result = mysql_query("select count(*) from usersOnline where unix_timestamp(dateAdded) >= '$timeMax' and permission ='0'"); $usersOnline = mysql_result($result, 0, 0); $resulta = mysql_query("select count(*) from usersOnline where unix_timestamp(dateAdded) >= '$timeMax' and permission = '1'"); $usersOnline2 = mysql_result($resulta, 0, 0); ok there has to be a way to set a limit .. the numbers just go through the roof. go beyond as many users there can possibly be online is there a way to put a limit in there somehow. the rest of my code is like this. where i get how many total users there are. $result3 = mysql_query("SELECT COUNT(*) AS count FROM users WHERE permission = '0'"); $row = mysql_fetch_array($result3); $result4 = mysql_query("SELECT COUNT(*) AS count FROM users WHERE permission = '1'"); $row2 = mysql_fetch_array($result4); echo "ATM:" . ($usersOnline2 != 1 ? "" : "") . " $usersOnline2 Admin" . ($usersOnline2 != 1 ? "s" : "") ." / $row2[count]" . ", " . ($usersOnline != 1 ? "" : "") . " $usersOnline User" . ($usersOnline != 1 ? "s" : "") ." / $row[count]" . ". "; the bottom code gives away the total admins and regulars on my system. now i am trying to limit the above code to those numbers so only up to 2 admins and users remain.
View Replies !
Check If User Is Online
Could it be made a script that check if a user connection is breaked (for example internet connection is stopped or user is closed the browser). And not only to be displayed error message to the user but this event to be registered by my PHP script. For now the only idia that i have is a JavaScript event onClose() of the browser but this is not the solution that I want.
View Replies !
Time Online User System
I'm building something special but dont really know whats the best way to start this i want to messure time online from users that signup for it So i can make a toplist of the best visitors that where online and active But how do i messure time and how do i abort it when they are not active for a <? while ?>?
View Replies !
User Status Online/Offline?
I want to know how to check that user is online or offline by Php.If he visit pages then he is online, if he not accessed page he is offline. How to handle this is in PHP...I set session of each user......
View Replies !
User Local Time Diplay In Input Field
I'm wondering how can I have the local time of a user into a input field, it might sound or be stupid but even after my search I couldn't find a code si9mple enough, without any bla bla which each not my need.
View Replies !
PHP / MySQL Online Status For User Authentication System
I'm working on a user authentication system. My problem is with an "online status" element. So far, I have that when the user logs in, a field in my members MySQL table, called loggedinstatus is set to 1. This means that that certain user is currently logged in. The problem is, is that the only way that loggedinstatus is set to 0 (the user is not logged in) is when the user clicks the logout link. If the user just goes to another website or closes his or her browser, the loggedinstatus is left at 1. How would I get around this problem?
View Replies !
Find Current Windows User
I'm looking to create a internet site. My idea is to use the login name (the windows one) instead of making the user re-enter there login and user name again. I've searched around, but I can't seem to find a anyway of using php to retieve the current logged in user (I know you can find it using .asp and vb.net).
View Replies !
How To Find Out What Page The User Wanted To Be At?
I've done some custom 404 error messages, and this works fine, but I want to add some extra functionality to my script, too. So, I implemented "the perfect 404" by A List Apart dot com and it works just fine, but this approach gives only the backlink where the 404 error page was triggered from by the presceding URL, so my mails I am getting from the script gives only the root link and not the link I want to know that was not correct. Code:
View Replies !
Use A Function To Find Out What That Usergroup Is For The User That Is Logged In.
I am currently making my login system a lot better - I have the session_start() line at the beginning of each page in my game. I also have the variables $username and $password declared on the next two lines. In the users table there is a column called usergroup. I want to use a function to find out what that usergroup is for the user that is logged in. I have made it find out what the usergroup is WITHIN the function but I have also tried to use $usergroup outside the function, after the function has been called. This has been unsuccessful. Does anyone know how I could go about doing this?
View Replies !
Intranet
I was charged with building a new intranet for my company which seemed to be complete. Testing was done everything was great and so we made every thing live and "Bam"! Now it takes an average of 8 to 10 seconds to load a page. We are using Microsoft 2003 Server, PHP 5 and MySQL 5. the previous build was on a 2000 Server, PHP 4 and MySQL 4. There are 2 intranets being run-- one runs just perfectly, however there is a header program in place that is controling the post and get information. The one in concern seems to slow when I am calling a get method thru the http header ie http://mysite/home/index.php?page=home When I call the index page and add the inclusion of the home page this is where I have the slow down. If I was to call http://mysite/home/home.php I get an imediate page load. Of course the page is not formatted corectly and I have a lot of the page information missing because I depend on the index.php to hold the basic page design and the page call will call an individual page to appear in a certain part of the over all design (sorry if I am going on and on I just want to give as much info as possible).
View Replies !
Set Up An Intranet For My Own Use Only
I have recently decided to set up an intranet for my own use only. I have a webserver using apache and also have php installed. What i have done so far is i use a basic authentication, simply asking for username and password before entering to the intranet homepage. Now what i'd like to do is to be able to retrieve whoever enter the site and be able to show it on the intranet homepage. In another word, i'd like a welcome message on the homepage.
View Replies !
PHP/MySQL And INTRANET.
Does PHP and MySQL behave on an Intranet, the same way it does on the Internet? If so, what server would be the best for this (Apache)? Also, how difficult is it to bypass any firewalls if a user is attempting to access the Intranet (MySQL tables) from a remote location via the Web?
View Replies !
Email On Intranet
I'm trying to submit an email on our Intranet, but when I use: mail($recipientemail,"Subject",$notification,$sender); I get the following error: Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for validemail@validdomain in c:inetpubwwwroot eminder.php on line 29 I substituted validemail@validdomain for a valid address I'm sending to. We're running Windows 2000 for our web server on the same machine running our Exchange server.
View Replies !
Intranet Development
I'm looking to start creating an intranet for the company that I work for, but I have little experience in creating such a system. It is something that I would like to learn a lot more about though. so I was wondering if a) it is possible to create a safe and secure intranet using PHP/MySQL and b) which resources (books, tutorials etc) you guys would recommend for learning more about intranet development.
View Replies !
Looking For Intranet Software
Here are the specifics that I am looking for: It needs to have a calendar (several portal and cms software packages have this) It would be nice to be able to share that calendar (optional) Or it could be a public calendar that everyone posts on (or possibly a calendar where you can make events public and private) It also needs to have a personnel directory so people can lookup others' phone numbers and email addresses. I suppose this could be done through a "user's list" if the software used was something like php-nuke, drupal, etc... Code:
View Replies !
Intranet Business App
I will be designing an intranet business app, laboratory information system to be more precise, and am still deciding what to use for the front end to the mysql db. Also one of the objectives is secure web access for customers. I designed the current app which is an MS access multiuser db. It works fine but is starting to show its limits and for version 2.
View Replies !
Trying To Add Intranet To Site
so like the subject says i'm trying to add an intranet to a site i'm working on using a php function to block out any ip addresses i dont want. In this case i want to block out anything that doesn't start with 192.168. To do this i thought that this snippet of code would do the trick, a statement checking the IP, then if it does not begin with 192.168 it would kill it.
View Replies !
PHP As A Proxy To Get Intranet Content
I need to provide content to the external site that comes from internal intranet web servers. These are mostly webservers in hardwired devices such as PLC's. I have done this on a smaller scale by: 1. opening socket 2. sending http request 3. getting response 4. splitting headers from content 5. sending headers and content back to browser This new requirement is more invoved though, with activex objects, username/password challenges etc.Is there a tool out there that can handle this?
View Replies !
Is PHP Robust Enough For An Intranet Application?
I'm just curious if anybody has created a PHP-based Intranet application and what successes they've had. I've used PHP to do a lot of things, but because it partners with HTML I always assumed it was too flimsy to be used in place of C/C++/VB/Java/etc. The more I thought about it though, I realized that its partnership with HTML could be an asset. It would cut down on a lot of the GUI development time. You could even add a layer of JavaScript to take care of some of the client-side error checking and other stuff that you can't do with PHP alone. What are some of the downfalls to using PHP for such an application? I hear some people talk about using Object Oriented (OO) PHP design methods, but I really don't see how you can do that. Do they mean using a lot of functions and includes, or did I miss the part where you can create classes and objects in PHP? Aside from the (at least what I can see) procedural nature of PHP, I'm having trouble pinning down where it's any less capable when used with HTML/database/JavaScript.
View Replies !
Intranet-based Calendar?
I'm interested in creating an Intranet-based calendar which will contain company information such as holidays, special events, etc. I was wondering how this could be done. I was originally thinking of using an ActiveX control of some sort but would rather use DHTML w/ Perl/PHP instead.
View Replies !
Integrating An Internet And Intranet
I developed a php inventory system on the public Internet. I have now been asked to create a customer information system that will run in an INTRAnet environment. What php and/or perl functions can I use to seamlessly integrate the intranet and internet applications.For example: We have all the product information online, but we want all the customer information offline(especially credit card stuff). When we make a sale, we would like to have the customer information displayed along with the product information. This will be used for invoicing and then for accounting purposes.
View Replies !
Build A Very Secure Intranet
I am trying to build a very secure intranet. My login script sets username in a cookie at the client side when the suer logs in and all the other pages check to see if the cookie exists and what access the user has. I know that cookies can be spoofed, so I want to setup another mechanism to check for authentication. May be store it somewhere else also and cehck them both? Can sessions be spoofed ?
View Replies !
Intranet / Network Password
In our network each person has an individual username/password to log on. This password is changed regularly. I am creating an Intranet website containing various sections and want to know if it is possible to provide a log in page for each section. The log in should be the users own username/password that they use to initially log onto the network. Is it possible to incorporate their username/password into the intranet site?
View Replies !
Intranet - Authenticate Using Windows Credentials?
I've just about finished an intranet app that allows users to sign in and out, track their time, show a calendar view of time worked, vacation days used, calculates overtime, etc. My backend is mysql and I'm currently authenticating against a users table that I threw together. The problem with that is another set of u/p's for users. I can import a list of everyone's windows login info, but then it's in two places and I have potential sync issues and maintenance that I'd like to avoid. My question is this: are there any environment variables that capture the windows login info in PHP (the server will be running on windows, not *nix)? For example, if I login into my workstation as djf / password1, rather than having that information also stored in a mysql table, is there any way to access those values without the user typing them in again? I'm not that familiar with windows environments, but based on the research I've done, using LDAP and Active Directory might be a possibility? I have no idea how to do either.
View Replies !
Echo Windows Username Intranet
i a making a form that will insert a few things in to a mysql database, i am trying to make a field that will show the users domain username but i cant seem to find anything to do it, i am in a corporate network with thousands of users, i am using one of the pc's to setup a mysql / php / apache server just using (xampp) we will access the pages using netbios (http://computername/index.php). our intranet needs windows credentials to access most of the pages so the info must bestored in ie i just cant find the php code to access it, i have tried, <?php print_r ($_AUTH_USER); and a few variations.
View Replies !
LOAD DATA LOCAL INFILE - Workaround For Local-infile=0
I'm using a PHP script for updating my database which relies on the "LOAD DATA LOCAL INFILE" command. As my provider recently updated the MySQL-database, he changed the "local-infile" setting to zero, i.e. my update-script doesn't work anymore (=> "The used command is not allowed with this MySQL version"). Is there a work-around to fix this problem? I though about the mysql_options command, but to frankly speaking, I have no clue how to use it and couldn't figure out how to properly use it even after reading the manual ... anyone who could help?
View Replies !
Perform Redirection Of The User's Browser If The User Isn't A Valid User.
I'm running PHP on Windows, but that's just the local test... in production it will be on Apache. I am not using PHP as a CGI. I want to perform redirection of the user's browser if the user isn't a valid user. I don't want to use the refresh meta tag or javascript to do this. I want to do this with some sort of server command. Does anyone know how to make this work? Here's my code... <?php session_start(); $goal = ""; if (array_key_exists('goal', $_GET)) { $goal = $_GET['goal']; } if (isset($HTTP_POST_VARS['userid']) && isset($HTTP_POST_VARS['password'])) { $userid = $HTTP_POST_VARS['userid']; $password = $HTTP_POST_VARS['password']; $db_conn = mysql_connect('localhost', 'webauth', 'webauth'); mysql_select_db('auth', $db_conn); $query = "select * from auth where name='$userid' and pass=password('$password')"; $result = mysql_query($query, $db_conn); if (mysql_num_rows($result) > 0) { $HTTP_SESSION_VARS['valid_user'] = $userid; } }
View Replies !
User Is Verified By A MySQL Database, And Then A Session: 'user' Is Registered.
I have a problem with sessions. In my code admin.php the user is verified by a MySQL database, and then a session: 'user' is registered. Well when the user presses a link to a another page called news.php it will be checked if the session is the same as in the same script, or if it's even registered (to prevent people trying to break in). But everytime i redirect to news.php I get a file included ip.php wich tells me Im about to break in. Code:
View Replies !
If The User Logs In, And Closes The Browser Window, How Do I Know That The User Has Logged Out.
I am creating a site that has a session based log in. Pretty simple stuff, but the bosses have asked if we can make it so that only 1 person can log into an account at once (ie if someone logs in with a specific acocunt, lock the account and dont let any one else log in) I'v been fiddleing around with session, and various session variables etc. and the only part that I cant figure, is if the user logs in, and closes the browser window, how do I know that the user has logged out.
View Replies !
PHPmyadmin Access Denied For User 'user'@'localhost'
WinMe machine as server, with Apache 2 installed and working PHP4 installed and working ( had PHP 5.05 installed and working, but i couldnt get the mysql extensions to load - phpinfo() didnt list mysql :(, so i installed PHP4, which now lists mysql when i run phpinfo). MYSQL 4.1 installed and working. I dont know the console commands too well, but i know its working ok, cos I have used a few simple DOS prompt commands to check its alive and I can connect to the database using MyODBC frontend/driver 3.51 and also using Navicat 2004. When i try to connect to the database via PHPmyadmin from another network PC I have an error: #1045 - Access denied for user 'user'@'localhost' (using password: YES) I have played around alot with different settings in the config.inc.php file.... nothing seems to work. This almost appears to be a simple login problem ( probably is too), but I can access the database locally from the Winme machine with the username and password that wont work over the network! I have tried not using 'localhost' as the host name but the IP address of the Winme PC but I get this error: #1130 - Host 'MYSERVERNAME' is not allowed to connect to this MySQL server
View Replies !
Notice: Use Of Undefined Constant User - Assumed 'user'
I have a script for a shopsystem on a Linux. There it works fine. But when I try to run it on my Windows machine, PHP says things like Notice: Use of undefined constant dbname - assumed 'dbname' in c:apachehtdocsaposhop estshopclassesxxx.clas s.php on line 77 On Windows I run PHP 4.3.2 On Linux runs PHP 4.3.1
View Replies !
Makes A User To Log Out Automatically If The User Is Inactive For 30 Minutes
im making an web-based game and im trying to make a code that makes a user to log out automatically if the user is inactive for 30 minutes, but im totally stuck on doing it. And im also trying to make a countdown script. Example: The user is buying an item, the delivery of the item takes 2 minutes. 2 minutes later the user have the item. How do i make that in the MySQL table, and continue ticking even if the user is not logged in?
View Replies !
|