Resolved php support

ejlx10ho

New Member
Messages
10
Reaction score
0
Points
1
Does x10hosting support php? I am a beginner to learn php and want to try a very basic .php code within an index.html file like:

<!DOCTYPE html>
<html>
<body>

<h1>My first PHP page</h1>

<?php
echo "Hello World!";
?>

</body>
</html>

HOWEVER, the x10hosting editor indicates an error at "<?php". Why?
 

Anna

I am just me
Staff member
Messages
11,739
Reaction score
579
Points
113
You need to save the file as index.php for php to be properly read by the webserver.
 
Top