FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » can't get includes to load
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: can't get includes to load [message #180941 is a reply to message #180939] Thu, 28 March 2013 07:17 Go to previous messageGo to previous message
Cal Dershowitz is currently offline  Cal Dershowitz
Messages: 36
Registered: February 2013
Karma:
Member
On 03/27/2013 03:00 AM, J.O. Aho wrote:

> first of all, I would remove all the files ending with ~
>
> find /home/sites/migrate -name "*~" -exec rm -f {} \;
>
> just copy paste that one, if you feel insure, then make a backup of the
> directory:
>
> cd /home/sites/ && tar -cf ~/migrate.tar migrate && cd && gzip migrate.tar
>
> (I know, you can simplify that)
>
> Keep in mind, both are "one liners" and just copy past from this post.

Alright, good things, JO, the commands seemed to work just fine. What's
more, you wrote these commands at a level where I have the vaguest
notion of how they work, which is also important. I keep logs of such
useful techniques in an ad hoc way.
> I would clean up things a bit, have your handy scripts in a directory
> outside and give it a better name than php, so you remember what you
> have there.
>
> When you have structured up things a bit, so you find you stuff easily,
> just make a git repository for it all
>
> cd /home/sites && git init && git commit -m "initial commit" -a
>
> now you will have everything in the git repository and you are ready to
> work. You have your tarball if you by mistake did delete a file you
> shouldn't have.

$ cd /home/sites && git init && git commit -m "initial commit" -a
Initialized empty Git repository in /home/sites/.git/
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .jonathan.txt.swp
# j2.txt
# jonathan.txt
# migrate/
# www.nmlutherhaven.com/
# www.sttimschurch.net/
nothing added to commit but untracked files present (use "git add" to track)

Now did it take a snapshot all the way up the directory tree?

The directories there with url-sounding names were the results of wget
commands. I don't need them anymore. How would I go about deleting
them and them bringing them back to life with git just for practice?
> I would ditch the php2, no use of it, all work you do should origin from
> what you have live. Don't forget to create a new branch when you start
> to work with something, when you put something live, you merge that
> branch to master branch. So master should always be what you have in
> live, other branches are for what you are working on or testing.
>

I understand somewhat and simply need to practice. Thanks for your
very-useful comments.
--
Cal
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: mysql dynamic binding and pass-by-ref deprecated
Next Topic: Java conferences in India...
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 20:35:31 GMT 2024

Total time taken to generate the page: 0.04930 seconds