How i am code php in html file ... using sololearn code editor.. | SoloLearn: Learn to code for FREE!

0

How i am code php in html file ... using sololearn code editor..

Coding programs plz help 😐?

11/23/2020 8:08:41 AM

Maroseios

21 Answers

New Answer

+10

In PHP code playground you can use HTML elements ...but in web code you can't use PHP properties... look at this code https://code.sololearn.com/wb8syzkL5Se1/?ref=app

+4

Its same as in pc, In pc, you have to write html code in php file.. Same works in sololearn.... You will have to write your html file in a php project, then when you want to write php, open php tags and write then close... 😊😊😊😊😊😊😊😊😊😊 for more information please take a look Kode Krasher's answers in this question..

+4

Ok... Kode Krasher :-)... I didnt knew we could embed php in html file.. thanks for pointing it out...

+3

Sorry, for wrong information... Kode Krasher I have fixed, please see if i am wrong again...

+2

I don't know an app that works both as IDE as well as server package. Others may give you some suggestions πŸ‘

+2

Maroseios running services on your phone is just going to kill the battery quicker anyway. Have you looked at the http://raspberrypi.org ? It is a little linux based micro-computer that can be displayed over an hdmi input in a tv. it can run a personal web-server with pretty much any configuration you would like. Another option you could use is get a free learning account on aws or azure, and configure some containers to run the services. Just realize if you share your site or go over your limited usage that you will be charged. 😣

+2

THANKS for help full info ... I like your simplicity Description 😁😍😁

+2

Maroseios look at PHP code in code playground. You will find examples on how to embed html in PHP. There are plenty of examples to get you started. Steve Sajeev your answer is not entirely correct... With a webserver configured properly you can embed PHP in HTML, but sololearn does not run a PHP server in the HTML or PHP containers; they execute php in a script, calling the php file and let the browser interpret any HTML output. Try to create the common phpinfo() file in PHP code playground and you will see what I mean. It outputs console text and not the standard HTML table that would be displayed from a webserver running a php module or php server. πŸ˜‰ Happy Coding! πŸ˜ŽπŸ‘

+1

You can not mix PHP code within a web code in Code Playground : )

+1

Are you on Android or iOS? For Android, try KSWEB (https://play.google.com/store/apps/details?id=ru.kslabs.ksweb), not a perfect one, but it's okay for learning ... Not an iOS user meself, so I got no recommendation, sorry ...

+1

Decoder πŸ˜…πŸ˜… i try also but php code in html script like real coding..πŸ˜…nothing worked πŸ˜…

0

So what i do

0

What i use ??

0

For doing this ..

0

Plz help i have no pc

0

THANKS for info 😁😁

0

Plz suggest me app(this app also code (html,css,js,php) )all in one app doing all like real code .. πŸ˜₯because i have no pc ..πŸ˜•πŸ˜₯plz help me someone..

0

One script doing all code .. plz help

0

So what can i do ??

0

I have an arror..