PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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:
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]
Last edited by smoogle on Thu Jul 20, 2006 7:16 am, edited 1 time in total.
You can use either the full path or a relative path. The path will not be relative to where the PHP file is actually located though. It will be relative to where the file is being called from.
You are going to dig PHP so much more than ASP. Moreso when you get used to line terminators ( ; ) and variable identifiers ( $ ). Oh yeah, and that whole Subroutine vs Function stuff. But PHP rocks... you'll love it.