PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
include ("c:\\inetpub\\wwwroot\\cookBook\\recipes\\lib\\Cookbook.php");
include ("c:\\inetpub\\wwwroot\\cookBook\\recipes\\lib\\Cookbook_Utils.php");
include ("c:\\inetpub\\wwwroot\\cookBook\\recipes\\lib\\Cookbook_Webutils.php");
include ("c:\\inetpub\\wwwroot\\cookBook\\recipes\\lib\\Cookbook_Session.php");
Can anyone show me how to how use getcwd()to get the source ???
And I would not mind if there is any other method to go about it.
My intend is to use a file to keep all path in the root of the server and call it
with a function.
How can I do this please???
Thanks
<?php
$rootdir = "c:\\inetpub\\wwwroot\\cookBook\\recipes\\lib";
include ("$rootdir\\Cookbook.php");
include ("$rootdir\\Cookbook_Utils.php");
include ("$rootdir\\Cookbook_Webutils.php");
include ("$rootdir\\Cookbook_Session.php");
?>
If it's just cwd you want (which you'd have to basically use above methond anyway) you can get all the info on it at http://www.php.net/getcwd. Hope this helps, Enjoy!