I am moving from asp to php and I am having trouble with a simple type of include. I just want my page to pull it's info from a few include files so the page is mainly server generated. I tried the asp2php but that didn't work. This what I am using for asp.
<%
sub makeMenu(category)
select case ucase(category)
case "SERVICESSIDE"
call makeServicesSideMenu
case "ABOUTSIDE"
call makeAboutSideMenu
case else
call makeShopNav
end select
end sub
sub makeServicesSideMenu
%>
I then have the page include the file with this
<!--#include virtual="/include/master_include_ly.asp"-->
And I call it from the page with this
<%
call makeNavBar("SERVICES")
%>
Could someone point me to a tutorial on this or help me out. I don't necessarily even need that much logic in it. Just a simple page would do fine for me.
Kode