+ 1
PHP programming inside HTML
<title>my php file</title> ==0 Why it's showing ==0? Nothing displays on the window. How should I solve this problem?
5 Réponses
+ 6
write HTML & PHP inside PHP file not HTML, php inside HTML are treated as normal HTML characters.
Ugyen Chophel Said to use PHP inside html on Xampp or other localserver you can do by setting configuration on localserver to run php inside HTML but this is not a proper way you cannot see any projects where php is written inside HTML file, always use PHP extension file
https://code.sololearn.com/wMua18T1v6nT/?ref=app
+ 5
I agree with Sudarshan Rai 👑
+ 2
Following HTML will run only run on your local server.
@SampleCode
https://code.sololearn.com/WyE58rX2hlSa/?ref=app
############################
To run PHP code inside HTML code in SoloLearn
Do like Sudarshan Rai 👑 mentioned.
[edited]
0
<!DOCTYPE html>
<html>
<head>
<title><?php echo "my php file";?></title>
</head>
<body>
<h1>< php echo 'hello, Ninza';?></h1>
</body>
</html>
</html>
0
It shows " DISPLAY: NONE;"
Why?