News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Talk PHP with the Experts The Transcript
October 16, 2013 @ 10:43:07

SitePoint had another "Talk with the Experts" session with two of their own developers, Jude Aakjaer and Michael Sauter. They've posted the full transcript of the session to their PHP blog today. It was a Q&A session between them and the attendees.

Topics discussed included:

  • What beginners should know about PHP
  • Most used frameworks
  • Using WordPress
  • Tools/IDEs the two developers like
  • Packagist/Composer
  • Using 3rd party libraries
  • Naming conventions and namespacing

You can read the full discussion here.

0 comments voice your opinion now!
experts talk transcript questions answers chat

Link: http://www.sitepoint.com/talk-php-expertsthe-transcript/

Saran Chamling:
Simple Chat Using WebSocket and PHP Socket
July 30, 2013 @ 10:38:41

While not a recent article, this post from Saran Chamling is definitely interesting. In it he shows you how to create a real-time chat by combining PHP and WebSockets.

The WebSocket is a feature of HTML5 for establishing a socket connections between a web browser and a server, once the connection has been established with the server, all WebSocket data (frames) are sent directly over a socket rather than usual HTTP response and requests, giving us much faster and persistent communication between a web browser and a server. Let's create a simple chat system using this cool technology (HTML5 WebSocket and PHP).

He includes all the code you'll need to get things up and running, starting from the WebSocket side. With a simple socket connection and some jQuery to control it, the system connects to the backend PHP script. The PHP script reads directly from the socket (using the socket_* functions) and binds to it, waiting for incoming requests. There's also some sample code showing how to work with the "handshake" between the WebSocket and PHP and how to respond. If you want something a bit easier to work with and more functional, consider checking out Ratchet, a WebSocket server for PHP.

0 comments voice your opinion now!
websocket realtime tutorial chat socket

Link: http://www.saaraan.com/2013/05/chat-using-websocket-php-socket

Robert Basic's Blog:
Creating a chat bot with PHP and Dbus
January 09, 2012 @ 11:10:52

Robert Basic has continued his series looking at using Dbus in PHP with this latest post to his blog - using the foundation he's created before to make a chat bot that will listen and respond to commands on a Jabber network.

Now that we know how to use DBus to communicate with Pidgin from PHP and how to listen to DBus signals, it's time to put it all together by creating a simple chat bot! Nothing fancy, just a simple script that runs somewhere on some server and, by using a Pidgin account, can respond to some basic queries we send it.

His new code listens for an incoming message on the "PurpleInterface", grabs the name of the sender and calls a "PurpleConvImSend" method with the conversation object and the message to send. You can find the complete source for the project on his github account.

0 comments voice your opinion now!
dbus tutorial pigdin extension pecl chat bot jabber


Michael Feichtinger's Blog:
PHP5 WebSocket Example - A Simple Chat
February 03, 2011 @ 09:47:28

Michael Feichtinger has posted a simple websocket example to his blog today. It shows the creation of a simple "web chat" application for real-time communication without the mess that can come with ajax.

The classic example for websockets is a chat. This chat example has only 200 lines of code (excl. the Websocket class), is really easy to understand and customizable.

He creates a basic "WebsocketClass" class that (in his example) connects to an IP and port. It uses JSON as the messaging format and some basic javascript to handle the clicks of the "chat" and "login" buttons. You can see an example in action here and download the source for the server.php here.

0 comments voice your opinion now!
websocket exmaple tutorial chat realtime json javascript


Abhinav Singh's Blog:
Writing your first facebook chat bot in PHP using Jaxl library
February 12, 2010 @ 09:16:04

With the announcement Facebook as made about opening up their chat service to outside connections, several developers are taking the opportunity to create their own scripts to interface with the service. One developer, Abhinav Singh has posted a tutorial about the sample application he's created to do just that.

Today facebook officially announced availability of it's chat through jabber/xmpp clients. This is a big win for XMPP, with almost 400 million new probable users adding into XMPP club. In this post, I will demonstrate how to connect to facebook chat servers using Jaxl client library in PHP. It can further be used to make custom chat bots for facebook.

He shows how to use the Jaxl library to make the connection, setting up some basic environment variables and making the connection to the server. The index.php file that comes with the library reads this config file and sends a default message to the server and returns the response.

0 comments voice your opinion now!
facebook chat connection jaxl library


NETTUTS.com:
How to Create A Simple Web-based Chat Application
July 27, 2009 @ 08:12:55

From NETTUTS.com there's a new tutorial they've posted showing you how to create a simple web-based chat application (real-time, not like twitter) with equal parts PHP and jQuery.

In this tutorial we will be creating a simple web-based chat application with PHP and jQuery. This sort of utility would be perfect for a live support system for your website.

Full code is provided, both in the post and available for download, and the end result will look something like this. Messages are just stored in a file on the backend, but it could be easily modified to use something like MySQL to keep track of the messages for that session.

0 comments voice your opinion now!
webbased chat application jquery tutorial


Lukas Smith's Blog:
Chatting with Rasmus (part two and three)
April 04, 2008 @ 10:37:12

Lukas Smith has posted the second and third parts of his talk with Rasmus Lerdorf - a look at MaxClients and HTTP headers.

As promised here are the two other logs from the recent chat I witnessed. [...] Again I left the logs in their raw original way. Hope they are useful for you all.

Lukas also links to two resources he mentions in the second (third?) log about performance as well as mentioning one of the most useful Firefox extensions for web developers - YSlow!.

0 comments voice your opinion now!
lukassmith rasmuslerdorf chat http header maxclient


Lukas Smith's Blog:
Chatting with Rasmus (part one)
March 31, 2008 @ 13:58:08

Lukas Smith got a chance to catch up with Rasmus Lerdorf (and others in #php.pecl) and "talk shop" about topics including handling large libraries and maxclients settings.

In this first post I will provide a link and some commentary on Rasmus's points regarding Doctrine (note I left independent chatter in the log in order to not have any chance of me filtering the content, but there is very little of that so I hope the discussion is still easy enough to follow).

  • Lukas introduces Doctrine briefly (what it does) along with some general thoughts on ORMs and making code a bit more bye code cache friendly.

  • 0 comments voice your opinion now!
    rasmuslerdorf chat doctrine orm suggestion bytecode cache


    IBM developerWorks:
    Ajax and XML Ajax for chat
    December 06, 2007 @ 10:24:00

    The IBM developerWorks blog has a new tutorial posted today about using the combination of PHP and Ajax to create a simple chat application (with a database backend).

    Learn to build a chat system into your Web application with Asynchronous JavaScript + XML (Ajax) and PHP. Your customers can talk to you and to each other about the content of the site without having to download or install any special instant-messaging software.

    Complete code is included (even the database table schemas) to create the simple application. They make the four pages to get it working and call that part of it good. The second part of the article, though, builds on this base and adds a fix for performance issues caused by constant polling of the database by the ajax request.

    0 comments voice your opinion now!
    ajax tutorial chat application performance issue intermediate ajax tutorial chat application performance issue intermediate


    GeesNotNerds Blog:
    Free PHP + Ajax chat app
    September 07, 2007 @ 11:56:16

    On the GeeksNotNerds blog today, Zeekay has posted about a PHP and Ajax free chat application he came across - phpFreeChat.

    Occasionally I'll want some sort of chat app for a website, and the options are overwhelming unimpressive [...] This is by far the best free chat app I've found. It's so good in fact...it's one of those little scripts you find floating around that begs you to go design a new site just so you can use it.

    You can find out more about this free application from its website (including downloading the latest release).

    6 comments voice your opinion now!
    ajax chat application phpfreechat download ajax chat application phpfreechat download



    Community Events





    Don't see your event here?
    Let us know!


    code release podcast language interview series symfony2 laravel testing developer unittest list community introduction opinion install threedevsandamaybe api refactor framework

    All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework