Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Closed Thread
How to embedd php into html
Old 06-22-2010, 09:31 PM How to embedd php into html
Novice Talker

Posts: 3
Trades: 0
Hi all,

I have php files but I don't know how to embedd the output of my php files into my html template ?

thanks
__________________

Please login or register to view this content. Registration is FREE
fxtrendline is offline
View Public Profile
 
 
Register now for full access!
Old 06-23-2010, 02:14 AM Re: How to embedd php into html
Novice Talker

Posts: 8
Trades: 0
html templates??
show the codes...plz
alibills is offline
View Public Profile
 
Old 06-23-2010, 03:21 AM Re: How to embedd php into html
rahulraj's Avatar
Ultra Talker

Posts: 456
Name: RAHUL RAJ
Location: Cochin, Kerala, India
Trades: 0
read here :
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by rahulraj; 06-23-2010 at 03:26 AM..
rahulraj is offline
View Public Profile
 
Old 06-23-2010, 06:21 AM Re: How to embedd php into html
Novice Talker

Posts: 5
Name: Daniel P
Trades: 0
I think this could be your answer :

Quote:
<html>
<head></head>
<body class="page_bg">
Hello, today is <?php echo date('l, F jS, Y'); ?>.
</body>
</html>
__________________
Daniel P, CEO
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
noucktourno is offline
View Public Profile Visit noucktourno's homepage!
 
Old 06-23-2010, 06:31 AM Re: How to embedd php into html
marcus deli's Avatar
Skilled Talker

Posts: 72
Name: Marcus Deli
Trades: 0
Hope this might help you to embed your php to html: http://onlamp.com/pub/a/php/2001/05/...undations.html
marcus deli is offline
View Public Profile
 
Old 06-23-2010, 08:02 PM Re: How to embedd php into html
Novice Talker

Posts: 3
Trades: 0
Hi thanks all for your help...I'll try it
__________________

Please login or register to view this content. Registration is FREE
fxtrendline is offline
View Public Profile
 
Old 06-25-2010, 02:47 AM Re: How to embedd php into html
Junior Talker

Posts: 2
Trades: 0
Quote:
Originally Posted by marcus deli View Post
Hope this might help you to embed your php to html: http://onlamp.com/pub/a/php/2001/05/...undations.html
This is very nice and informative information which is shared by you. Really very descriptive information this is.
__________________

Please login or register to view this content. Registration is FREE
ritzbhogal is offline
View Public Profile
 
Old 06-26-2010, 12:19 AM Re: How to embedd php into html
Novice Talker

Posts: 12
Name: Amber Hunter
Location: Fort Worth, TX
Trades: 0
Hey:

I actually put together a tutorial a few weeks ago that might help you with this. If you try it out, let me know if you run into any bumps along the way.

http://websitedesign.suite101.com/ar...site-templates

It basically is a walkthrough on how to splice your HTML files into header / footer and content... then use PHP include() to patch them all together again. Basically making a template for a web site. Whether that's your exact goal or not, you may still be able to use PHP include() to get it done.

Hope this helps you!
__________________

Please login or register to view this content. Registration is FREE

1706 N. Stemmons Frwy. (I-35E)
Lewisville, TX 75067
amber0hunter is offline
View Public Profile Visit amber0hunter's homepage!
 
Old 06-28-2010, 06:37 AM Re: How to embedd php into html
Average Talker

Posts: 20
Name: Jeff
Trades: 0
Quote:
Originally Posted by marcus deli View Post
Hope this might help you to embed your php to html: http://onlamp.com/pub/a/php/2001/05/...undations.html

This one is a great answer. It does work to me in helping me out.
ditachedman is offline
View Public Profile
 
Old 01-04-2011, 06:09 AM Re: How to embedd php into html
lynxus's Avatar
Awesomeo-Maximo

Posts: 1,618
Location: UK
Trades: 1
Quote:
Originally Posted by fanlynne View Post
<table bordercolor=#ff7f00 align=center bgcolor=#fce0c4 height=60 cellspacing=0 cellpadding=3 width=180 border=1>
<tbody><tr>
<td valign=center align=middle bgColor=#ff7f00 height=20>
<font face="Verdana, Arial, Helvetica, sans-serif" color=#ffffff size=1>
<b>Say Something Here</b></font></td></tr>
<tr><td>

<?
// put your script here and name the file as .php
?>

</td></tr></tbody></table><br>

<center><IMG SRC="line.gif"></center><br>
Dont use shortcodes ( <? ?> )

Use <?php and ?>

If you suddenly find yourself with a webserver / php installation that doesnt support shortcodes you will find your site / software doesnt work.

Stick to best practise.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


lynxus is offline
View Public Profile Visit lynxus's homepage!
 
Old 01-09-2011, 07:43 PM Re: How to embedd php into html
Helinna's Avatar
Novice Talker

Posts: 5
Name: Helen
Trades: 0
Into html such construction as <?php bla.bla.bla... ?> does not work.

Better

<html>
<head>.....</head>
<body>

<iframe src='phpoutput_in_frame.php' />

</body>
</html>
Helinna is offline
View Public Profile
 
Old 01-20-2011, 04:23 PM Re: How to embedd php into html
Junior Talker

Posts: 3
Name: morrismountain
Trades: 0
PHP is a scripting language embedded in HTML on the server side. Much of its syntax is borrowed from C, Java and Perl with a couple of unique features specific to PHP thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly. NTC Hosting offers its customers a high quality HTML and PHP hosting services. Our servers are configured to ensure maximum performance for your applications HTML and PHP and work non-interruptible your websites.
__________________

Please login or register to view this content. Registration is FREE
morrismountain is offline
View Public Profile
 
Old 01-28-2011, 08:12 AM Re: How to embedd php into html
Junior Talker

Posts: 1
Name: sachin
Trades: 0
PHP can be embedded into a regular HTML document. For example, we should already know that the following is an example of how PHP is embedded: <html>
<head>
<title>My first PHP Page</title>
</head>
<body>
This is normal HTML code
<?php

// php code goes here
?>

Back into normal HTML

</body>
</html> Further, we also learned how we could quickly output variables from PHP code without all of the hassle of an echo statement by doing the following:
<?=$variable?> Today, we will extend our knowledge of embedded PHP by discussing how PHP can be used to control the flow of a web page through conditionals or repetition-control structures.
__________________

Please login or register to view this content. Registration is FREE
jodmark is offline
View Public Profile
 
Closed Thread     « Reply to How to embedd php into html
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.45155 seconds with 12 queries