You are here: How to call a PHP script by using something like a shortcut « All PHP « IT news, forums, messages
How to call a PHP script by using something like a shortcut

Posted by Stefan Mueller on 12/08/05 16:18

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.

Is there a way to call another PHP script from a PHP script?
Stefan


PS: I tried 'Include' but with 'Include' I can't include a whole file with
(<html><head>..</head><body><?php .. ?></body></html>)

 

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

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