apache - Translating paths in PHP from (*nix) server to (winxp) dev machine -


i'm working on php project has lot of hard coded paths in it. i'm not main developer, working on small part of project.

i'd able test changes locally before committing them, directory structure different. example, there's lot of in code:

require_once("/home/clientx/htdocs/include.php") 

which doesn't work on local wamp server because path different. there way tell either wamp or xp "/home/clientx/htdocs/" means "c:/shared/clients/clientx"?

if local copy, search , replace on whole directory , please don't forget trailing slash. , when commit code, reverse. solution, if don't want add variables , stuff (because change other developers' code/work/dependencies (if any)

search "/home/clientx/htdocs/" , replace this: "c:/shared/clients/clientx/"


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -