[Nfb-web] PHP Includes Issue
Chris Westbrook
westbchris at gmail.com
Sun Oct 26 22:41:52 UTC 2008
I don't know htat much about php, but I think you should probably use
relative paths, not absolute, so they will work on any server.
----- Original Message -----
From: "Peter Donahue" <pdonahue1 at sbcglobal.net>
To: <nfb-web at nfbnet.org>
Cc: <programmingblind at freelists.org>; <blindwebbers at yahoogroups.com>
Sent: Sunday, October 26, 2008 5:06 PM
Subject: [Nfb-web] PHP Includes Issue
> Good afternoon everyone,
>
> A number of Web sites I manage were recently moved to a new server.
> They use PHP includes for displaying content common to all site pages. On
> the old server I used absolute paths for these includes. I'm not sure
> which
> version of PHP was in use on that machine, but all worked fine. No matter
> if pages were located in the root folder, or in sub folders the includes
> loaded fine. On the new machine they're not loading at all unless the site
> pages are located in the root folder, and the absolute path is removed.
>
> I have two options and am not sure which is the best fix for this
> situation. I'd like to continue using PHP, hut don't care to have to
> update
> umpteen includes and footer files for pages stored in umpteen site
> folders.
> I need to know from a PHP guru is there is a fix for this situation that
> will cause my includes to be displayed on pages located in subfolders, or
> do
> I need to do things the hard way?If someone has code that I can add that
> will cause PHP includes to be displayed regardless of a page's location on
> the server that will be very much appreciated.
>
> This server also supports Server-Side Includes which load on pages in
> any location on the server. One of the sites I manage was created using
> SSI.
> The include loads on all site pages some of which are located in
> subfolders. The question is can I continue to build these sites using PHP,
> or should I convert them over to Server-Side Includes to fix this problem?
> Suggestions and PHP code snippids to add to the PHP include tag will be
> very
> helpful. I need to move on this as four Web sites are effected by this
> problem. Thanks for your help.
>
> Peter Donahue
>
>
>
> "Given a chance to dream it can be done.
> The promise of tomorrow is real.
> Children of Spaceship Earth the future belongs to us all."
> Flying for Me,
> John Denver
>
>
> _______________________________________________
> Nfb-web mailing list
> Nfb-web at nfbnet.org
> http://www.nfbnet.org/mailman/listinfo/nfb-web_nfbnet.org
> To unsubscribe, change your list options or get your account info for
> Nfb-web:
> http://www.nfbnet.org/mailman/options/nfb-web_nfbnet.org/westbchris%40gmail.com
>
More information about the NFB-Web
mailing list