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 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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?

13th May 2017, 1:54 PM
Vishnu ks
Vishnu ks - avatar
8 Answers
+ 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.
13th May 2017, 1:58 PM
CHMD
CHMD - avatar
+ 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 ?>...
14th May 2017, 6:47 AM
visph
visph - avatar
+ 3
I am speaking about sublime text and not the code playground.
13th May 2017, 2:00 PM
Vishnu ks
Vishnu ks - avatar
+ 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.
13th May 2017, 2:04 PM
CHMD
CHMD - avatar
+ 2
Which server should I install?
13th May 2017, 2:06 PM
Vishnu ks
Vishnu ks - avatar
+ 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
13th May 2017, 2:10 PM
CHMD
CHMD - avatar
+ 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.
13th May 2017, 5:09 PM
seamiki
seamiki - avatar
0
Could Atom be easier for programming any codes at all?
31st Jan 2023, 7:31 AM
GODFRED TAWIAH
GODFRED TAWIAH - avatar