0

How do I require PHPTAL.php that I added to my buildpath (PHP Include path folder)?

It would do with either an absolute or relative path.

zrvan
  • 7,533
  • 1
  • 22
  • 23
user1151840
  • 41
  • 1
  • 3

1 Answers1

0

If the file is in one of the folders in your include_path:

require('PHPTAL.php');

Otherwise simply specify the relative or absolute path to the file (if you use a relative one it must be relative to the path of the PHP script that was initially called by the HTTP request):

require('/path/to/PHPTAL.php');
ThiefMaster
  • 310,957
  • 84
  • 592
  • 636