Reply to use virtual hosts to develop locally but upload throws error in source file references

Your name:

Reply:


Posted by Paul on 01/19/07 12:51

On my development computer, I have virtual named host set up, like
www.site1.lab.

When I upload those to my web site for customer review under
mywebsite.com/clients/site1/
it throws some of the source file references off and it does not work
properly.

My references are like:
require_once($_SERVER['DOCUMENT_ROOT']."/utility/top.php");

Obviously those will not work since $_SERVER['DOCUMENT_ROOT'] references
mywebsite.com.

Is there anything I can do in apache.conf for a virtual directory that would
make it so when I upload a site for customer review, I don't have to change
the source references?

[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

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