• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where to put odds & ends PHP functions?

I'm using a pre-PHP 5.2 version of PHP and need json_encode. I have a replacement function in a PHP file, but need to know where this type of thing is meant to go to hook into my app.

I realize I could put it anywhere and include the file, but is there a specific location for these things to go?

Thanks in advance!

[eluser]Phil Sturgeon[/eluser]
You can chuck that in a helper file, wrapped in a if(function_exists()) like the standard ones do.

Take a look at Helpers in the User Guide.

Actually, I realized it falls more in the category of a plugin. Thanks for the reply!

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.