[Slightly OT] Local includes

I use FileMaker Pro to maintain various lists. HTML is exported to text
documents which ultimately end up as server side includes on my site.

The existing problem is that I can’t do a real preview locally, because
I can’t see the includes. I have to repeatedly upload to the server to
see how a page is working as a whole.

Does anyone know if/how I could have includes displayed locally when I
preview a page in browser?

(OSX 10.4.11)

Matt


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I assume your talking about php includes… Try downloading MAMP and pop this in your applications folder, you can then run your site from the MAMP htdocs folder locally when the MAMP application is running.

http://www.mamp.info/

On 20 Apr 2008, at 9:14 am, Matt Wills wrote:

Does anyone know if/how I could have includes displayed locally when I
preview a page in browser?

David Owen ::
Freeway Friendly Web Hosting and Domains
http://www.PrintlineAdvertising.co.uk/freeway

Actually, no, I was talking about Apache, but since that’s what the A in
MAMP stands for, I figured I would give it a shot.

It runs, but still no includes: I have yet to figure out the
configuration file to allow them. Apache.org is my friend, I just have
to dig around and experiment a bit.

Thanks.

Matt

on 04/20/08 7:08 AM David Owen said:

I assume your talking about php includes… Try downloading MAMP and
pop this in your applications folder, you can then run your site from
the MAMP htdocs folder locally when the MAMP application is running.

http://www.mamp.info/

On 20 Apr 2008, at 9:14 am, Matt Wills wrote:

Does anyone know if/how I could have includes displayed locally when I
preview a page in browser?

David Owen ::
Freeway Friendly Web Hosting and Domains
http://www.PrintlineAdvertising.co.uk/freeway



freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

How are you writing the includes? What’s the error?

On 20 Apr 2008, at 1:28 pm, Matt Wills wrote:

It runs, but still no includes: I have yet to figure out the

configuration file to allow them

David Owen ::
Freeway Friendly Web Hosting and Domains
http://www.PrintlineAdvertising.co.uk/freeway

Pretty generic. In a markup item,
(which works perfectly on the server).

I’m not getting any error. I’m getting exactly the same thing as before:
nothing where the include is supposed to be, well, included.

I see in the conf file that MAMP loads the includes module. I am not
having much success finding out exactly how to enable includes (yes,
Apache.org is the authority, but like so many other manuals, they assume
I know a lot more about the subject than I do, and their examples don’t
demonstrate every possibility). The .htaccess route hasn’t worked, either.

Matt

on 04/20/08 9:39 AM David Owen said:

How are you writing the includes? What’s the error?

On 20 Apr 2008, at 1:28 pm, Matt Wills wrote:

It runs, but still no includes: I have yet to figure out the

configuration file to allow them

David Owen ::
Freeway Friendly Web Hosting and Domains
http://www.PrintlineAdvertising.co.uk/freeway



freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You’ve checked the URL to the file is correct? i.e. the file,
filename.txt is in the same directory as the page.

Or try renaming the freeway page filename to end in .php

then add this markup instead see if that helps you.

<?php include("filename.txt"); ?>

On 20 Apr 2008, at 15:45, Matt Wills wrote:

Pretty generic. In a markup item,
(which works perfectly on the server).

David Owen
Freeway Friendly Web hosting and Domains ::
(Test Drive a web hosting account for Free)

http://www.printlineadvertising.co.uk/freeway


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

What are the extensions of the files you are creating?

Servers may only look for includes if the extension is ‘.shtml’. You may need to setup MAMP to parse a broader range of file extensions for includes.

I believe the quick and dirty test is to see if the statements are visible in the html source or not when viewed in a browser. Parsed paged will not display the comments; whereas static, unparsed pages don’t care and show everything.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

More fun with SHTML here: <http://www.softpress.com/kb/article.php?
id=339>

Walter

On Apr 21, 2008, at 9:39 AM, Weaver wrote:

What are the extensions of the files you are creating?

Servers may only look for includes if the extension is ‘.shtml’.
You may need to setup MAMP to parse a broader range of file
extensions for includes.

I believe the quick and dirty test is to see if the
statements are visible in the html source or not when viewed in a
browser. Parsed paged will not display the comments; whereas
static, unparsed pages don’t care and show everything.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The PHP method I suggested works with MAMP locally, if your looking for a quick fix.

On 20 Apr 2008, at 15:45, Matt Wills wrote:

I see in the conf file that MAMP loads the includes module. I am not

having much success finding out exactly how to enable includes (yes,

Apache.org is the authority, but like so many other manuals, they assume

I know a lot more about the subject than I do, and their examples don’t

demonstrate every possibility). The .htaccess route hasn’t worked, either.

David Owen
Freeway Friendly Web hosting and Domains ::
(Test Drive a web hosting account for Free)

http://www.ineedwebhosting.co.uk

http://www.printlineadvertising.co.uk/freeway

I’m away from the computer I can check these things out on for a week or
more.

Will look into it when I get back, and let you know.

M

on 04/21/08 10:29 AM David Owen said:

The PHP method I suggested works with MAMP locally, if your looking
for a quick fix.

On 20 Apr 2008, at 15:45, Matt Wills wrote:

I see in the conf file that MAMP loads the includes module. I am not

having much success finding out exactly how to enable includes (yes,

Apache.org is the authority, but like so many other manuals, they assume

I know a lot more about the subject than I do, and their examples don’t

demonstrate every possibility). The .htaccess route hasn’t worked,
either.

David Owen
Freeway Friendly Web hosting and Domains ::
(Test Drive a web hosting account for Free)
http://www.ineedwebhosting.co.uk
http://www.printlineadvertising.co.uk/freeway



freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options