Didn't really know where to put this. but here goes.
I modify my site locally then upload to the live server when I am finished debugging.
The problem is, sometimes i change gobs of files (especially when adding new 360view pages) and trying to find and upload each changed or new file is generally a daunting task.
My solution was just to upload the entire 'includes' folder. Well, that works well, but I usually copy over the 'configure.php' file. Whoops! Even worse, I sometimes forget and have a non-working site for a bit.
Solution! Yay!
Rename my local file "configure_local.php", the remote file "configure_remote.php" and have both copies on both sites. Then build a new 'configure.php'.
Code:
<?php
// sync configure.php with store location
if ($_SERVER['SERVER_NAME'] == "store.local")
{require ("configure_local.php");}
else
{require ("configure_remote.php");}
?>
Bookmarks