PHP and SQL basic instant messaging [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am thinking of creating a simple web based instant messaging using a combination of PHP and SQL. To keep it simple I was thinking of not sending the message to the other clients browser using COMET or AJAX, but simply uploading it to a SQL database. The other clients computer will then periodically refresh the webpage which will cause the PHP code on the server to check for and return any new messages.
Would this method be simply to slow to be actually useful?
Thanks in advance :)

That depends on the scope of your project. If you're thinking of server a thousand users, this is not a recommended method. If you want to chat with your 5 colleagues on an internal LAN: it doesn't really matter much. It will be fast and work just fine.
You could also consider building it with jQuery + PHP + SQL though; read up on jQuery a bit and you'll be amazed by the power of its AJAX functions.
Also, if you're lazy or simple don't have enough time, use a premade library like this one here and i'm sure there are many more to be found on the internet.

Related

Most simple way to load content and keep it on the phone from the web? (PhoneGap) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I created an app with PhoneGap but I need to load some stuff from another domain. I tried jQuery load with a xdomainload plugin but It did not work.
The stuff I need to show run on PHP as the back-end language. I'm really noob - I've seen a few tutorials about JSON but all of them did not work and I ended giving up. Is JSON the easiest way?
Thank you all
Generally speaking, PHP wont run client-side in Cordova. If you're trying to access some sort of backend service that you built using PHP, then that's doable with JSON. Whether it's "the easiest", makes this question to open for interpretation. Generally speaking, a common approach may be to use javascript to communicate with backend services which "talk" JSON between each other. This question might get closed for being to opinion based. But that's my 2 cents.

How to make HTML interact with a database? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Hello everyone, I have a project and I want to create an MVP: Minimum Viable Product.
And I have html pages ready but I don't know how to make them interact with databases, preferably MySQL.
I need the simplest way to be able to POST and GET data from a database, PHP or Rails.
IF there's just one simple tutorial or a small ebook to read, I'll be so thankful.
I have to the end of the month to create the MVP, about 20 days or so, and I really want to make that happen and I was gonna learn the whole Rails just to do that, but it'll take time you know!
Thanks for your time and I hope that you might help me :)
You can't make HTML directly interacting with database. You should create server-side application, which answer queries generated by HTML forms, JS queries, etc. I am PHP developer, I like this language, so I recommend you using it in your solution.
You can read about connecting PHP to MySQL database here:
http://www.w3schools.com/php/php_mysql_connect.asp
There you have basic information about handling data sent by POST:
http://www.w3schools.com/php/php_forms.asp
If you have any troubles during develop proccess try Google before, then if didn't find answer ask specific and well described question on Stack Overflow.
Best luck!

PHP seamless application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Hello all and thanks for taking the time to view this.
I want to make a PHP application and I am about to start, but I want the front/backend to have as little page loads as possible, but I just don't know what to learn per se. I am torn as to whether I should learn Ajax, AngularJS, EmberJS, NodeJS, BackboneJS, etc?
I really want to know if AJAX is the same as the others I listed or not. I just want to use PHP as the engine to fetch data from an SQL DB and make the application's front/backend seamlessly.
I would like to be pointed in the "right" direction as to which technology to take.
you can use angularJS for faster loading of pages, learning path is first you have knowledge of ajax, then you can learn AngularJs.
here is a reason why you can use angularJs
http://code.tutsplus.com/tutorials/3-reasons-to-choose-angularjs-for-your-next-project--net-28457
and you are going to use PHP as Backend so it eliminate node.js from this list, AngularJs is best as you have describe your requirement, if you know bit of javascript learning cure for angularJs is easy.

How to do a game working in browser [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm very confused about how to do a game work in a browser like monopoly, backgammon, etc. I have knowledge in html, css, php, and my question is what should I start to study/learn to make a game play with anothers on the web, I think what I should start to learn is AJAX, but what else? How can I do the game? How should I arrange the mysql database info for the game... any tips is appreciated. Thanks.
A basic requirement would certainly be Javascript. That's what the "J" in AJAX actually means. You basically need two things: the client-side code dealing with the user input, sending requests to the server, dealing with the responses, managing all the graphics; and the server-side system handling requests triggered by the client code and providing adequate responses. How you should "do the game" and "arrange" the MySQL database strictly depends on the game you want to create. Of course your request is too generic to be able to provide you any meaningful help.

How to implement remote assistance feature in PHP? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 12 days ago.
Improve this question
I searched in google and come to know that there are some tools which
will provide remote assistance functionality (ex:Gotoassist,teamviewer).But i want to
implement the similar kind of feature in php.
Is it possible to implement in php or not?
I'm going with NOT just in PHP, PHP is a server side scripting language.
http://uk3.php.net/manual/en/faq.general.php#faq.general.what
PHP can be responsible for hooking the session up / starting a server repeater and helping your user to connect with you - but it can't physically do the drawing of client side screen graphics and mouse/keyboard operation - you need something like this:
http://phpremotesupport.com/about/
In tandem with a VNC viewer or other remote viewing product (C, C++, C#, .NET VB would be used to program it most likely) - found this one which might be useful to you called noVNC (web-based):
http://kanaka.github.com/noVNC/
Something like this might help you:
http://phpremotesupport.com/

Categories