You are here: Re: Run PHP scripts outside of the web directory « PHP Programming Language « IT news, forums, messages
Re: Run PHP scripts outside of the web directory

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация