PHP really FREAKS ME OUT MAN!

5 replies
  • OFF TOPIC
  • |
Man, trying to learn PHP is dangerous

If it wasn't for understanding how to 'backup' files, and replacing files i screwed up with the old version, I'd be pulling my hair out of my head.

It's like a whole different language, alien language

I understand the concept of, get this, do this with it, or do this, then do this

Like, if, else, then type of stuff.

But like I said, I only understand the concept I have no idea how to actually write this insane type of instruction to a computer

Gosh, it's like a REALLY big deal if you make a stupid mistake when trying to mess with PHP to get extra functionality. Hell adding a simple ; or a ' in the wrong place and the whole site doesn't work, haha.

I just wanted to exclude a category from a menu on one of my sites, and found a little ('exclude=catid') crap code, and the supposed place to put it in the navigation.php file.

I found the piece of code where it says something like, list_categories and then I added the exclude code.

LOL LOL LOL....I couldn't even work the admin side of the website after adding that one little thing, website it self wouldn't load, got a syntax error on both ends (back and front). Which means I can't even remove what I added to the code...wicked bummer...EXCEPT, I made sure I had a copy of the Navigation.php file on my desktop before the edit...So THANK GOD for ftp because I just uploaded the old file and overwrote the edited version...back to new!

So, let this be a lesson to all you folks trying to mess with PHP! Get yourself an ftp client like FileZilla, and download the files you want to edit right to your desktop before you try anything fancy! When it all fails and your website doesn't work anymore...Thank god for ftp and backups

So...Anyone know where I can go to learn some PHP? I saw there's a clickbank product about it, but donno if it will be any good.

Thanks!

Trending Topics