josh6025 Posted May 23, 2009 Share Posted May 23, 2009 I'm creating a functions file for one of my scripts and I'm having a problem with allowing my global var to interact with the function. Here's what I have for my function; function connect($act) { global $var1, $var2; return mycode } When I'm using it as a stand alone page it works fine, just not if I use it within WHMCS. 0 Quote Link to comment Share on other sites More sharing options...
jrianto Posted May 23, 2009 Share Posted May 23, 2009 If you can be more specific in what you're trying to do, it would be easier to suggest you the many ways to do it. 0 Quote Link to comment Share on other sites More sharing options...
josh6025 Posted May 26, 2009 Author Share Posted May 26, 2009 For one of my scripts I'm making a functions.php page and on that page I'm including a config.php file. So what I need to do is include the global vars into the function, but when I try include them they are not being passed into the function. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.