![]() |
Your old code?
Well, I was feeling a bit bored and nostalgic, so I went through all my threads at various forums, and found all my design and PHP work I did back then. Here is the PHP work I found, thought you guys might enjoy seeing how horrible I was. This was from over 2 years ago (August/September '05). I'm rather sad knowing I could have kept coding PHP, and be pretty good by now.
This script never did work, by the way. Now I see why. :) (I'm just linking to my site since they are rather long and have HTML code mixed in for forms) http://www.psdtocode.com/old.phps http://www.psdtocode.com/old2.phps |
Lol ouch, i do not have the code but when i was learning i use to have switches and paste the entire html template into each switch case like:
PHP Code:
|
Lol. I remember I always used to use
<?=$myVariable; ?> when I was coding years ago. I must dig out some of my old code though! I'm sure it'll tickle you all. |
My old code would be something like this:
PHP Code:
PHP Code:
|
PHP Code:
|
Yeah, I used to mix all my PHP with my HTML. Lovely stuff!
|
Quote:
|
He was saying that is how he started coding, with the basic Hello World script.
Also, on the Chatwebdev IRC channel, Dread (a great PHP coder), and Shaun were also digging out their old code, too. See what I started? :) |
Here is a crappy under-featured forum I made with about two months of PHP experience.
http://www.justanotherportfolio.com/forum.zip |
Quote:
When I first got into PHP, a friend of mine told me how he made all of his dynamic sites using only one file (index.php). I couldn't believe my eyes! I was amazed and used it on a few sites until I saw the downfall. Although, my index.php used if statements as if they were going out of style. Actually, I didn't even know what a switch statement was either. The worse part of it all was that I didn't put a common header and footer in my index.php. Each 'page' would contain EVERYTHING including the doctype. Needless to say, updating my site sucked ass. Not too long later, someone told me about seperating my header and footer into their own entity and simply including them on the top and bottom of my script. I nearly soiled mysql when I learned this nifty trick. :) |
I'd be toooo embarrassed to post my code, but lets say i didnt bother seperating presentation from logic
|
Quote:
|
ok, I'll see what i can find.:-$
|
I'll get the tissues ready for when laughter results in tears!
|
Hehe. I found some of my old code. This is a snippet from my Javascript hangman game which is still quite addictive! The RAR file is dated the 12th of Match, 2006, so you can see how far I've come. Without further ado:
(I would edit the DB details, but it's years old anyway.) php Code:
Hopefully I've laid a foundation :-) Don't be shy anybody! |
That's pretty cool, i lost all my old code, not sure where i went :(
The oldest code i have is about a year old which as my original social networking site, but that's a secret ;) |
php Code:
|
I cant actually find the code, i think if was lost when my last HD packed in.
But the script was someting i wrote for the CoD1/2 game server hosting company i used to run. It was basically the order form, it had about 6 different forms on it and it was ALL in one php file with a switch at the top, with HTML/CSS and PHP mixed all over the shop. It was a right mess and a nightmare to maintain, as you can imagine. If i do find it i will post it. |
Not too bad, Haris. At least you're sectioning off different code. I think mine looks a lot worse than yours. Can definitely see how far we've come when you look over your old code!
|
Quote:
|
| All times are GMT. The time now is 12:01 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0