Skip to content
← Back to Community
Php with html?
Profile icon
JacksonAiken3

How can i add a file of PHP with the HTML, CSS, and JS. Like if you press the red plus and chose HTML, CSS, JS file. It creates those three. however i want to learn PHP so how can i implement that into those files. I dont like programming in

Voters
Profile icon
pavitrastp
Profile icon
clement070110
Profile icon
MrHiTech
Profile icon
BEKZODMAMASOLIY
Profile icon
Neet7Tamil
Profile icon
manellenr
Profile icon
Squrril
Profile icon
TheAmazingBrian
Profile icon
hillsam001
Profile icon
Tibtub
Comments
hotnewtop
Profile icon
BAWhale

if you do php for web severs it is in html

Profile icon
timmy_i_chen

We made some updates to PHP (well, we made two new "languages"):

https://repl.it/languages/php_cli - New and improved PHP language for command line interface shenanigans. Supports multiple files.
https://repl.it/languages/php7 - PHP Web servers! Just like other hosted repls, this allows you to write websites using PHP.

Enjoy!

cc @Tibtub

Profile icon
Tibtub

repl.it I will stop using you if you dont support php with HTML ) ;

Profile icon
Vandesm14

@Tibtub But they have Nodejs!

Profile icon
Vandesm14

PHP is not currently supported for html repls. If you need server side html pages, use an Express.js repl. Just fork my template to get started: https://repl.it/@Vandesm14/Express-Template

If you need any help learning Nodejs, feel free to ask me.

Profile icon
hillsam001

@Vandesm14 Are there plans to make it supported in the future? It would be really useful...

Profile icon
Vandesm14

@hillsam001 I don't think there are any plans to make it supported. About 1.5 years back I had posted the same question. They said it was on the back burner, and it still seems that way now.

Profile icon
TiffanyLiu1

@Vandesm14 Do you have a sample repl.it (HTML, CSS, JS) with a working form submission?

Profile icon
Vandesm14

@TiffanyLiu1 Refer to this: https://repl.it/@Vandesm14/LameBrokenDemos
It is a template created by Tim Chen. It is a simple system that takes the form request, sends it to the Nodejs server, processes it, and sends it back to the client. If you need more help, feel free ask me: [email protected]

Profile icon
TiffanyLiu1

@Vandesm14 Thanks - like the title suggest the template is 'broken'... is there a working version?

Profile icon
Vandesm14