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
7 Respuestas
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...
0
they say to run php you need yo install wamp xammp? if in not mistaken
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
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
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
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
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>