Jump to content

Recommended Posts

Posted

hello everybody! I just received the validation of my first domain and i'm pretty new with this... i created an index.html file with this code:

 

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
Welcome to Brontocorp</title>
</head>
<body>
<h1>BRONTOCORP</h1>
<?php  echo "time is ".time() ?>
<?php  echo "hello" ?>
<h2>End of php code</h2>
</body>
</html>

 

but the only thing i get is:

 

Brontocorp

End of php code

 

...

 

so, how can i activate the php code?? help please...

 

thanks in advance ^_^

Posted
so, how can i activate the php code?? help please...

 

thanks in advance ^_^

 

By adding your semi colons:

 

<?php echo "time is ".time(); ?>

<?php echo "hello"; ?>

 

Posted

I think that when the php code is just a line you don't need to add a semi-colon. However, i tried that way and nothing... is PHP active only for some "premium accounts" or something? i created my domain for free.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...