abraham Posted September 5, 2009 Share Posted September 5, 2009 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 Quote Link to comment Share on other sites More sharing options...
Byron Posted September 5, 2009 Share Posted September 5, 2009 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"; ?> Quote Link to comment Share on other sites More sharing options...
abraham Posted September 5, 2009 Author Share Posted September 5, 2009 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. Quote Link to comment Share on other sites More sharing options...
Bill Posted September 5, 2009 Share Posted September 5, 2009 No php is active for all accounts... Quote Link to comment Share on other sites More sharing options...
abraham Posted September 5, 2009 Author Share Posted September 5, 2009 i found the problem, really noob btw, i named the file index.html instead of index.php -.-U ... everything is good now thanks for your help. Quote Link to comment Share on other sites More sharing options...
Raninf Posted September 5, 2009 Share Posted September 5, 2009 (edited) Your extension is HTML. It should be either PHP, or PHTML. Edit: Whoops, sorry, didn't see the last post. Edited September 5, 2009 by Raninf Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.