31,029
edits
| Line 55: | Line 55: | ||
<source lang="php"> | <source lang="php"> | ||
include('/pathofdolibarrhtdocs/master.inc.php'); | include('/pathofdolibarrhtdocs/master.inc.php'); | ||
</ | </source> | ||
This will create objects $db, $lang and $user. | This will create objects $db, $lang and $user. | ||
If we want that actions (create, update), are tagged with a particular user as the create/update user, you must do after the include of master.inc.php and before callong the create or update methode | If we want that actions (create, update), are tagged with a particular user as the create/update user, you must do after the include of master.inc.php and before callong the create or update methode | ||