if your including plain HTML with no php in it then it's quicker to use readfile()...
"Roderick Martin" <[EMAIL PROTECTED]> wrote in message news:45763EEA-E6A8-11D6-A0B1-0030653D8C1C@;network23.com... > My bad! Windows is definitely not a strong suit with me. I did not know > I could do the drive paths with the reverse slashes. I tried it and it > worked flawlessly! Thank you!!! > > All I have to do now is add the drive path up to the web directory to > the replace. > > Thanks again! Easier than I could have hoped for. > > Rod > > On Wednesday, October 23, 2002, at 10:13 AM, Rich Gray wrote: > > > Roderick > > > > Have you tried just changing '/acc/includes/headstart.htm' to > > 'c:/acc/includes/headstart.htm'? i.e. leaving the unix style slashes in > > place... > > > > There is a nasty bug in the latest versions of PHP on Win32 affecting > > the > > include statement with absolute paths. > > The above is a workaround solution - once the bug is fixed you should > > be > > able to remove the 'c:' stuff. > > > > HIW! > > Rich > > -----Original Message----- > > From: Roderick Martin [mailto:maillist@;network23.com] > > Sent: 23 October 2002 15:43 > > To: [EMAIL PROTECTED] > > Subject: [PHP-WIN] Mixing include path styles. How do I do this??? > > > > > > We recently switched from Netscape Enterprise to IIS and I now need to > > make a lot of changes to over 600 htmls - mostly in include statements. > > We're doing two things here, switching servers and switching all our > > SSI's to PHP includes. > > > > Under Enterprise, I could define a path just by putting it into the > > include from the root, ie: > > > > <!--#include virtual="/acc/includes/headstart.htm"--> > > > > I used a global Find and Replace app to change all these (each html has > > about eight includes) to: > > > > <? include '/acc/includes/headstart.htm'; ?> > > > > and now they don't work. If I replace the whole path with a Windows > > path structure (C:\...) to the included file, it does work. > > > > Here's the problem as I see it. I can easily do another Find and > > Replace to add in the first part of the directory tree to the web > > directory. What I cannot easily do is change the "/" to "\" inside the > > path for the part of the path that's already there. > > > > Is there some way to define the path to the web directory using "\", > > maybe in a variable and then somehow/way switch over to "/" so I don't > > have to mess with the paths I already have? > > > > Or maybe there's a solution I'm not even aware of. Thank you. > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php