Reply to Re: How to call a PHP script by using something like a shortcut

Your name:

Reply:


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

[Back to original 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

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