A
|
Aleix author 1/8/2009 |
Hello; We want use User Function in the event code. I mean put a functionName() and the function is in the library, but I don´t Know where I should store the file funtion. Someone Konw how can I do? Or where can information about it? It is in this way? In the event code put: include_once "userFunctions.php"; //where userFunction.php is the file where the functions are store. funtion1(); funtion2();.... In this case; Where I should store the file "userFuntions.php"? Thanks Well we do it! Sure is esasy for all, but I explain for if can help to someone like us. It is the same tha you can do in the normal php You write the functions, and store in the file MyFunctions.php This file, and here is the bit diference, you should store in the directory C:\Archivos de programa\PHPRunner5.0\source\include And then you can use the function like another in the event code include_once "MyFunctions.php"; function() In another hand, you can punt the function declare in the file C:\Archivos de programa\PHPRunner5.0\source\include\commonfuntions.php Then you don´t need "include" line code I hope it help to some one! Bye! |