Hello everyone,
I’ve been developing on the client-side for a long time, and I’ve always wanted to do some server-sided stuff, which are essentially things that the client-side is incapable of.
I’ve studied PHP, AJAX, and Node.js…….BUT, when it comes to testing them on an online hosting website (free ones like 000webhost), I get sooooooo freaking lost! There are MANY server-side options to choose from, but I’m a SIMPLE guy. Look, this is all I want to achieve:
-I want to create a webpage that can read a .txt file from the server
-I also want this page to be able to send data to the server (like a numerical value(s), text, etc. likely via <form>)
[Server file contents]
Pseudo CODE:
variableSentFromWebPage + 2 = x;
sendThisResponseBackToWebpage(x);
….as far as basics are concerned, this is what I need, but I’m having a WHOLE WORLD of trouble trying to do this on an online web server (not my personal PC’s private one) host like 000webhost. The site does have PHP/phpMyAdmin/SQL support, but do I REALLY have to go through all of that just for something as simple as the above basic client->server communication example?
Can anyone guide me step by step on what the code should look like (PHP language, if possible) as well as what free web hosting site that you recommend that I signup for to test the code? Seriously, I would like to see this code in action.
Thanks in advance!