Re-defining HTML: Helicopter-Traveling-Mansion-LIFE ( Journey HTML/CSS )

Went through hell and back last night,
Had the worst kind of moment,

I had the code for adding all the images of a folder, I found it on stack,
but I wanted to only add 1 picture, and I did not want to keep calling the same pic.

I googled how to add random images from a folder in php, and so many tutorials came up, some were advanced and complex scripts, and others were only ~4
lines of code.

I tried a few different methods but there was just something I was doing wrong when using any of them and I kept getting errors.

I finally went to stack and got help by asking my own Question.
I probably spent 2 hours, extremely frustrating.

However, it works now.

I also realized if I could do it with images, I could do it with text.

Using the code I found for the images, I modified it to find and read text files that I created in a new folder within my directory.
I styled the txt files so there is variation, it's kind of like using The Best Spinner in a way.

The only problem I'm having now is
- keeping the text where I want it, I'm pretty sure I know how but it's hard to test because
- I think i'm overloading Phpstorm lol, it's getting to the point where every time I refresh it gets stuck in loading again, and I have to reset the connection for it to work when I refresh/use the motiVATOR.
-- It's stuck atm which is why I decided to make an update quick.
Next:

Adding Videos
Adding Music
-- Pull in from youtube, and I'll try soundcloud. i haven't tried it yet but This shouldn't be hard,
Youtube already has embed code,
so i'd set the elseif (($motiv > 50) && ($motiv <200)){
include ("YTmotiv.php");

}


YT.motiv would simply be a div containing the embed code.

OR!

Maybe I'd just create more text files with the code that I would have for one video, this way I can add multiple videos.
... TBS methods lmao.

Glad I typed this out.. the next update should be when I finish it,
 
Last edited:
Alright, I'm gonna call it done.

Basically it offers 3 levels of motivation.
1) Text,
2) Text + Images
3) Motivational Video From YT.

I was having hella struggles with the 3rd part.
it was decided by phpstorm and the internet that my txt file containing my youtube embed code did not exist, and instead of pulling it from the text file, I added the embed code into the if statement.
SO if motivation was higher than 50, pulled the embed code.

It works, but I think it just eats up too much memory.
If I use it ~6 times it simply acts like an infinite loop and just doesn't load. I have to reset my connection in phpstorm.
This problem, I don't know the exact source, is one i've been struggling with.
I made a post on phpstorm's dev site and they helped me configure phpstorm so it was actually right, but i'm still having trouble.

Had I not run into that ambiguous infinite loop problem , I would've had it finished in like ~1 hr from the time of last post.

Ended up completely re-installing phpstorm and WAMP and such.

Anyway, what I did was sweet and I'm happy with it.
I'm gonna take 4 pics, post it on imgur and move on to something new.
Going to go back to phpexercises.com,
this way I'll have some structure long enough until I get bored again and am either inspiredagain to a new project or I'll search for one on google.
 
Quick update,

I've been turning these simple tutorials into something useful, and not boring.

I feel like I've done so much more but reflecting back on it, it doesn't really seem like it haha.


I think the first thing I created was turning a simple strrpos into a search function, I realized all it was doing was finding a "substring" aka a piece of text, and I decided i'd make it more interesting.

C
reated a Search bar, and basically you entered what you were looking for. There's alot of ways I could've made it better,
- say you're looking for "Molly," and you search by typing "molly" , it won't find it; would have just to set strtolower(); or something along those lines,
- looked into fuzzy search
- actually highlighted or brought you to the text,

but I didn't want to take it that far.


Took learning how to read/write/create files to a whole 'nother level
Turned it into an online
note pad, it's sweet.
Enter a name of the notepad
- the text you want into it
- submit it

Shows up in my directory where I sent it.

Needs database and a login so user sends their notepads to their account, not going that far.


I'm getting kind of sentimental and I keep posting pics of the ones I put effort into to imgur.


I've been beginning to add comments into what I'm doing, and it's not like I'm copying the tutorials comments ( which is why I never really did/saw a purpose when I was first, first beginning)

It's something I've wanted to do naturally and It's extremely useful when I was going back through to make sure everything checks out. and it shows how I'm understanding things.
Not only does it help keep track of what does what, but it tells what SHOULD be doing what.


I'm a fan of this site i'm on, mentioned it a few times but since I like it so much I'll post it again.
http://www.php-mysql-tutorial.com/wikis/

^ really just wanted to see if i could add links yet, (:
 
Last edited:
just straight wasting time right now,

i should probably just try going to sleep,
lol jk.

But I also realized that if I simply make ~$14 a day, every day, thats 5k a year.
How hard is that, lets be honest.


i'm going to go learn how to code some more...

or not too.
 
I went back to the NewBoston tutorials this morning, I was originally going to watch his vids on mysqli but I saw his videos on using string functions, since I just got done with my notepad I decided I'd see if there was anything more I could learn.
the actual purpose of strpos();
learned str_ireplace,
His next 4 vids were a series on creating a search and replace program...

I stopped the video at like .20 secs and created an application faster and easier to read his,

Then I skimmed through the series to see how he did it, and.. I win.

I think that's progress.
 
Today has been kind of a de-bugging day,

had run ins with countless problems, a few broken guides, and I'm still working out this issue with phpstorm...

Progress?
- File handling is locked in,
- A few new strings
- Seen how far I have yet to go,
- ^ Also realized I'm having an easier time reading scripts, new and old.

-- Right now i'm kind of fumbling.
I got done learning and using file handling and md5();
and I decided i'd put it to good use, and create a hash generator
md5 basically takes a $string = "this is a string"
md5($string);
and turns it into something undecipherable like this b37e16c620c055cf8207b999e3270e9b.


What's interesting is, $string will always hash to that.
There are a few variations that do this.
sha1,sha256, md5...
I've only used sha1 & md5 so far.

Anyway,
So I created a form , took the input and returned a hash value.
It's identical to all the hash generators you find online..
http://www.md5hashgenerator.com/index.php

Worked great, but I wanted to take it further.

I wanted it to be able to intake a txt file that was formatted like this:

pass1,
pass2,
pass3,

and return the hash values in an identical format.

And that worked great also!

So, I decided
I wanted to take it EVEN further.
This is where it fell apart, and where my problems with PHPstorm come in.

Form that intakes
1) Inputting a string to be hashed
2) input a text file that hashes all the text in the manner I had done earlier
-- I believe If I just wanted to hash EVERYTHING in the file, it would be easier, but I wanted it to be like a list of passwords that were stored in a text, then hashed for security.

I couldn't really get it to work.
Tried looking for guides, found one but it's kind of broken, took what I could from it but couldn't get anywhere far with it.
The biggest thing was phpstorm just kept getting stuck in this loading phase, and I couldn't debug.


Later.
 
Random haha but Also! I'm getting ~+5 followers on my soundcloud daily, just people who like my music randomly find me and add me.
I don't advertise or anything so it's kind of sweet.
 
ahh, working on a project

have been doing alot of randomness,
finally kind of staying on one topic with this project.

basically a tumblr page,
form - upload file, adds to db, working on creating pagination atm.

Got my first website sale, going to beast the fuqq out of it.

Also, worth trying to con ( read: push extra sales ) this guy into some more sales?

example,
$5 for a website,

but i told him, if he wants his email form to actually do anything (after he ordered lmao )

it would be an extra gig.. truthfully it's not worth it to make it work without the extra order.

If I don't make the email box functional it will just allow some1 to type in an email and then basically be sent nowhere...

I understand it's my first but c'mon.. gotta be pushing for sales right?
or nah?

Worst he'll prob say is no, and then i build the rest of his site and he takes it someone else. W/e. Less time i'm working for $4 and more time i'm learning php.

If he does i'll see what else I can do.
Small things at a time, keep allowing him to invest little by little until he's almost obligated to go next level.
I guess that's it.

Tired so that's all I'm putting into this for tonight. gonna create the foundation that cats site then prob sleep.
 
Last edited:
wow it's only been a day since my last update and I feel like i've been neglecting my updates..

Problems:
Using database, just in general, using it through php is confusing still.
- That's my biggest set back right now, switching from mysqli to PDO, just started it ~15 mins ago.

I need to go to sleep but I just feel like i'm wasting my time if I do, and tbh I don't even want to go to sleep.
I got into my bed this morn at 4:30am and didn't feel like sleeping, got back up after like 10 mins of just relaxing for a bit and stayed up the rest of the day.
........
It's been hard to stick to one project because of the database issue, going to back up and get this PDO database down and go from there.

Priority:
PDO Database
 
Okay, so
finally conquered all of my nightmares.
No issues with PHPStorm, configured 100%,
No issues with connecting to a database, worked all that out with WAMP, and switched to PDO from mysqli and have adding info to database down, now just need to learn how to get it out.


I spent an absurd amount of times on those two areas. SO relieved it's finally over.

I've been talking with these two programmers who have been in for a long time, they are a godsend.

I've been practicing with adding info into a database, form validation (checking if age is actually a number, etc)
and can do it very well.


Moving On:
-RTFM
: The two mentioned programmers have inspired me to actually RTFM, and not just do tutorials, so i'm demoting pomodros to it. 1 pomodro RTFM, another to practice what i've learned, and repeat.

I'm going to keep track of what I learned in each pomodro in a notepad and append to it with each session.

- Then, pulling data out of a database and using it.
- Find what next to do, probably something from Reading the Fuqqing Manual (RTFM)

also, just killed this spider that I found on the wall in my room lastnight and dropped behind my desk when I spotted it. Small victories.
 
Took up the Laravel Framework,
definitely worth the investment of time to set it up and get familiar with it so far.
Going to make my life soo much easier.

Took a bit of effort to find a solid and up to date tutorial for beginning with laravel, after the frustration with laracasts videos and the quickstart guide, I made my way to youtube and found a dedicated section of the one and only PHPacademy strictly for laravel.
I'm familiar enough with Laravel by now so everything is just a matter of following the steps,

Going to hold off on my personal site until I am comf with Laravel, then I'm going to convert the site into Laravel.
Goal for now is by the end of next week I'll have my site up and hosted.
 
As soon as I finish my personal site, I'm going to take to YT.

I have so many ideas I can't wait to get started. I'll probably begin a new journey once I get everything up and running dedicated to YT.
YT will definitely be my source for views/traffic/reputability and more
 
Alright, set myself straight on alot of things.


I feel I've figured out what I've been trying to do all this time.

Let's see, it's been a long time since I've made an update.
I've considered ending this thread, as my initial learning journey is essentially "over".

I'm learning more programs and frameworks, better practices, cleaner clode.

I don't know if it's worth continuing, I don't really know what I'd update on.

I think the biggest thing, I love how I Can look back and see when I started, how long I've been doing this.

It's crazy, it was the middle of winter when I began, and now heading into July. I still like I've just begun, there's so much to learn and so much more to understand. I am still finding myself more confused than ever, but other things now make perfect sense.

So far, I've built 3 "complete" websites.

I took some time to write out an update while getting Digital Ocean, a VPS. I had signed up for BlueHost yesterday not realizing I can't hook up Laravel sites too it, easily atleast. I'm just now getting into Digital Ocean so I have yet to see what this will be like.

So I've spent all of today trying to get my sites online. Hopefully this will be the fix.


I think im going to leave it here, and i;m going to come back later and break down more detailed what i've done during the gap
 
Good work man.

Keep it up as you already have.

I'll probably be asking you the questions next.

 
New Journey Time?

I'm currently building the beginning of what is going to be a network of niche related sites, all focused around amazon affiliating.
Progress is great, my support is phenomenal and I wouldn't be anywhere near where I am without it. My journey of learning how to be a developer is over, and now it's time I start making my dreams a reality.

There's so much more to do and even so much more to learn.

I'm starting to run into the problem of, "Can I REALLY do it all?"

- Photoshop
- After Effects
- Server Management
- PHP
- Jquery
- HTML/CSS
- Article Writing
- Link Building
- Social SEO
- Development & Design
 
Back
Top