0

Can a php file be included either in body or head of a HTML program???

14th Sep 2016, 2:56 PM
Vishnu Sai Anche
Vishnu Sai Anche - avatar
6 Antworten
+ 1
No. And if you meant php code instead of file, that would make the html file a php one.
14th Sep 2016, 3:02 PM
Zen
Zen - avatar
+ 1
yes you can use php in body and head tags. for example: <html> <head> <title><?php $title = "SoloLearn"; echo $title; ?></title> </head> <body> <?php echo "hello world"; ?> </body> </html>
16th Sep 2016, 2:27 AM
Ilyosjon Kamoldinov
Ilyosjon Kamoldinov - avatar
+ 1
Yes Example is like this <?php include('file.php') ?> <html> <body> <?php include('otherFile.php') ?> </body> </html>
26th Dec 2016, 12:29 PM
Raniket Ram
Raniket Ram - avatar
0
are you talking about required() include() functions?
15th Sep 2016, 8:14 AM
Nagendra Prajwal
Nagendra Prajwal - avatar
0
brother zen please write the code of ur answer
15th Sep 2016, 3:42 PM
Ahmed Kamal
Ahmed Kamal - avatar
0
yes
16th Sep 2016, 5:40 PM
Nishan
Nishan - avatar