Putting Arrays To Work – Shopping Cart (php)

PART ONE:

Hello! Today, I want to use arrays to improve our shopping cart and find out more about them as we go a long! This post is going to be split into two: Part 1 and 2. You want read them in parts or in full. There are basically two types of arrays in PHP: numerically indexed arrays – where indices start at zero by default and non-numerically indexed arrays – where the keys can be set to whatever you deem meaningful. Let us start with numerically indexed arrays:

Storing Data Using Files in PHP – Shopping Cart

Hi! After adding some functionality to our shopping cart, I am going to do something different today: storage. Assuming we want to collect all the orders from customers and store them in a file somewhere for later use, we can easily create a file and write and read to and from it. I have altered the original look of our simple cart by adding a new input area for shipping address: Let us look at it now.

snapshot1

Shopping Cart In PHP – Learn PHP Programming

A shopping cart in php will be a good example for learning. When I started using PHP, I began like most other people; the basics. I then promised to show you how to create a simple shopping cart. I have to warn you beforehand, this is not really a complex version. I figured it is smart to start with a simpler version then add more functionality to it as we proceed. So, let us get to it. I am going to do this in reverse, that is, show you snapshots of the cart then dissect the code. So, here we go!

How To Use Github Public Repository

Let us learn how to use github public repository.This happens to be my last post on this Programming With Twitter API journey. I do not feel sad because this is actually just the beginning! I will not stop here, I will keep making something better out of it. This has been a great adventure, very informing and fun. So, without much a do, I want to show you(if you have not done this before), how to make our code publicly accessible to interested people who want to read it and even use it for their own learning or applications. I am going straight to github – by the way this is not the only one, look for bitbucket or something that makes you happy.

Hone Your Powers – Programming 101

In this challenge, we are required to learn some basic python or ruby constructs that could be useful while converting data returned by Twitter API calls into useful information that we can use in applications. Of course we don’t have to use either of those languages. There are other great languages like Javascript and PHP that you could give a shot! Either way, let us start this ball rolling: I am going with Python!

[python]

#make a simple dictionary/hash, add some items to it
#experiment on retrieving them by key and by value
#dictionaries are mutable

Channel Your Vision – Call Me Maybe API

Hi! I am starting to dive deeper into the current challenge – Programming Twitter API. Just a quick basic review of the API requirements before we make any calls! Oh wait, why not take a look at what an API call looks like?

twitterapicall

If you type the URL shown in that snapshot into your browser of choice, you will see something like this displayed:

returnedjsonfromtwitter

Ugh! How messy is that? I really hope you will be able to look through that mess and identify some information that could help you build something useful!

Programming With Twitter API – P2PU Challenge 2

Hello everyone! I am back again with another challenge from Mozilla P2PU. I just couldn’t wait because completing the first one made me so dang excited! This post is an introductory one, meaning I will not be writing any code today. I will consider this a preparation for the real thing.

While I was getting things ready for the journey ahead, I ran around the web like a bot trying to gather all the necessary documentation and I spent a good amount of time on Twitter’s Developers page scheming through their updated APIs. Below are just a few I had to grab!

Web Hosting & Going Live – Level #5

This challenge requires whoever is taking it to get a website up and running. So, what is better than testing the waters with free web hosting and even a domain before choosing to spend some cold hard cash on a service? Sounds good to me especially since I am not expecting killer traffic any time soon! I am going to head over to 000 Webhost Inc, create an account and pick up a free domain! Excited!
freewebhostingsnap

After logging in, I just go ahead and start the next step as shown and described below:

webhostingacc