473,395 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Include Pages and PHP

I have used Include pages for a menu bar within a webpage - See below.

<!--webbot bot="Include" U-Include="menu-categories.htm" TAG="BODY" --
(Created by Frontpage)
It works fine when the page is htm format, but when I use the page in
php format, all the menus that are an Included link do not show.

Any ideas???

Thanks

Alec
Nov 29 '07 #1
4 1765
On Nov 29, 3:00 pm, sa...@freeweekends.co.uk wrote:
I have used Include pages for a menu bar within a webpage - See below.

<!--webbot bot="Include" U-Include="menu-categories.htm" TAG="BODY" --
(Created by Frontpage)

It works fine when the page is htm format, but when I use the page in
php format, all the menus that are an Included link do not show.

Any ideas???

Thanks

Alec
It's tough to say since you haven't included any code. Post it here
and we'll take a look.
Nov 29 '07 #2
In our last episode,
<ec**********************************@g30g2000hsb. googlegroups.com>, the
lovely and talented sa***@freeweekends.co.uk broadcast on comp.lang.php:
I have used Include pages for a menu bar within a webpage - See below.
><!--webbot bot="Include" U-Include="menu-categories.htm" TAG="BODY" --
>(Created by Frontpage)
It works fine when the page is htm format, but when I use the page in
php format, all the menus that are an Included link do not show.
Any ideas???
Thanks
Why in the world would you think a server would pre-process a page twice?
Use PHP to do the include --- do not expect the server to parse the page
again. You have not supplied enough details to make it possible to say
exactly how this goes wrong in your particular configuration, but your
theory is fundamently flawed and will go wrong, albeit in perhaps slightly
different ways, in any configuration.
--
Lars Eighner <http://larseighner.com/us****@larseighner.com
Countdown: 417 days to go.
Nov 29 '07 #3
sa***@freeweekends.co.uk wrote:
I have used Include pages for a menu bar within a webpage - See below.

<!--webbot bot="Include" U-Include="menu-categories.htm" TAG="BODY" --
>(Created by Frontpage)
(Created by FrontPage)

First mistake.
It works fine when the page is htm format, but when I use the page in
php format, all the menus that are an Included link do not show.
Expecting FrontPage to understand PHP - second mistake.
Any ideas???

Thanks

Alec
1. Learn basic HTML and get rid of your garbage generator.
2. Use PHP includes to include the files.

FrontPage include statements are in .htm(l) files and processed by the
FrontPage extensions. PHP statements are in .php files and are
processed by the PHP interpreter.

Ne'er the twain shall meet.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Nov 30 '07 #4
NC
On Nov 29, 12:00 pm, sa...@freeweekends.co.uk wrote:
>
I have used Include pages for a menu bar within a webpage - See below.

<!--webbot bot="Include" U-Include="menu-categories.htm" TAG="BODY" -->

(Created by Frontpage)

It works fine when the page is htm format, but when I use the page in
php format, all the menus that are an Included link do not show.

Any ideas???
As a short-term fix, replace this:

<!--webbot bot="Include" U-Include="menu-categories.htm" TAG="BODY" --
>
with this:

<?php readfile('menu-categories.htm'); ?>

As a long-term strategy, do not use Frontpage past HTML template
development; once you have a HTML / CSS / JavaScript template,
continue to develop with something better suited for PHP.

Cheers,
NC
Nov 30 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Paul Woodward | last post by:
I have a medium sized ecommerce website which I have written using PHP and MySQL and I have a number of include files with some of them being included by all pages of the site and a few only...
5
by: cooldv | last post by:
i have many *.html* pages with the same header. i wanted to make one *header* file and put a link to that file in all html pages. So if i ever need to make changes in the header, i will need to...
2
by: Mo | last post by:
Hi all, I hope that someone out there can help me with a problem I have been having. I have just finished creating a website and have added a header to most of the pages on my site. The header...
0
by: Thanasis \(sch\) | last post by:
hi to everyone, i run front page 2003 on windows xp professional (iis 5.1 installed) with net framework 1.1 and net framework service pack 1 installed. When i built a web site (on iis 5.1)...
4
by: juglesh | last post by:
please comment on the following methods of preventing cross site scripting and/or other nastiness: 1: $pages = array('home','contact','about','links' ); // could also build this array with...
10
by: EnjoyNews | last post by:
I have a php site I have an include line called "include 'Cookie.php';" In this Cookie.php file I have these codes. <?php $conn = mysql_connect("$db", "$user", "$pass");...
2
by: Kraai | last post by:
in normal asp , and even php i could use the <!--#include file="login.aspx" --> or <!--#include virtual="login.aspx" --> to include pages in my main page without using frames! when i try...
3
by: Tams TS | last post by:
Hi, am in trouble , please giv me some solution. scenario is like this; I have some asp pages and which are commerce server 2000 generated pages and going further am adding one aspx page to the...
1
by: Joe | last post by:
Hi, I haven’t mastered the asp.net yet to be able to use asp.net 2.0 master pages. So I am planning to create pages with .aspx extension and once I am confident, I will rewrite them using...
14
by: Julesh | last post by:
Hello, I am new to ASP and am trying to make some changes to some ASP 3.0 code I have inherited. I have a number of ASP pages with VBS as the base language, on each of these pages I have...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.