ASP to PHP
Posted: Thu Jul 20, 2006 6:24 am
patrikG | Please use
patrikG | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I am currently trying to make the jump from ASP to PHP coding and am aiming to convert my personal website to php to try to get my head around the basics. On my current site I use ASP sub proceedures to define modular content then I just call the sub proceedure in the page where I want it to display. This has been my approach for many sites I have coded as it seperates the content from the design and is much easier to manage the code. I now need to port this over to PHP or if there is a better way to do it I would very appreciative. Here is an example:Code: Select all
<html>
<% sub MyModule() %>
Here is the content
<% end sub %>
<head>
</head>
<body>
<% Call MyModule() %>
</body>
</html>Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]