Welcome to WebmasterWorld Guest from 54.167.86.211

Forum Moderators: incrediBILL

Message Too Old, No Replies

Using both html and php on a page

     
2:59 am on Apr 17, 2010 (gmt 0)

New User

5+ Year Member

joined:Apr 17, 2010
posts: 1
votes: 0


Can you use both in a web page without them fighting?
1:43 pm on Apr 17, 2010 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12533
votes: 0


Welcome to WebmasterWorld, Juantus.

Absolutely! Have a look at the tutorial [php.net].
5:29 am on Apr 18, 2010 (gmt 0)

New User

5+ Year Member

joined:Mar 18, 2008
posts:36
votes: 0


U can use html directly in a php page but not the other way around.
6:25 am on Apr 20, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 30, 2003
posts:3719
votes: 0


U can use html directly in a php page but not the other way around.


Thats not quite true. You can use .htaccess to parse html files as php.

dc
11:18 pm on Apr 22, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member penders is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:July 3, 2006
posts: 3123
votes: 0


Remember that all the PHP is processed server-side (it is contained within special tags which clearly marks it), so by the time the page gets to the clients browser, there is only HTML left.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members