Posted by J.O. Aho on 12/08/05 16:38
Stefan Mueller wrote:
> I've several virtual directories (folders). In each virtual directory I've
> several PHP scripts. Some of them are the same. Therefore I have the same
> code several times on my server.
> e.g.
> http://www.myserver.com/task1/collect_data.php
> http://www.myserver.com/task2/collect_data.php
>
> My goal is to have each script only once and to use something like a
> shortcut instead.
>
> e.g.
> http://www.myserver.com/task1/shortcut_collect_data.php
> http://www.myserver.com/task2/shortcut_collect_data.php
>
> However, a windows shortcut is not working.
No, you need a real symlink to get that to work, but this isn't supported by
Microsoft.
> Is there a way to call another PHP script from a PHP script?
include_once("/full/path/to/my/script.php");
//Aho
Navigation:
[Reply to this message]
|