How To Include Files In Php With Windows Web Server Absolute Path


How To Include Files In Php With Windows Web Server Absolute Path
  Forums Index
      » Windows Hosting Forums
        » » how to include files in php with windows web server absolute path



How To Include Files In Php With Windows Web Server Absolute Path
Post Description:
Post Tags: how, to, include, files, in, php, with, windows, web, server, absolute, path, Windows, Hosting, Wallpaperama, Free, Wallpapers
This Post Has Been Viewed 204 Times Since Fri Mar 07, 2008 7:12 pm Posted By hostman with 0 replies
Next Post »» what is windows server htdocs root directory Inetpub wwwroot
How To Include Files In Php With Windows Web Server Absolute Path
you know when you have a linux web server with apache, its easy to include the absolute path of a file

for example if i want to include a file called functions.php in my includes/ directory all i have to do is give the absolute path like this:

include('/var/www/html/includes/functions.php');



but how about if i have microsoft windows and i have apache installed on it

i thought i could just do it with:

include('C:/Inetpub/wwwroot/includes/functions.php');



well, that just doesn't work

the correct way to do it is this:

include("C:\\Inetpub\\wwwroot\\includes\\functions.php");




Leave Your Comments
* Your Name

  * Your Email Address (Will Not Be Published)

* Your Comments


Add Picture To Comments
Yes No             upload
Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

     




Comments and replies About How To Include Files In Php With Windows Web Server Absolute Path






(0) Comments