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.’
These two companies are the giants of social networking in North America as well as some other continents. Facebook has lately gained its reputation as a place for “universities” and myspace is myspace… Facebook is really big in Canada, probably the biggest social networking website used. Then there is sites such as Nexopia which only get recognized in certain provinces of Canada. Myspace on the her hand is the biggest deal on countries such as The United States, Australia or United Kingdom (Although U.K favors Facebook majorly as well.)
Here is a graph to show their ranking, click on the image to enlarge it.

Since myspace is more global it is more known around the globe and therefore you can see a big increase in myspace’s population in the graph above.
Here is what I think of both of these websites. I don’t understand it, it is not user friendly. Ofcourse someone who spends time on it and knows how it works will go “what are you talking about, its so easy to figure things out”…No, it isn’t. Both websites have profile options scattered all over the website. Here are the reasons I deslike Myspace.
Continue reading ‘Facebook vs Myspace.’
Let me briefly say whats in my mind in four words. I Don’t Get It. I read the FAQ of the technorati website itself but heck that doesn’t even explain what most users would be looking for.
Authority system is basically another way of saying Blog Popularity. Which is totally BS. Here is why: The smaller blogs, such as this or another will almost never recognized and its authorities will remain low..and perhaps get lower.. while Other blogs are getting more and more authority.
How do these ‘Other Blogs’ get authority? well its simple, According to the info I read, The more people are talking about your site basically giving out reactions and the more blog have your blog under link Blogroll then you will surely get some good reputation.
This is an unfair deal because according to technorati’s search engine it will only display search results with the most authorities then the other blogs who could probably have better content then the newer blogs.
They seriously need to get rid of that shit. Why couldnt they do it like digg.com, atleast then people’s blog popularity/content would be evenly distributed. We are here working on codes to submit good content to search engines, develop the blog more and write more articles so why should we have to fight over some authority that we probably don’t even want.
You fail technorati. You pissed me off enough.
Update: Haha, As I finished writing this article and submitted it. Technorati pinged my blog and I now have one authority lol. Thanks goes to Lori’s blog link ;).
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.’
As I write this article, I am approximately 43 minutes away from witnessing the first glimpse of the lunar eclipse we are about to see this year. I was not aware of this at all and I got surprised about it and am now excitingly waiting for it to happen. I don’t recall ever viewing one in my life before, perhaps as a kid but who remembers.
Lunar Eclipse, I’ll use my knowledge to define it, it is when Earth is the center of the Moon and the Sun. The sun sends arrays of light which jump off earth and go over the moon, giving the moon colors (red) :D. I do not know so much but I know it will happen tonight.

Updates: Ok, I left the article and the lunar eclipse happened and is still happening for that matter. It is bright red, I want to take some pictures but am not capable because my cameras batteries are defective, my phone takes bad pictures. It is amazing. I waited an hour to see this.
The moon is fully orangish/red like the color of Mercury. ALSO the moon standing still has formed a Triangle shape with 2 other stars. The other two stars are Saturn and Mercury/Venus I’m not fully sure. If you get the chance go see it as this is the last Lunar Eclipse until 2010. It is an amazing view.
Some believe you are to not look at the moon directly when it is at its fulliest, it damages your eyes…but I don’t see why because I am fine after looking at it :).
Also some of my friends that I told about it today gave me the reaction “oh..” “oh..okay..cool.” “nice…anyways”. I believe there is some religious beliefs behind this, anyone care to share what their views or why lunar eclipses might be bad (except for the obvious reasons please).
Navid