Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #8874

Re: can't get includes to load

Message-ID <1972622.Wd2QAAWABF@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2013-03-27 09:08 +0100
Subject Re: can't get includes to load
Newsgroups comp.lang.php
References <H4qdnb_BO5pZ2MzMnZ2dnUVZ_oOdnZ2d@supernews.com> <ard4vmFub4uU1@mid.individual.net> <3bednVqnL5qAhc_MnZ2dnUVZ_q6dnZ2d@supernews.com> <oik4l8p0ba3bul14o0ohu58ad1l3opae1d@4ax.com>

Show all headers | View raw


Jim Higgins wrote:

> Cal Dershowitz wrote:
>> 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.

Or you are a *responsible* *professional* Web developer.

Then you would use a local (private) Web server with a sufficiently similar 
setup on which you test changes before you upload to the remote (public) 
one.  You would not upload files directly, but commit to a project 
repository of a version control system (like SVN or git) allowing you to 
roll back the remote version to a working state at any time should it turn 
out that – then unlikely – something did not work remotely that did work 
locally.

You would keep your commits atomic (changes that belong together go into the 
same commit) and write commit comments so you would know what you changed 
and where you changed it (and, if you are in a team, who made the change), 
removing the need for a host of almost-duplicate files on the server that 
only you know about (and have to reverse-engineer with manual diff what you 
changed and why you changed it back then; and, if you are in a team, who 
changed it).


HTH

PointedEars
-- 
Sometimes, what you learn is wrong. If those wrong ideas are close to the 
root of the knowledge tree you build on a particular subject, pruning the 
bad branches can sometimes cause the whole tree to collapse.
  -- Mike Duffy in cljs, <news:Xns9FB6521286DB8invalidcom@94.75.214.39>

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

can't get  includes to load Cal Dershowitz <cal@example.invalid> - 2013-03-25 23:52 -0700
  Re: can't get  includes to load "J.O. Aho" <user@example.net> - 2013-03-26 09:36 +0100
    Re: can't get  includes to load Cal Dershowitz <cal@example.invalid> - 2013-03-26 14:50 -0700
      Re: can't get  includes to load Jim Higgins <ILikeMy@Privacy.bogus> - 2013-03-27 02:14 +0000
        Re: can't get  includes to load "J.O. Aho" <user@example.net> - 2013-03-27 07:53 +0100
          Re: can't get  includes to load Cal Dershowitz <cal@example.invalid> - 2013-03-27 02:35 -0700
            Re: can't get  includes to load "J.O. Aho" <user@example.net> - 2013-03-27 11:00 +0100
              Re: can't get  includes to load "J.O. Aho" <user@example.net> - 2013-03-27 11:03 +0100
              Re: can't get  includes to load Cal Dershowitz <cal@example.invalid> - 2013-03-28 00:17 -0700
                Git (Was: can't get  includes to load) "J.O. Aho" <user@example.net> - 2013-03-28 08:35 +0100
                Re: can't get  includes to load Cal Dershowitz <cal@example.invalid> - 2013-03-28 00:41 -0700
                Git (Was: can't get  includes to load) "J.O. Aho" <user@example.net> - 2013-03-28 09:34 +0100
                Re: Git (Was: can't get  includes to load) Cal Dershowitz <cal@example.invalid> - 2013-03-29 00:28 -0700
                Re: Git (Was: can't get  includes to load) "J.O. Aho" <user@example.net> - 2013-03-29 13:14 +0100
                Re: Git (Was: can't get  includes to load) Cal Dershowitz <cal@example.invalid> - 2013-03-31 00:31 -0700
                Re: Git (Was: can't get  includes to load) "J.O. Aho" <user@example.net> - 2013-03-31 11:54 +0200
        cleaning up first php page was Re: can't get  includes to load Cal Dershowitz <cal@example.invalid> - 2013-03-27 00:00 -0700
          Re: cleaning up first php page was Re: can't get  includes to load "J.O. Aho" <user@example.net> - 2013-03-27 09:06 +0100
            Re: cleaning up first php page was Re: can't get  includes to load Cal Dershowitz <cal@example.invalid> - 2013-04-04 01:48 -0700
              Re: cleaning up first php page was Re: can't get  includes to load Cal Dershowitz <cal@example.invalid> - 2013-04-04 01:52 -0700
              Re: cleaning up first php page was Re: can't get  includes to load Jerry Stuckle <jstucklex@attglobal.net> - 2013-04-04 08:57 -0400
        Re: can't get  includes to load Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-27 09:08 +0100

csiph-web