+ 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?

19th Jul 2020, 10:51 AM
Chowdhury Rishad Nigar
Chowdhury Rishad Nigar - avatar
5 Answers
+ 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
19th Jul 2020, 11:12 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 5
19th Jul 2020, 11:22 AM
Ugyen Chophel
+ 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]
19th Jul 2020, 10:53 AM
Ugyen Chophel
0
<!DOCTYPE html> <html> <head> <title><?php echo "my php file";?></title> </head> <body> <h1>< php echo 'hello, Ninza';?></h1> </body> </html> </html>
19th Jul 2020, 11:01 AM
Chowdhury Rishad Nigar
Chowdhury Rishad Nigar - avatar
0
It shows " DISPLAY: NONE;" Why?
19th Jul 2020, 11:06 AM
Chowdhury Rishad Nigar
Chowdhury Rishad Nigar - avatar