gianni
|
| Posted: 05/13/2002, 1:15 AM |
|
Hi,
I have some global functions common to two different projects. I would like to write them in a separate text file and include them so that I don't have to make changes in two places.
How can I do?
Thanks
Gianni
|
|
|
 |
Gianni
|
| Posted: 05/13/2002, 2:07 AM |
|
I found by myself:
Saved my functions in "includes/myInclude.php.inc" and just put in the global functions:
include "includes/myInclude.php.inc" ;
I also checked in project Properties->Files the box "Copy/publish files to the server" giving the pathname of source and destination directory, but files aren't copied.
|
|
|
 |
Gianni
|
| Posted: 05/13/2002, 2:42 AM |
|
Ok, ok...
destination path is relative to publishing path/folder.
|
|
|
 |
|