The LAMP Stack A Short Explination Part IV P is for PHPAnd lastly PHP PHP is a highlevel interpreted language The acronym stands for hypertext preprocessor So it should really by HPP but its not because originally it stood for personal home page I learned that one just about a year ago Anyhow it is interpreted meaning that you do not need to compile the program before your visitors use it You can write programs in compiled languages for the web but I think for the most part compiled language programs are for your computer or run on a server as a standalone program I have seen a few websites that were written in C and then compiled and put in the web directorys cgibin directory The cgibin directory is a special directory that is setup some configurations differ to run serverside scriptsPHP is where you would write your programs that actually do your work for your website visitors You can have a plain ol website that shows some stuff as an html page That page would just be a file sitting on the server that sends out its entire contents But if you wanted people to log into the site you would need some programming to process information that visitors would put into forms on your website check a database to see if they are one of your users and then send them to a page a visitor could normally not get to You may just simply want to say
Read MoreAs mentioned before this should be sounded out MySQL A lot of people I have run across call it My Sequel because its a continuing movie about themselves This is not correct I looked it up a while ago and will find the link to explain Here it is statesThe official way to pronounce MySQL is My Ess Que Ell not my sequel but we do not mind if you pronounce it as my sequel or in some other localized waySo you could locally call it SpaghettiDB if really wanted to There is some background about calling it sequel though that I found out when writing this even Back in the 70s the original SQL had a different acronym of SEQUEL which I would pronounce sequel instead of spelling it outDid you get that out of the SEQUEL server ToddNo Freddy I DIDNapostropheTWell you dont have to be a jerk about itI learned that SEQUEL was not used because it was a trademark of Hawker Siddeley an aircraft company of the time So also from now on if someone says My sequel I will say You hold your data in an old airliner from the 70s OddOne more added note the My part is for the cofounders daughter whos named My According to what I think is her Facebook page she enjoys listening to Michael Jackson Not unlike the rest of us JamonaMySQL is a program that runs a server kind of like Apache in a matter of sorts You cannot
Read MoreA is for Apache thats good enough for meApache is a software program that is called a web server It is the program that gives out or serves data from inside the computer out to the world Transversely it also allows certain data into the computer too There are many different web servers to choose from but Apache is the most used web server with Windows servers being a close second Surprisingly at the time of writing this according to this Windows servers actually surpassed Apache for a very short time but Apache has seemed to jump back up and all is right in the world again or is itThere are many web servers out there like nginx pronounced engine X which boasts more connections with less resources Windows IIS Internet Information Services oooooo and a ton more Web servers are basically programs that run and listen to a port on the computer Ports simply put are doors that let stuff in and out of your computer The internet mostly works on port 80 Port 443 comes up a quick second with your secure website transmissions Of course all of these can be configured to be something completely different A lot and I mean a ton of programs out there will have their own kind of web service that will open a port and be available or listen for outside computers trying to make connections to it For example I have some security cameras on a computer from GeoVision Their program
Read MoreL is for Linux thats good enough for meLinux is the name of an operating system that started in 1991 by a guy named Linus Torvalds Hes an atheist I dont know why I remember that but that sticks out from all the other things I read about ol Linus a long time ago I personally dont feel that this entire universe and everything in it including you reading this blog post is some sort of random p ointless cosmic accident but I digress Another day we can discuss it perhaps There is a really good article that bulletpoints how Linux came to be here You can pretty much tell from the name that it came about via Unix which was written by a couple guys at ATT and released in 1970 Personally I have never logged into anything with Unix but I would fathom a guess that the look and feel of it would be pretty spot on to LinuxIt is important to mention that Linux in itself is a kernel It makes me think of popcorn but has nothing to do with corn at all It bridges the gap between your computer programs and applications and the machine code that controls the hardware of a computer in a matter of a few steps discussed in the P is for PHP section thats good enough for me Linux is the same kind of animal as Windows or Mac is It has a smaller marketshare than those two but is available
Read Morewhich will probably run long FYI A friend at work asked me recently if I could write a blog post with an explanation of the LAMP stack in computer programming So I doodled a drawing of three of the four mascots because the first is a feather and didnt fit the toughguy cartoon and away we goI originally subtitled this blog post A Short Explanation but as Im writing it I see that the first section Linux is getting quite long I am going to surmise here and split it up into different page So I guess in a matter of speaking if youre just mildly curious you can read the summation below If not you can use the links here or at the bottom to continue into further explanationL is for Linux thats good enough for meLinux briefly put is the operating system that the computer starts up or boots with It is comparable to Windows or Mac on other normal computers Linux is more of a hands on operating system that for some programs are not a simple clickandgo which probably impedes its popularity in the main stream In short it is what is between the computer programs that you interact with and the actual hardware pieces inside that metal box like the hard drive memory and CPU central processing unit Click here to get way more in depthA is for Apache that too is good enough for meApache is a software program that is called a web server
Read MoreOnce upon a time in a cubicle not all that far away I needed to connect my work computer running Windows 7 to a linux box to move some files around The files were for a unbelievably terrible product known as Magento I have no problem saying that Magento is garbage now that Ive worked with it for the past two years I can prove it with evidence But that is another story that I will be blogging about when Magento 2 comes out Anyhow Magento is a 30000 file monster It also comes with a 500 table database Were working at an IBM shop so we wanted to see if that was the reason Magento sucked its wasnt IBM so we moved it to a linux server thats on an available IP address I was super excited to find samba and that it was already installed and ready to goFor those of you who dont know samba is a server that can run on linux that can allow you to connect to the server and access drives and other peripherals upon said linux computer With a quick and simple configuration I was up and runningSo then later at home I ran into this issue with my external hard drive I have a 1TB hard drive that Ive been shucking information onto for the past 5 years or so Its great But its USB so Ive always just plugged it into my laptop when I needed it I enjoy the fact
Read Morethis is what I thought of in my meeting when I heard someone talking about Microsoft windows 10 and the new browser thats coming shipped with it Spartan We were talking about how it will not follow standards now that the rest of the browsers are all somewhat similar Well see
Read MoreEver have a bunch of images in various image directories around your webserver whilst looking for one of them I sure have But going through webservers isnt the funnest way to spend your Saturday night Looking through your own computer is easy because windows and mac both have applications that will show thumbnails of all of the images Webservers are sometimes not so friendly especially if they are remote servers How can I view images in a folder Funny you should ask because Ima bout to tell youI wrote this script years ago and adjusted it along the way It is very simple PHP so you could use it as a quick tutorial into the world of PHP if you want All you need to do is find a directory of images on your server that is accessible via the web Make a new file in your directory that contains your images I normally have named it dirphp You can also name it indexphp so that if you go directly to that folder name in a web browser the script will be run automaticallyphpi0dir handle opendirdirwhilefile readdirhandle iffile file is getimagesizefile center a href targetblank img src php ifis0200 width200php border0 Br tdphp ifi4i0 trphp else i This code starts a counter with i you will use that to make new rows as you display images Then the current directory in programming can be accessed with Use opendir to open up the handle or the pointer that scans through the directory
Read MoreThis idea is not a new idea but not one that is out there as much as it should be Its a brilliant and cheap idea for data recovery As most smart things in my life it started as something quite dumb The lack of planning Jake Guzman always told me to follow the 5 ps Proper Planning Prevents Poor Performance True it is About a year ago I first brought to life my linux server from my old 200 windows box that barely ran My main idea was to have a server to store media files on a local network It has spawned into a web server automation home security encryption photo manipulation object and face detection and a great platform for learning all kinds of new languages like PERL PHP C C etc etc All for freeI started building a database driven site called HomeKeeper this name has nothing to do with and no affiliation with the patented product line of school products whilst I got the idea for the name This is a hub that helps with the kids schedules chores home finances power consumption security and automation all in one It is still in development and probably always will be Anyhow I had been putting in receipts of most of my purchases so I can look back at the past 3 months and see where our money went and why I have none leftAnd then the frickin hard drive crashedLuckily the fine people at Western Digital added
Read More