PHP is inside of html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

PHP is inside of html?

29th Apr 2017, 8:27 AM
Roland Doctor
5 Answers
+ 4
Ha... marked as "best answer" an answer with main content: "as described above"! :-) Cool...
29th Apr 2017, 9:54 AM
Andrew Harchenko (Tomsk)
Andrew Harchenko (Tomsk) - avatar
+ 4
can you be more specific please? you can put your PHP script within your HTML, you can put html in your PHP script. you can also separate them and use JavaScript to call the php.
29th Apr 2017, 8:30 AM
Mario L.
Mario L. - avatar
+ 4
PHP script can be embedded in html files, but user at client side still won't be able to see it (viewing source code of a page in browser for example) if you have set you web-server right (otherwise php code won't work). Or as said above PHP code can be in separate files.
29th Apr 2017, 9:12 AM
Andrew Harchenko (Tomsk)
Andrew Harchenko (Tomsk) - avatar
+ 3
Ho, now my answer marked as best. O_o But Mario L. was first to answer and I just gave a small add-on. Thank you Roland, but could I pass this mark to Mario, please? :)
29th Apr 2017, 9:58 AM
Andrew Harchenko (Tomsk)
Andrew Harchenko (Tomsk) - avatar
0
Yes as described above. I prefer to call my php from a separate script to keep all my parats organized
29th Apr 2017, 8:39 AM
James
James - avatar