How can I find out how many people are on my website with PHP - live

I have a server and I want to make a control panel that has stats about who is connected to my website currently. How should I do this using PHP or Javascript?

Related

How to make a CMS for a existing website?

I'm looking for developing a website that should allow my clients to update and edit the contents of the website. Is it better to use CMS or develop an interface?
I've tried working with Wordpress.
Getting a few ideas for developing a Website that allows Client engagement in site activities.

Is it possible to use the Tableau developer API to serve interactive Tableau visualizations to remote systems without making it public?

I am wondering if there is a way using one of the developer APIs / tools for Tableau to embed interactive Tableau Visualizations in a web application without making the Tableau server either:
A) A publicly hosted server (not Tableau public) or
B) using Tableau public
Essentially the web application (which is public) would be the intermediary between the Tableau server and the client.
Any information would be appreciated.
You can publish your dashboard in tableau public and use javascript API to embed in a web app.
Yes it is possible, you tableau server will have to be on internet but it need not open to login by public.
The system works similar to what you described, web application (which is public) would be the intermediary between the Tableau server and the client.
You can set up 'trusted authentication' between the server hosting the web application and tableau server.
When users open the web application, the web application server authenticates itself with tableau server. Using this authentication token, it gets the vizualisation and loads it in user's browser inside a special div or iframe which is embedded in the rest of the web application.
You can see more details about trusted authentication here

Standalone Flash application + Facebook

So here is the thing...
I need a standalone flash application that receives by socket an image and then publishes it on facebook.
The few methods i've seen use php but in this case i really would like to use only the standalone.
Ideas on how to accomplish this? Is it possible?
What you're trying to do can be accomplished from the client without server scripting as well.
Have a look on these links
http://code.google.com/p/facebook-actionscript-api/
http://www.adobe.com/devnet/facebook.html
It's an AS facebook api and the Adobe site has some very useful examples on how to set this up.
After you achieve a login and you have a working connection to the Fb api then you can upload your picture to the user's albums using the api from within AS.

How to do automatic functional test for Facebook Like button in local web server?

Our project is a Web application. We want to add Facebook Like button on our web pages. To test the functionality of Facebook Like works, we want to write some cucumber automatice functional tests.
The problem is, if a user (either real user or automatic test) click the Facebook Like button, the web page will send a message to Facebook server. And then Facebook server will callback to this web page to get some information (title/image/url/type etc, which are write in web page header meta tags). But our tests are running in local server, consequently the Facebook can not access. So there be something wrong.
So I'm wandering is there a solution to solve this problem. (Maybe not only for Facebook, but also any situation we want conversation between other systems and our local server)
In order for a Like Button to work, it has to be able to connect to the Facebook servers. There's no workaround, short of capturing the request and returning information, but I'm not even confident that would work. Can you not do the testing on a development server that can be accessed from the web?
You could .htaccess it so that only your team and the Facebook servers could connect to it.

How can I implement Facebook Chat on my site?

I'm developing a site with something similar to the Digg bar at the top. One of the features requested is a live chat using Facebook. Is it even possible to implement Facebook Chat on my site by using Facebook Connect or other methods? And if so, how?
[update] I've seen that it works with Pidgin and Adium, but what I'm looking for is a site based implementation (think AJAX & HTML living at the top of the page).
It appears that the Facebook team has at least begun, if not finished, implementing an xmpp/jabber interface for Facebook Chat. This would allow you to use any XMPP enabled client to connect to Facebook. That said, there's at least one javascript jabber client library available that I can find. Although, you may have to implement a proxy on your web server to allow the JS client to talk to the Facebook server.
Also, I'm not sure how they're doing it, but Meebo has managed to enable Facebook chat integration on their site with Facebook Connect. I haven't found anything mentioning it, but this functionality may be easily available through the Facebook Connect API (documentation).
To answer your question: Yes, it's possible.