calmchess Posted July 4, 2007 Share Posted July 4, 2007 when i use an include statement all my functions seem to get ran.....how do i stop a function from running unless explicitly called such as............................. test(); ////when an include statement calls a php script from a diffrent php page containing the script i wish to use??? Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted July 4, 2007 Share Posted July 4, 2007 Are you calling your functions inside your included page or just defining them? Your functions should not run unless you call them somewhere. 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.