Real time updates on web using PHP? - php

I'm looking to implement a real-time collaboration on a document on the web. Is there some sort of library that enables it in PHP? Something similar to SignalR which creates 'persistent connection' by using long-polling.
update found this library for pubsubhubbub http://code.google.com/p/pubsubhubbub/source/browse/trunk/publisher_clients/php/
Searching on the library name led me to How to implement PubSubHubbub?

Checkout pubsubhubbub
http://code.google.com/p/pubsubhubbub/

Related

Adding REST API to existing PHP website

I'm using some open source code to launch a game. The game is old, around 11yrs. It is a tick based web based game. It's written in php and using MySQL. Basically I want to port this game to ios, instead of using uiwebview I want to build native controls.
I know that it's bad practice to communicate directly with MySQL from an ios app. So what I want to do is add a RESTful API. I'm new to this and have scoured google for answers, does anyone have any pointers of where to start when adding an API to an existing site? It's quite a complex structure.
Thanks.
Paul.
My suggestion is using a framework that is guided towards building an API. I use Slim Framework for my API back end and it's pretty easy to use. If you create a separate URL for this API or include directly into the PHP project as a class it could work.
Some tutorials to get you started are
Say Hello World with Slim
RESTful services with jQuery, PHP and the Slim Framework
Writing a RESTful Web Service with Slim
Hope this helps,
Wes

How to Create an api for OrangeHRM

I want to create an api for orangehrm to punch in & punch out but i am unable to find any documentation to create an api.
Anybody knows the standards or reference to create API for Orange HRM using XMLRPC,JSON etc..
Here's a 4-page overview of its support for web services. Note the Web services controller on page 4.
http://web.archive.org/web/20110822071832/http://www.myplick.com/view/4LD-9rCeJwJ/OrangeHRM-architecture-For-Web-Services?
Since its PHP based you can use one of the following:
The phpxmlrpc library(used by Joomla) OR the IXR library (used by Wordpress)
Then Read on the xmlrpc specification
Learn best practises from looking at the Joomla & Wordpress implementations. Security is very important
All the best!
EDIT:
There's also the built-in PHP library that you can enable as an extension

How can I integrate webconnector and my own website with using only PHP?

I am trying to integrate webconnecter and my own website for automatically syncing from website to quickbook software..
I am trying keith parmer's webconnecter and his php dev' kit.But I think I need to create a web service with C# ,to connect each other..
(I am not fluent in C#.
I need a solve only from PHP..)
these are my references
http://www.consolibyte.com/wiki/doku.php?id=quickbooks
and
http://developer.intuit.com/qbSDK-current/doc/​PDF/​QBWC_​proguide.pdf
I think I am confusing through the lot of codes and reference guides...
Please some one help me to reach to the correct path.
Download the QuickBooks PHP DevKit, and follow the quick start guide.
When you have questions, use the support forums:
https://idnforums.intuit.com/categories.aspx?catid=56&entercat=y
http://consolibyte.com/forum/
You might want to try the search too. There's like 100 other threads about QuickBooks and PHP out there already, and Google provides a ton of QuickBooks PHP search results.

php library or client for a caldav server

i've set up a caldav server in particular http://radicale.org/ and now i would to integrate a jquery calendar like http://themouette.github.com/jquery-week-calendar/weekcalendar.html but the problem is the interface in php.
so the question is:
there is a library written in php to interact with radicale server or just another caldav server? How is possible to create, modify and delete events?
I do not know how the protocol works, but I thought that you could use curl.
Best regards
Claudio
If you're looking for a decent SabreDAV Wrapper, you should try http://baikal.codr.fr
It's lightweight, full PHP, and features a nice web admin for managing contacts and calendars.
I use SabreDAV, a PHP framework for Web/Cal/CardDAV. It defines backends you have to implement in order to create your own server. It's full featured and probably the best lib In PHP.
It works fine and I also use the same calendar ;)

In-Site Instant Messaging-Framework?

Is there any instant messaging framework or service that enables in-site chatting like the Facebook chat-bar or the Meebo bar?
I think you should read about COMET. For making your own instant messaging system.
You can find more information on wikipedia:
http://en.wikipedia.org/wiki/Comet_%28programming%29
There seems to be a solution now named CometChat, which is a commercial product.
http://www.cometchat.com/
As already mentioned this could be implemented via a technique called Comet. (The term was coined by Alex Russell in a blog entry.) But PHP does not seem to be very well suited for this technique as already discussed on StackOverflow:
Using comet with PHP?
How to implement a chat room using Jquery/PHP?
solution for COMET and PHP
You should have a look at these threads because they also provide further explanations as well as hints for solutions or alternativ implementations.

Categories