The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.28 (Linux)
|
Help with finding my Dir - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: Installation (https://forums.formtools.org/forumdisplay.php?fid=4) +--- Thread: Help with finding my Dir (/showthread.php?tid=2751) |
Help with finding my Dir - bsoussana1234 - Dec 3rd, 2013 I Need Help with php path in paypal donation form example I freely confess that I know virtually nothing about php - can someone provide me an concrete example of what the php should look like in my /includes/library.php file using the example files from the formtools.org website. For example, if I install the example files in a directory: http://www.mysite.com/forms/. Then what should the top lines (below) in the /includes/library.php file be changed to? // the path needs to be updated to include your api.php $includes_folder = dirname(__FILE__); require_once("$includes_folder/path/to/global/api/api.php"); RE: Help with finding my Dir - Joe - Dec 29th, 2013 You can just use this to find the path to your installation: http://www.htaccesstools.com/articles/full-path-to-file-using-php/ Cheers, Joe |