0

how do i run a html file with php and what are the requirements to use php PS: Im only doing dis for school project not making my own site

html and php

28th Aug 2016, 4:50 AM
Thomas Oviedo
Thomas Oviedo - avatar
7 Respostas
0
<?php <html> <head> <title> You titel text </title> </head> <body> <p> Your text </p> </body> </html> ?> OR <?php echo " <p> Your text....! </p>" ; ?> Hope you will understand that. if have any dout about my answer plese replay as soon l. Good bye...
28th Aug 2016, 5:01 AM
vinay
vinay - avatar
0
they say to run php you need yo install wamp xammp? if in not mistaken
28th Aug 2016, 5:04 AM
Thomas Oviedo
Thomas Oviedo - avatar
0
you can run xammp run your system after you can creat php page showing the sorce code on my 1st post after upload that file on your server File manager. thats all if have dout u can happy to replay.. goodbye
28th Aug 2016, 5:40 AM
vinay
vinay - avatar
0
wow look im doing a project in school and i have a problem on my login. when they login to my site the name only displays on the 1st page i need to display it on all pages and to do that i think you need php? PS: This is only a project not a online site
28th Aug 2016, 6:14 AM
Thomas Oviedo
Thomas Oviedo - avatar
0
so you need to create a database who save the name of your user, and you need to learn more about session in php , php.net. look about the superglobal variable $_SESSION and how to use
28th Aug 2016, 7:38 AM
francis
0
yeah but i think thats easy. Im thinking how would i use php. I think php's latest version cant mixed with html but anyways thanks
28th Aug 2016, 8:13 AM
Thomas Oviedo
Thomas Oviedo - avatar
0
you should to use Wamp server or get web host and domain and upload your file to run the PHP script and for add PHP script in html page it's can't work you should to save the file type as .PHP an if you are using notepad++ just change the language to PHP and the notepad++ will save the file type as .php and to add html in php page you can use this script : <html> <head> </head> <body> <?php ?> </body> <html>
25th Sep 2016, 11:40 AM
Yahya housh
Yahya housh - avatar