Make Web Based Chat Application Using Java Applets On Client Side?
want to make web based chat application using java applets on client side, and php as server side, but i want my chat to be supported with multithreading in order for a user to chat with different users, php supports multi threading?if not what server side language is recomended for such application?
Do you have such a template system ? Or maybe an alternative to handle those needs?
I have a simple Java client application (Android app). I have to write a PHP server application which receives a request from the Java client application to write some data to a MySQL database or read some data from the MySQL database. It should respond with a status message (Write failed/success) or the data requested respectively.How would I get the Java client send a request and receive the reply from the PHP program and how would the PHP program receive the request and send the reply? I have googled about SOAP and REST architectures, but looking for a simple tutorial which will allow me to implement this simple program.
I have developed a Flash based chat client that displays messages posted by users belonging to a group along with their username and time of writing. The data is stored in a mysql database with the group id, user id and message so that it persists beyond chat sessions and allows users logging in at a later time to see the discussions, less of a chat, more of a notice board. When a user writes a message I want the chat clients to update instantly an appear to be real time chat. My solution so far has been to include an interval in my flash code that calls a PHP page which queries the database for new comments and return this to Flash.I think from what Ive read that this approach is called long polling? is that right? Is this robust enough for volume? Would I be better looking at pushing the data to the client when there are changes? How do I detect these changes? I have looked at APE for example but I dont think that this stores the messages in a database.
Is it possible to use Sockets.io on the client side and communicate with a PHP based application on the server? Does PHP even support such a 'long-lived connection' way of writing code? All the sample code I find for socket.io seems to be for node.js on the server side
I don't need the complete code. I only want someone to show me the correct direction. I don't have any idea how to do this.. And how these multiple protocol chat clients works.
We're not ready to go live just yet, we're expecting a large server load directly at launch, so we need to stress test the environment. I've looked in to some libraries, like JMeter, but afaik these libraries cannot handle the Flash - and the merge/edit/create depends on input from the Flash app. How can I stress test my environment in the best possible way?
I have the task of choosing an XMPP server/client solution for an internal web application. The goal is for employees to be able to utilize it via desktop client or the web application. The web client is mandatory.
The web application is written in PHP, but I don't necessarily need a PHP solution. Flash or Java are acceptable (Flash would be preferable since that's already required for another component of the application).
There are only two requirements that must be met:
The client must use a secure connection (HTTPS for AJAX, TLS for Flash/Java). The client license must be commercial friendly. Free would be nice, but is not a requirement.
So far, I've found SparkWeb, which is LGPL licensed (hooray), but I have not been impressed by its live demo. I was unable to create an account on their server or connect to another XMPP server that I run, so I haven't even been able to see it in action.
My initial idea is to make two checkpoints: one at the beginning of a level and another at the end. Checkpoint is basically a session sent via AJAX to server-side PHP script which is then timestamped. So after the game is finished on client-side, the score is verified with the one on server-side. Is this kind of protection any good?
I am working on a huge php application with Zend framework, in that project we need to process files and create thumbnails for images, videos, documents for which we are using imagemagick, ffmpeg, openoffice in background process. To make the process optimized and fast with minimum resources I am thinking of implementing this process using another language may be java or c.
I Require a clarification on one Technical Implementation to check its feasible or not.I have one VPS server which has a Java Environment and I have one more dedicated server which doesnot have a Java Environment where i have built my PHP based web application, In the VPS environment I am planning to implement the XML based application using the Observer pattern with java and DOM Parsers and make that application available at say for example18.104.22.168/XML_Works/Sample,xml fileNow My doubt is that: 1)is it possbile to access this application in dedicated Server where the java environment is not there. 2)if yes, then is it possible to access that java + XML application in IFrame in PHP based web portal.
Lets say you want a little exclamation mark to appear next to mail logo of the page to let the user know that they have new mail. you want this to automatically pop up when they get mail without them having to refresh.I KNOW I can use Ajax to periodically send requests to the server and check for new mail. but I was wondering if there is a way to make the client side just listen, and have the server send it an update whenever new mail comes in.
So the PHP will determine in the above input's example whether or not $_POST["email"] 1) has a value and 2) the value is an email address. I've not had any problems getting any of this intended behaviour to work. My question/concern is how to prevent a user from manipulating each field's properties using a code inspector tool such as FireBug before submitting the form i.e. remove the "required" class for the "email" id so that they can successfully submit the form without providing an email input. Is there anything that can be done to prevent the cunning user to take advantage of this? Or is this simply the result of how I've designed the form validation?
I use Soundcloud for my tracks.I'm using their jquery player to place a widget on my new site, as you can see on the top right, The problem is, the waveform Souncloud provides is a one colour only deal.
My goal:To change this waveform PNG from curent colour to black, but client side.I know I can change things using PHPs GD library, and I've done this successfully with a test image on my server using this code:
It works perfectly!BUT, It changes the actual image on my server! Pretty cool, but not possible.Obviously I cant change the image on Soundcloud's server (all the data, images, music comes from there API)So What I'm looking for is a way were I can change the colour of the PNG client side, on the fly.I have a lot of tracks on there, so basically each time the user clicks next or previous, the waveform loads in and before it does it needs to change that image's colour?Is this possible?To see the player in action on my test site(the styling on that one is old, by the way, but it's functionality is correct)
NB the entire site does not work beyond what you see there.Still a WIP.
How can I send data from my PHP server side App to Android Client Side App in terms of Notification or something else i dont want to use C2DM ,is there any other Alternative.I want to send such data on a particular event happen on server like a new row inserted in some table or existing row deleted by user A but also shared to user B.So i want to notify user B by sending some notification on his mobile.
I put the above code in register.php. And now how do I make a validation on PHP server side? I need to create a new php file and use post method to pass data from this register.php to new ones? and after validation I post data back to register with error if there is?....
i want to make my server side in php. after writing the code in php can i directly use json to parse it of or something other required on the server side with php.can you give me some example of it, how to do this on server side if i want to use json of my client side.
I have data that needs to go into an HTML table, which will later be manipulated by the user. Basically the user will be able to select items in the table rows. I have two options - in both cases I'm using AJAX to get the data:Create the HTML code using PHP on the server side, send it to the client as HTML.
I use PHP on server side to generate HTML/XHTML directly or via Smarty/PHPTAL or any other templating engine. I do believe most of developers follow the same path most of the time.Now I'm thinking of delegating GUI & client-side to GWT and using to send RPCXML / RPCJSON / POST / GET to server side which run PHP. I'm looking for good examples of doing so. It's great to have code accompanied.Although I could not find any example site, I have found documents that hint on using JSON as a mean for data exchange.
Therefore - I have been looking into QueryPath which is a PHP port of jQuery that aims to take the best and most relevant parts of jQuery and re-work it to suit the server environment.
That is all great, and I have now been looking at two PHP classes capable of parsing zen-coding which when combined acts as a great templating engine and also avoids errors in my code.
The problem I am having is that neither zen-coding parsers support anywhere near a full set of zen-coding features.
So finally my questions (sorry for the rather lengthy intro)
NB: I am looking more for functional equivalence than syntactic similarity - although both are a plus for me.
Here is some commented test code that should illuminate what I am trying to achieve:
<?php // first php based zen-coding parser // url require_once 'ZenPHP/ZenPHP.php'; // my own wrapper function code....
I'm about to write a little webapp/tool/widget that needs to store some files on the server. In order to avoid unnecessary load on the server-side, I want to create file hashes (with SHA, MD5 or whatever...) on the client side. It is manageable with HTML5 FileAPI, but then Opera and IE9 users will get sacked. JAVA or Flash applets can be used instead HTML5 approach, in order to keep the application cross-browser compatible. But since I'm not familiar with JAVA/Flash (and I would use them only in life or death situations), I'd like to stick with JS if possible. But all client-side suggestions are welcome... JS, JAVA, Flash, whatever...
Traditional POST method (with PHP) will do the trick regardless of user agent. And AFAIK it's safer.Long story short, my question is: why should I prefer client-side over server-side hashing?
I'm just putting a news system together, in creating a new news article I would like to have an browse/upload admin side to upload a PDF and when live this should display as a link to that PDF to enable a user to download the PDF
I would just like to know if PHP has a client side and a server side similar to jsp? Reason being - I have completed the front end of a website and I want to add all the functionality now so I'm wondering if I just use <php> tags on the client side or if I made another php file with all the code and import it into the client side and call methods/classes, etc.