FRIHOST
•
FORUMS
•
FAQ
•
TOS
•
BLOGS
•
DIRECTORY
You are invited to
Log in
or
Register a Frihost Account
!
PHP CODE INCLUSION
Frihost Forum Index
->
Scripting
->
Php and MySQL
Scorpio
Is it possible to include a php code in a html page.
If so how and what should be done?
Thank you
BlackSkad
Euhm, I think you missed some crucial php-lessons
You can easily embed your php in you're html in this way (and not the other way round):
Code:
<!-- html-code here -->
<?php
//php-code here
?>
<!-- html-code here -->
So embedded php is always between <?php and ?>, and you need to name the file with an .php extension.
BlackSkad
Rhysige
What those guys said.. whenever you want to use PHP just put <?PHP then your PHP code then ?>
If you just want to include pages in HTML pages I suggestion you look at Server Side Includes (SSI)
Scorpio
Thank you for that.
A Little confusion cleared up
abhinav_shah
The font color is real bad... are you testing eye sight or what ?
Scorpio
What font color are you talking about?
Frihost Forum Index
->
Scripting
->
Php and MySQL
FRIHOST HOME
|
FAQ
|
TOS
|
ABOUT US
|
CONTACT US
|
SITE MAP
© 2005-2007
Frihost
,
forums
powered by
phpBB
.