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??? Link to comment https://forums.phpfreaks.com/topic/58415-php-include-statments-runs-all-functions/ 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. Link to comment https://forums.phpfreaks.com/topic/58415-php-include-statments-runs-all-functions/#findComment-289633 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.