+ 2
How many of you use sublime text as your text editor? When I do view in browser why don't I get the output by the echo statement
The code is as follows: https://code.sololearn.com/WiVtaqBQaYJ4/?ref=app Is the code syntactically correct?
8 ответов
+ 4
Vishp has already answered you in a previous post. You are using the HTML code playground while you should be using the PHP one. The PHP playground has no HTML/CSS/JS tabs. so you just throw everything in one and single tab.
+ 4
@Vishnu ks wrote: << I am speaking about sublime text and not the code playground. >>
So, you could answer that in your previous post ^^
Running php code directly from Sublime text ( or any IDE ) will not work, as Php files need to be proceceed on server side...
This can be achieved on your local computer only, but if you install a web server ( as WAMP/LAMP... ) with a Php interpreter.
Rest of my explanation in your previous thread is still valid: opening your Php file directly in browser will show it without Php processing, ignoring all that's inside <?php ?>...
+ 3
I am speaking about sublime text and not the code playground.
+ 2
sublime has nothing to do with running your code. It's just a sophisticated iditor. You need a server to be able to run PHP in your machine.
+ 2
Which server should I install?
+ 2
I personally use WAMP that I myself personalized to my needs.
There are also xampp, easyPHP....etc
Most of them do the job tho
+ 2
I used Sublime until the trial period expired and a message prompted me that I should buy a license.
Since I'm not intending to pay for the license I switched to Atom.
0
Could Atom be easier for programming any codes at all?