What are php Functions? Why do we have to use it? How do we use it?
Functions are a very necessary component of php as a matter of fact not just php every programming language. They are amazing, time saving, efficient, fast and gorgeous (heh a bit cheesy? maybe.) Using functions within your code also tends to impress others if you are using the correct syntax for the function and write clean code.
I’ve made a diagram of how a function works so here it is, click on the image to enlarge it.

Continue reading ‘Php Functions - The Basics.’
This is a beginners level article for those who have recently started web development. If you are already pretty good at including pages to another then this article isn’t for you you can skip it :).
What we are about to learn here can also be done in HTML frames, but Frames generally a not-so-good reputation in the web development world. Not that frame is bad, it just isn’t as efficient. Frames basically connect two pages together, put them together and then print them out to the user. Also the code for frame is longer, and complicated as compare to what I am going to cover here. <hi>
The reason to why I wrote this article is because I have been questioned a lot lately regarding how to reduce the stress of writing all those html codes in web pages. Therefore a great way of doing is using a simple php code. PHP (Hypertext Preprocessor) is a scripting language that gives programmers the ability to write dynamic pages as well as dynamic content for a website. Ofcourse to use PHP code your host/server must have php installed (Not a big problem now adays, almost a lot of host comes with php installed).
Lets say you have a Header.html that covers the header content of the web page, such as banner, top navigation and perhaps ads. And you have Footer.html that is basically your navigation menus and footer notes. The best method to use is the simple php code. You do not need the knowledge of PHP to do the following, I’ll explain how the code works but it is not required, as long as you use it properly.
-
-
<?php
-
include ("Header.html");
-
?>
-
Your Page content here.
-
-
<?php
-
include ("Footer.html");
-
?>
Then if you view your page, it will automatically show the header and footer files. If you want this work you must save your pages as .php file not .html.
What the code above does is it uses a php function called include which basically includes the content of another file within the current file. It takes one parameter and that is a string of the file’s path. If the header file was inside a folder it would be something like this: incldude (”FolderName/Header.html”); and remember to put the brackets as well as the semicolon. And end the php script tag with ?> so the program can understand your code.
No one likes annoying pop ups, annoying spyware and annoying worms that affect our computers and slow down our web browsing speed. How can we be sure of what websites to trust and what to not trust? This is a difficult question to ask if your pretty new to computers but others might find it a bit understanding.
I’ll cover some of the web browsers. Internet Explorer is not the only program you can use to visit websites. You have to understand, Internet Explorer is a product of Microsoft and Microsoft is one of the giant companies that are being targeted by hackers every day due to their non-open-source policies. Since Internet explorer is being exploited so much and hack attempts occur to Internet Explorer (IE), it is perhaps that most fragile internet browser out there. And yet, pretty much everyone uses this; It is
acceptable and safe if you are under an anti virus application such as Norton but lets say you do not have any anti virus, you will not last long.
The safest way to surf the way, perhaps is by having a firewall or some sort of anti virus running at all times. The reason a firewall is necessary (not the xp built in firewall, what piece of s***) because a firewall prevents all incoming ports to your Computer. Ports are like doors to your computer, the more you have open the easier for people to invade you, this is why routers are wonderful. Routers (gadgets that enable to use the same internet for more then one computer under a network) will also block all ports, this is very nice and if your routers enable you to see your stats, you would see the attack attempts at your router. An anti virus works similarly, the second you download a file or run a program that it does not know it will check it and if it contains virus it will alert you and ask you to remove it..this is good..until the hacker has some sort of remote access to your computer then he can simply installs his virus on your computer without you even noticing about it.
Continue reading ‘How to surf the Web safely.’
This method is called Remote Desktop and It is a great tool if you need to access something on your own personal computer at home. Here are some images of how remote desktop really looks like:

What is Remote Desktop? “With Remote Desktop, you can connect to your work computer from home and access all of your programs, files, and network resources as though you were actually sitting in front of your computer at work” - Microsoft.com. If you looked at the screenshots above you will see to how it actually looks.
Continue reading ‘How To and What is Remote Desktop’
We all have those awesome songs that are very low and bad quality to listen. I was just experimenting with some of my songs that were like this and found a way to make things better and making it blast through my speakers. To do the following tutorials you must have the program called Anapod, anapod is a program that will allow you to convert your itune songs into .mp3 and save it on your desktop
. Its also a great tool for backing up music. Anyways here is the tutorials of How I increased the volume of my songs.
- Right click on a song in itunes then click on Get Info.
- After a new window popped up click on Options.
- In Volume Adjustment take the bar and put it to +100%.
- Click Ok.
- Open Anapod Explore and connect your iPod to the computer
- Surf through Anapod Explorer until you find the song you just changed the volume to
- Once you find this song, Right Click and save the song to your harddrive
- Go back to iTunes and deleted the old song that you changed the volume to from your playlist or library
- Copy & Paste the new song that is on your harddrive
- Right Click on the new song and do the steps above from 1-4 for Volume Adjustment
It seems like a lot of work, but it works. So now for those amazing songs you have with low volume you can change the volume to hear it better :). This tutorial only works if the song is originally on your iPod. If its not on your iPod, put it in your ipod then start from step 1.