hi guys,
just been at tech and we are doing a project in asp, (HAVE to do a project in asp, crappy i know) and im in a small team. now the lady wrote some code today and she used a include file menu.inc for the menu. now this menu was generic across all pages. it was a good idea as it was helpful for my webpage. so i did a bit of googling and it seems its only for asp? is this correct?
all i want to do is put my nav in a include file and include it on my html/php pages.
can i do this and what is the include file code for this.
i have used include files in php (connection file etc) but not for html for example a menu.
thanx!
include files
Moderator: General Moderators
- harsha
- Forum Contributor
- Posts: 103
- Joined: Thu Jul 11, 2002 1:35 am
- Location: Bengaluru (Bangalore) > Karnataka > India
use any asp2php convertor and convert the asp code to php
or include it remotely.
include_once("http://www.somesite.com/nav.asp");
and do some manipulations
enable ASP tags <% %> Tags in php.ini and try it
or include it remotely.
include_once("http://www.somesite.com/nav.asp");
and do some manipulations
enable ASP tags <% %> Tags in php.ini and try it
also make sure that the webserver you are using can interpret asp pages otherwise there is not poing in doing the second suggestion.
if the asp file is just providing the menu structure then it will be fine to use as long as the links are correct for your php pages.
I find that when redirecting from asp to php pages or vice versa that the GET method is best. IMHO.
if the asp file is just providing the menu structure then it will be fine to use as long as the links are correct for your php pages.
I find that when redirecting from asp to php pages or vice versa that the GET method is best. IMHO.
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
You can include HTML just as easily as a connection file:
Mac
Code: Select all
include 'mymenu.inc.php';