Central Code Location??
Moderator: General Moderators
-
JPlush76
- Forum Regular
- Posts: 819
- Joined: Thu Aug 01, 2002 5:42 pm
- Location: Los Angeles, CA
- Contact:
Central Code Location??
I'm noodling with the idea of creating a software package for multiple clients to use.. ideally for update purposes I would like to use a central code repository for non-custom functionality on my server.
basically
require_once('http://jimssite.com/code/here.php')
Does anyone see that as being a real performance problem? Pulling classes from a central server.
basically
require_once('http://jimssite.com/code/here.php')
Does anyone see that as being a real performance problem? Pulling classes from a central server.
Well it will increase your server load, but not by a lot. However your server's availibility had better be pretty darn good or your clients will get upset when its down. They also may object to you "holding code hostage" depending on the nature of your contract with them.
And of course make sure you have both testing and production environments so when you change your common code you don't break all your clients at once
And of course make sure you have both testing and production environments so when you change your common code you don't break all your clients at once
simillar thing
The company that I work with is just about to do a simillar thing with a bunch of javaScript code and the only problem we are having is how to protect that code and make sure that registered users of the code are the only ones accessing.
phpScott
phpScott
pretty soon
we will be launching the code pretty soon, well as soon as wee can get this issue sorted.
Because all the pages using the js are acutally php pages will be using an include statement to get the js code in, well just writing the javascripit src = lines. Were are just now playing with header info to see how we can get the url of the site requesting the script.
Im sure it won't be hard to do just need a few hours to play.
phpScott
Because all the pages using the js are acutally php pages will be using an include statement to get the js code in, well just writing the javascripit src = lines. Were are just now playing with header info to see how we can get the url of the site requesting the script.
Im sure it won't be hard to do just need a few hours to play.
phpScott
Thanks jplush76
That's exactly the little bit that I need jplush76.
as for Morbius' comment
nothing, no comment required.
phpScott
as for Morbius' comment
nothing, no comment required.
phpScott
Php complete has a tutorial about this.
Building a PHP Library
Building a PHP Library