Mr Lady, if you're nasty.

    Follow Me on Pinterest            

She's a Very Dull Boy
» Conference Programming Manager at BlogHer
» Editor/Dungeon-Master at Story Bleed
» Board/Webmaster at Violence Unsilenced
» Panelist at Momversation
» Contributor at Babble Voices
Come talk to me at BlogHer '12   I'm Going to BlogHer Food'12
She is a finder of lost children.
She Babbles


She Steals Souls for Fun

She's @heymrlady in Instagram

She'd Like to Thank the Acadamy
 

She's Not Proud. Or Tired.
She Loses Her Keys All The Time
« Now, I Just Have To Get Him To Stop Picking His Nose, And We'll Be All Set | Main | Gratus »
Friday
Feb262010

You Down With FTP? (Yeah, You Know Me)

File. Transfer. Protocol. The three scariest words in the Blogging Language. FTP is the Freddy Krugar of your blogging dream. Speaking of which, did you see that there is a new Elm Street movie coming out? Sorry...you can tease me with all the Michael Bay you want; there ain't no way in hell I'm doing that shit to my brain.

Anyway, FTP. If you use a hosted blog platform like Blogger or Squarespace, you will never have to worry about this science-fiction double-feature. Go read something interesting {may I recommend some Polite Fiction?} and have a happy Friday. If you're a slave to the Wordpress, or other fun platforms that make you upload shit to your server just to function, please join class after the jump to learn how to survive the claw-handed, backwards clothes wearing, wiggedy-wiggedy-wiggedy wack nightmare that is FTP.....

There are two basic elements that makes your blog go zoom zoom, HTML and PHP. HTML is what makes your blog look the way it looks. Your stylesheet, those fonts and colors and shit, that's HTML. HTML is the walk-in closet of your blog. PHP is the nerve system. It's how your blog's heart beats without you telling it to. It's how you don't have to think 'kick', it just kicks.

Your history lesson for the day: Some dude in Greenland created the first PHP code for his personal home page (see, Personal Home Page? Clever boy) in 1994. He created the second one, too, and that one could talk to databases. Hence, the dynamic webpage was born. And then a couple of Israeli dudes tweeked Rasmus' code a bit, and you have PHP: Hypertext Preprocessor today.

That's the really short story.

Basically, PHP takes input from a file or stream containing text and/or PHP instructions and outputs another stream of data, which is usually HTML. And you blog goes. That's all you really need to know....it makes your blog go, until you fuck it up royally. And you WILL fuck it up royally, given the chance.

You don't really need to know how it works, because God gave us FTP clients and programmers give us handy little zipped filed containing Comment Luv plugins and complete blogging templates and twitter feeders that are all properly written. All you have to do is find the program you want to run on your blog, unzip it, and use your FTP client to upload it to your server. Voila! It works. Wordpress now even lets you search for the plugin you want, click install, and wait 5 seconds. No unzipping or uploading required.

This could take a very porny turn any second now; yes, I am aware.

The only thing you really need to know is how to login to your FTP client and access your server.

Your server is where everything your blog needs to run and be read is housed. Every post, every font color, every little last thing sits on a server. That's what you pay for....server space. It's the Public Storage of the Internet, complete with the pickled heads of cross-dressing psych patients.

But I'm digressing. We'll get to servers and storage space and decapitation of your blog another day.

If you self host, you have an FTP login. There are several different ways to access your FTP. When I was on PC, I used FileZilla. Now that I'm on Mac, I use Classic FTP. These let you find something you want to use in your blog...say, some plugin, on your computer and with one slide of a mouse, upload them to your blog's server. The file you've chosen then just runs with the rest of your blog, because they're written to, and you have some new template or function.

Or you know, you could use it to share song files between friends, without all that hairy email uploading wait time.


If I gave Vodkapundit the keys to my FTP*, he could log in, open that music folder, click Camper Van Beethoven, and slide it right into his own music folder. THAT'S how FTP works.

I tell you all of this to tell you how to use FTP when you see something like THIS:


If you see that pop up when you open your blog, you're fucked. Or, better put you've fucked something up. These Syntax and Parsing Errors seem to be as contagious as a yawn or herpes...one person gets them, everyone seems to get them.


If @Jim can break his blog, you can break your blog. And you will. Resistance is futile. What isn't futile is learning how to fix it.

What I'd done to garner the affections of the White Screen of Doom is try to insert some stupid, funny only to me, message into my blog for when your comment gets held in moderation. I've gotten that screen before, trying to add plugins or trying to customize my comment box. What I forget sometimes it that blogs are like scarves. They're knit together. Just because I find one line in my php that handles comment moderation, that doesn't mean there aren't 10 other lines of code that work with it, and if I only edit one of them, the whole thing unravels. I unraveled my blog.

And once you get the white screen of death, you can't do shit. You can't get into your dashboard, you can't see your blog, nothing. You. Are. Screwed. Even if you know *exactly* where you made your mistake, you can't undo it. You have to go into your server, by means of your FTP, and fix it there.

This is scarier than all the Freddy Kreugars combined. But you can do it.

When you see that SYNTAX ERROR glaring at you where your dearly beloved blog should be, the natural reaction is to freak the fuck out. Once you uncurl your body from the fetal position it reverts to underneath your desk, the first thing you need to do it READ.

That error message tells you everything you need to know to undo your wrongs. You just have to follow along with it's instructions. Mine told me that my problem was in:


So now, all you have to do is re-read all that stuff up there that I explained and you skimmed over, then log in to your FTP and on click each of those folders in the order it tells you. Once you get to Functions, it's going to pop out that Functions code. You then count 20 lines down and there you are, at what you need to fix.


You have to use the left-pointing arrow to download that popped-out sheet to your computer, then you change your mistake to what it should be, save it, click that right arrow and upload it back to your functions folder.

It sounds complicated, but it's not. I mean, I did it, and I'm kind of an idiot. Class dismissed. And what the hell should we cover next Friday?

*Stephen has been trying for years to get the keys to my, um, errr...FTP. Fat chance, buster.

Reader Comments (28)

So my pending move to WP should frighten me even more, huh? Thanks loads.

February 26, 2010 | Unregistered Commenterhome and uncool

I suggest Cyberduck for your Mac FTP pleasure. I have used it for a few years and think its great. Free and has great tools like choosing an editor, like TextWrangler(also free and awesome), to edit files directly on the servers. You will get a nag screen asking for a donation at every new version, but you can also say No and check a box to not remind you again for that version.

Nice post, I will refer to it every time I get asked about this stuff again!

February 26, 2010 | Unregistered CommenterHockeymandad

Good intro tutorial! Beware though, the line that you see on your error & the line that you see in your text/notepad/code application might not be the same. :) Which gets, well, fucking annoying. And tricky. Not that it's ever happened to me...

February 26, 2010 | Unregistered CommenterMommyGeekology

So instead of me getting Classic FTP I should just email you my login shit. Cuz that would be easier (and likely safer) for all of us, no?

I've gotta tell ya Shan. My eyes? They GLAZED THE FUCK OVER.

February 26, 2010 | Unregistered CommenterTanis Miller, RNM

My eyes. My EEEEYEEES. I can't see... what I'm saying...

But I totally adore you for having a freaking clue what is happening behind door #2.

February 26, 2010 | Unregistered CommenterTitanium

Uh. Yeah.

February 26, 2010 | Unregistered CommenterKori

This is why I try to have doubles of everything. That way, if I see that white screen of death, I can quickly upload the php file from right before I messed it all up.

February 26, 2010 | Unregistered CommenterC @ Kid Things

Yeah...I think you just talked me out of switching to Word Press..at least anytime soon. I'm sure I could figure it out, but there's the headache that goes along with it...I'm not a fan of pain.

February 26, 2010 | Unregistered CommenterJaina
February 26, 2010 | Unregistered CommenterMr Lady

I just made the jump to wp and I am still trying to figure it out. I need help.

Can you insert more than one picture at a time?

February 26, 2010 | Unregistered CommenterDuneChick

Everyone should be reading Mr. Lady's tech lessons. RT @mrlady: Syntax Error, Bitch: http://bit.ly/dcix9s

February 26, 2010 | Unregistered CommenterMaria

Nothing mystical. Make a backup copy of any file you edit. You fuck it up... Restore the old version. Problem solved. Better yet, have a 'test' version of your blog and change it there first. Better safe than sorry! :-)

February 26, 2010 | Unregistered CommenterSean

This is why I have smart friends.
Like you.
and Daisy
and Deanna

because.. um.. HUH?

LOL ;-)

February 26, 2010 | Unregistered CommenterRachel

Woah...ok so I totally thought about moving to wordpress, but I think I'll stay where I'm at lol!

February 26, 2010 | Unregistered CommenterBlondie

Now I kinda wanna quit blogging. Shit.

February 26, 2010 | Unregistered CommenterLee of MWOB

I understand this. It just scares me.

February 26, 2010 | Unregistered CommenterJennifer A

I just want to poke my eyes out. Think I'll go lie down now.

February 26, 2010 | Unregistered CommenterCatch the Kids

I had no idea FTP was scary.

Guess it's just another side effect of living in a cave and surviving on toenails and burbon.

February 26, 2010 | Unregistered Commenterjennydecki

yeah before I decided I wanted to be a nurse when I grew up I briefly thought maybe I wanted to be a web programmer. Until I made it through my first 3 quarters and had no freaking idea how to do anything and still wanted nothing more than to throw my computer out the window. It's surprising to me that I'm such a technological idiot and yet people come to me to help them with their computer.

February 27, 2010 | Unregistered Commenterbattynurse

I use Cyberduck too -- for work. I would never do this poo unless I got paid. Thus the marginally bad, routinely ignored blogspot look-at-me-gramma cradd I got going on the homefront.

February 27, 2010 | Unregistered Commenterrebecca

All the technical stuff you wrote about here, yeah it looks a lot like what I think the Charlie Brown teacher's words would look like. I know nothing technical about my self hosted blog. When it breaks I put a plea out on Twitter and usually Mommy Geekology fixes it for me. *sigh* maybe I should learn this stuff one day.

Hope you're enjoying Houston.

February 27, 2010 | Unregistered CommenterAmazingGreis

This? Is why making the move scares the bejeebus out of me. Can we cover uploading new templates and/or making changes to existing templates? (column width etc.)

Lesson idea for next Friday: How do you change the format of your permalinks in Wordpress from string 'o numbers to something meaningful like date or post title without breaking all your links?

Would greatly appreciate a lesson. And if you decide to go with this topic, please talk slowly and use small words.

And thanks for schoolin' us. :-)

February 28, 2010 | Unregistered CommenterCountry-Fried Mama

And this is why I keep HeMan Hubby the Systems Engineer/my personal help desk around... well that and because he irons...

March 1, 2010 | Unregistered Commenter~dawn

Yes! Gotta love that personal help desk!

March 1, 2010 | Unregistered CommenterMrs.Mayhem

Um. Thank you for suggesting the ClassicFTP. I switched to a Mac four months ago and have been using other people's computers (and their Filezilla's) to access all our different FTP. (Scary as all get out)

Just downloaded it and I will give it a whirl.

When I was using my PC, I would use Homesite for all my programming since I could toggle back and forth. What do you use for your coding? Just .Txt?

Sorry to geek out on you like this.

Sarah

March 1, 2010 | Unregistered CommenterSarah B.

sftp (SecureFTP) is a better protocol, if your provider supports it. It natively support bulk send/receive and is, well, more secure.

That being said FileZilla and the like all support SFTP.

But you should man up and do it using a COMMAND PROMPT. ;-)

sftp user@hostname
put /blog/*

;-)

March 1, 2010 | Unregistered CommenterShredderFeeder

Dood, I love you, but man, I don't understand a word of this post. It all went Charlie Brown's teacher on me.

March 1, 2010 | Unregistered CommenterMajor Bedhead

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>