Jump to content

if i find a new function i like where do i put it on my server? for it to work..


scbookz

Recommended Posts

if i find a new function i like where do i put it on my server? for it to work all parts of the system

 

i use linux ubuntu is there a file i can put all functions so that anytime a function is called that it will be seen no matter what?

thanks

im new

You'd have to put it in an extension or modify the PHP source and compile it right in.  You could also put a global include file (usually in /usr/local/lib/php) that you can then call from any application without providing a path.  So if you made a file called "my_shared_functions.php" and placed it in "/usr/local/lib/php" then you could "include" it from anywhere in your system using just include("my_shared_functions.php").

i like this idea and this was what i was asking-->

So if you made a file called "my_shared_functions.php" and placed it in "/usr/local/lib/php" then you could "include" it from anywhere in your system using just include("my_shared_functions.php").

 

this also works with shell commands

if a functionis in a certain part of the  system it works always no matter where you are

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.