Posted by denis on 02/13/07 17:24
"Aggelos" <djjelly@gmail.com> wrote in message
news:1171374469.796784.84640@a34g2000cwb.googlegroups.com...
> Hello,
> Is it possible to run a script that will be used from all the websites
> on the server outside of the web dir ?
> At the moment for every site I have I upload the script in the web dir
> of the specific site...
>
> Specifically it is a RichEditor so it has javascripts as well ...
> But it is difficult to maintain updates of the script to all websites
> so I would prefer if I had only one place to update it...
>
> Any ideas will be appreciated.
>
> Angelos.
>
I'm sure the other idea about symbolic links is fine, but couldn't you just
put a small "shell" php file with something like
<?php
include ("/path/to/the/real/script");
?>
anywhere you'd like to use the script? This way you change the script in one
place and the includes in the shell file will reflect that in any
application which uses it.
I'm just saying that as you'd be able to avoid having to make symbolic links
for every new app that uses your script.
Denis Gerina
Navigation:
[Reply to this message]
|