I have created a new mail function file called mailer.php. I want to be able to call that function fom any page w/o including that file in the same folder. Where in PHP (for windoze) can I put the file so that it will include it by just using include("mailer.php").
thx for your time,
Burr
btw, my php installation is in c:\php
Where to put global includes
Moderator: General Moderators
Just edit PHP.ini's include_path.
This is how mine looked at first:
So you can just change it to:
This is how mine looked at first:
Code: Select all
;Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"Code: Select all
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes;c:\path\to\folder"