aruns Posted May 10, 2008 Share Posted May 10, 2008 Hi guys, Please tell me .i am create function inside the function.txt how to execute this function in the php file In Function.txt function myfunction() { $test = echo ("This is test"); return $test; } then . How do i call a myfunction() in php page. Thanks Arun Link to comment https://forums.phpfreaks.com/topic/105010-help-with-file-system/ Share on other sites More sharing options...
bilis_money Posted May 10, 2008 Share Posted May 10, 2008 I'm not sure about that. But you can create 2 files. to call your custom made functions into your .php file. for instance; main.php and myfunctions.php just include() myfunctions.php inside main.php BTW, why do you want to use .txt for your function? Link to comment https://forums.phpfreaks.com/topic/105010-help-with-file-system/#findComment-537498 Share on other sites More sharing options...
papaface Posted May 10, 2008 Share Posted May 10, 2008 <?php function myfunction() { $test = "This is test"; return $test; } echo myfunction(); ?> Link to comment https://forums.phpfreaks.com/topic/105010-help-with-file-system/#findComment-537499 Share on other sites More sharing options...
aruns Posted May 10, 2008 Author Share Posted May 10, 2008 My Project Manager needs this . So pls help me Link to comment https://forums.phpfreaks.com/topic/105010-help-with-file-system/#findComment-537508 Share on other sites More sharing options...
papaface Posted May 10, 2008 Share Posted May 10, 2008 I've already told you how to do it.... Link to comment https://forums.phpfreaks.com/topic/105010-help-with-file-system/#findComment-537529 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.