Re: can't get includes to load [message #180934 is a reply to message #180932] |
Wed, 27 March 2013 06:53 |
J.O. Aho
Messages: 194 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 27/03/13 03:14, Jim Higgins wrote:
> On Tue, 26 Mar 2013 14:50:20 -0700, in
> <3bednVqnL5qAhc_MnZ2dnUVZ_q6dnZ2d(at)supernews(dot)com>, Cal Dershowitz
>> I have simple questions at this point: how do you try something new on
>> your server without stomping all over the last thing that worked?
>
>
> Let's say the page you want to work on is named ORIGINAL.PHP. You
> make a copy of that file and you call it something like
> ORIGINAL.PHP.BAK. Then you work on ORIGINAL.PHP. If you need more
> copies og that original, you can append a date or a letter or whatever
> after BAK to differentiate them.
I would say this is a medieval method and sadly I have seen this done by
consults who been working on web sites. I do not recommend this method,
use git or similar to keep track of files and it even allow you fast
switch between branches where you test different things.
http://wiki.freegeek.org/index.php/Git_for_dummies
http://www.ralfebert.de/tutorials/git/
far easier to just do a "git checkout index.php" if you want to revert
to the old version and you do not have to worry that you by mistake
edited a file without making a "BAK/BUP" copy of it.
--
//Aho
|
|
|