Hi
I remember log time ago, there was a small trick with the userfuncs.php, so use an external php file.
But i don't remember how - can any one tell me how
External php file
Re: External php file
What exactly do you want to do with the external PHP file?
- include it, so you can use its functions
- display its output on a page
- something else
Last edited by cmb on Tue Jun 04, 2013 2:02 pm, edited 1 time in total.
Reason: added PS
Reason: added PS
Christoph M. Becker – Plugins for CMSimple_XH
Re: External php file
Hi maeg
You can include a php file from functions.php if you add this line:
if (file_exists ($pth['folder']['cmsimple'].'userfuncs.php')) { include($pth['folder']['cmsimple'].'userfuncs.php');
userfunc.php can be any name you want
best regards
Bjorn
You can include a php file from functions.php if you add this line:
if (file_exists ($pth['folder']['cmsimple'].'userfuncs.php')) { include($pth['folder']['cmsimple'].'userfuncs.php');
userfunc.php can be any name you want
best regards
Bjorn