Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,156,108 members, 7,828,911 topics. Date: Wednesday, 15 May 2024 at 03:59 PM

Qcode's Posts

Nairaland Forum / Qcode's Profile / Qcode's Posts

(1) (2) (of 2 pages)

Webmasters / Re: How Do I Create A Free Internet Radio by qcode(m): 11:03am On Mar 12, 2010
Check out these sites below you will find very free applications to put you on track

http://internet-radio.software.informer.com/

http://www.freebyte.com/radio_online/
Webmasters / Re: World Class Macromedia Flash Developer? by qcode(m): 2:59pm On Jan 21, 2009
@ kaysoft

Please always try to make your findings before you conclude on issues. We have more than enough competent Adobe flash developers here in Nigeria.

If you need a project done in flash, let us know we will point you to the right direction asap.

Thanks.
Webmasters / Re: Google Adword Expert. by qcode(m): 12:08pm On Dec 18, 2008
Contact me and you wont regret it at all, please leave your email address so that I can reach you asap
Computers / Re: My External Hard Drive Failed, Pls Help by qcode(m): 6:41pm On Dec 07, 2008
Hi, seriously, we can help recover the data from your 500gb hard drive, please call send an email to me encript2001@yahoo.com or leave your number here so that we call you to have our office address here in Lagos.
Computers / Fix Your Laptop/pc Problems by qcode(m): 4:56pm On Dec 05, 2008
Have you ever started up your PC / Laptop and found you could not get into Windows for whatever reason?

It could be a

- Hard Drive Failure
- Virus Attack
- A, Spyware Attack
- A Corrupt registry etc


Do you spend ages trying to fix the problem your self?

Wouldn’t it be better if you could restore your system with ALL your operating system files, data, programs and settings intact?

Or if your system fails due to a hardware failure, would you like to restore ALL your operating system files, data, programs and settings to another machine even if the hardware is different.

We can solve your system boot failure, be it hardware or software.

Our Office Address is:
150, Adetola Street, Aguda
Surulere Lagos.


Or you can call us on 08037161326 now.

We can also downgrade your Vista Laptops to Windows XP with all drivers working.
GIVE US A CALL TODAY! And you will be Glad You did!
Business / Re: A Free Training On Writing A "bankable" Business Plans On Nairaland by qcode(m): 4:08pm On Nov 30, 2008
Your kind and well though gesture is highly welcome but I feel you should leave your email behind, because its easier for you to manage, instead of having people flooding your phone with calls and sms. I can also offer a free website for for this purpose is you need one.
Computers / Re: Any Network Analysing Tool Available by qcode(m): 3:12pm On Nov 27, 2008
I think cisco network magic can do the job for. I have it if you need it, PM
Webmasters / Re: Please Safe Me From The Hand Of Unethical Internet Marketers by qcode(m): 2:57pm On Nov 27, 2008
Its OK syvanet, please can you send me a PM with what you want to do with your template? If you are an affiliate marketer or a blogger and maybe you require a unique template that you can easily integrate your affiliate codes and adsense code into, I can be of help. Do not worry I will not take any money from you I promise, it a pleasure to always help those in need and right direction.
Webmasters / Re: Please Safe Me From The Hand Of Unethical Internet Marketers by qcode(m): 5:51pm On Nov 26, 2008
Your request is not clear though, but maybe I can do a quick template for you free. Do not mind the word free it will be professional enough to get you started. Please let's see your requirements.

Thank you
Web Market / Hot: Affordable Website Design Solution by qcode(m): 2:47pm On Nov 26, 2008
[size=18pt]Get a very Professionally Designed Website
with any domain name of your choice + Hosting for a full year for N25,000.00 [/size]


ARE YOU LOOKING FOR A TOTAL WEBSITE DESIGN SOLUTION ?

Why pay one company to register your domain, another for your web site design, another for web site promotion and yet another for web hosting? Quadracle Solutions Ltd can provide it all for you!

We specialise in low cost, high QUALITY websites - We have been providing affordable, professional web design services to small business owners throughout Nigeria  for over 3 years now. We hope I can help you too,

For more information, visite [size=14pt]http://www.quadracles.com[/size]
Webmasters / Important Domain Terms You Need To Know by qcode(m): 2:12pm On Nov 26, 2008
Hi Webmasters,
Below you will find some intresting terms in relation to Domain Technicalities.

ACTIVE
This is the default status of a domain at registration time. The registry sets the domain to this status. The domain is modifiable by the registrar. The domain can be renewed. The domain SHALL be included in the zone file when in this status if the domain has at least one associated name server.

REGISTRY-LOCK
The registry sets the domain to this status. The domain cannot be modified or deleted by the registrar. The registry MUST remove the REGISTRY-LOCK status for the registrar to modify the domain. The domain can be renewed. The domain SHALL be included in the zone file when in this status if the domain has at least one associated name server.

REGISTRY-HOLD
The registry sets the domain to this status. The domain cannot be modified or deleted by the registrar. The registry MUST remove the REGISTRY-HOLD status for the registrar to modify the domain. The domain can be renewed. The domain SHALL NOT be included in the zone file when in this status.

REGISTRAR-HOLD
The registrar of the domain sets the domain to this status. The domain can not be modified or deleted when in this status. The registrar MUST remove REGISTRAR-HOLD status to modify the domain. The domain can be renewed. The domain SHALL NOT be included in the zone file when in this status.

REGISTRAR-LOCK
The registrar of the domain sets the domain to this status. The domain cannot be modified or deleted when in this status. The registrar MUST remove REGISTRAR-LOCK status to modify the domain. The domain can be renewed. The domain SHALL be included in the zone file when in this status.

REGISTRY-DELETE-NOTIFY
A domain is set on this status if it has expired and has child name servers that are hosting other domains. Only the registry may set this status. The domain SHALL be included in the zone file when in this status if the domain has at least one associated name server.
The domain deletion progresses through the following statuses.

REDEMPTIONPERIOD
A domain name is placed in REDEMPTIONPERIOD status when a registrar requests the deletion of a name that is not within the Add Grace Period. A name that is in REDEMPTIONPERIOD status will not be included in the zone file. A registrar can not modify or purge a name in REDEMPTIONPERIOD status. The only action a registrar can take on a name in REDEMPTIONPERIOD is to request that it be restored. Any other registrar requests to modify or otherwise update the domain will be rejected. Unless restored, the domain will be held in REDEMPTIONPERIOD status for a specified number of calendar days. The current length of this Redemption Period is thirty calendar days.

PENDINGDELETE
A domain name is placed in PENDINGDELETE status if it has not been restored during the Redemption Period. A name that is in PENDINGDELETE status will not be included in the zone file. All registrar requests to modify or otherwise update a domain in PENDINGDELETE status will be rejected. A domain name is purged from the registry database a specified number of calendar days after it is placed in PENDINGDELETE status. The current length of this Pending Delete Period is five calendar days.

PENDINGRESTORE
A domain name is placed in PENDINGRESTORE status when a registrar requests restoration of a domain that is in REDEMPTIONPERIOD status. A name that is in PENDINGRESTORE status will be included in the zone file. Registrar requests to modify or otherwise update a domain in REDEMPTIONPERIOD status will be rejected. A domain name is returned to REDEMPTIONPERIOD status a specified number of calendar days after it is placed in PENDINGRESTORE unless the registrar submits a complete Registrar Restore Report to the Registry Operator. The current length of this Pending Restore Period is seven calendar days.

1 Like

Business / Re: Entire Computer Village Shut Down Over Tax by qcode(m): 11:18am On Nov 26, 2008
There is no need to fight over the issue of tax here in this forum, we should accept the fact that the right thing to do in any situation that affects human economy is dialogue, both parties should come together and work out a solid and agreed plans to sort the issue for the progress of the state
Computers / Re: Multilinks Telkom New Evdo Internet by qcode(m): 11:06am On Nov 26, 2008
Hi guys,

These so called blue chip companies are ripping-off Nigerians of their hard earn money, believe it or not, there no true mobile broadband yet in Nigeria. All they do is con a very intelligent ad copy and run some nice deceitful advert on various medium.

Why some Nigerians always fall this is because some us are largely un-informed. Do allow your self to be a victim again and again, stick to what works for you, and wait for a firm that will spare the broadband revolution in Nigeria. Just like the Telephone Revolution.
Webmasters / Re: 1st Joomla! Day In Nigeria by qcode(m): 2:06pm On Nov 21, 2008
Its great to see that will are coming of age here in Nigeria. Web business is a very big one that I believe we have still yet to get into. Let' s support this project
Certification And Training Adverts / The Best Online Programming Tutorials (php, Vb, C#, Javascript) by qcode(m): 11:46am On Oct 17, 2008
This site can help you learn visual basic (not as good as C# tongue)

everythings step by step ,and its pretty SO EASY to follow

check it out! http://homeandlearn.co.uk/
Jobs/Vacancies / Secretary Needed Urgently And Office Assistant by qcode(m): 12:34pm On Oct 15, 2008
[size=8pt]VACANCY! VACANCY!! VACANCY!!![/size]

1. A SECRETARY

2. OFFICE ASSISTANT


QUALIFICATION:

SECRETARY: OND AND ABILITY TO USE THE COMPUTER

OFFICE ASSISTANT: SSCE AND ABILITY TO USE THE COMPUTER.

APPLY IN PERSON WITH YOUR HAND WRITTEN APPLICATION TO,

The Director,

[size=8pt]Salam Afrika
NUJ Light House (3rd Floor),
3-5 Adeyemo Alakija Street,
Victoria Island Lagos
014812966; 7220668; 07025802777.
[/size]
Technology Market / Hp Pavilion Intel Core 2 Duo 4gb Ddr2 At Give Away Price by qcode(m): 5:18pm On Oct 12, 2008
I have an HP Pavillion  Widescreen Special Edition Laptop for  sell

Product description

Thin-and-light:
Dual core/64-bit processing:
This laptop features 4GB of DDR2
Hard drive:This hard drive features a 320GB capacity
Blazing-fast wireless N: Built-in 802.11agn wireless LAN
Built-in Bluetooth:
DVD SuperMulti drive
LightScribe disc-labeling: Burn custom, silkscreen-quality labels and images onto your discs with the same drive that burns the data.
Microsoft Windows Vista Home Premium (64-bit) with SP1:
Audio/video: This laptop features Intel Media Graphics Accelerator X3100 graphics and 358MB .
Media card reader: 5-in-1 reader is compatible with Secure Digital, xD, Memory Stick, Memory Stick PRO and MultiMedia Card.
ExpressCard/54 slot: This laptop supports ExpressCard, an emerging standard in smaller, faster PC card solutions.
Built-in webcam/mic:
Sophisticated design: High-gloss HP Imprint finish is more durable than traditional painted surfaces.

Software bundle:
Microsoft Windows Vista Home Premium (64-bit) with Service Pack 1, Works,
Office 2007 Student and Teacher Edition (60-day trial), and Internet Explorer
Symantec Norton Internet Security 2008 (with 60 days of live update)
HP Smart Web Printing
HP PhotoSmart Essentials
HP QuickPlay
CyberLink DVD Suite
Muvee autoProducer
Adobe Acrobat Reader
HP Games powered by WildTangent

Its Brand new still in Box---Price N145,000.00


Intrested buyers should call Austin on 08037161326
or send email to yemonite@yahooo.coo.uk
Crime / Accused Hacker Freed On Bail In $1.8m Theft Case by qcode(m): 11:46pm On Oct 11, 2008
Accused hacker freed on bail in $1.8M theft case
Montrealer once broke into U.S. Pentagon's system
Daryl Slade, Calgary Herald
Published: Friday, September 26, 2008

The alleged mastermind of a $1.8-million theft from a Calgary financial company has been granted bail.

Provincial court Judge John Bascom ordered Ehud Tenenbaum -- who spent time in jail for hacking into the U.S. Defence Department's computer system -- released on $30,000 cash following a bail hearing Thursday. <-- Stolen money no doubt, laugh.gif The greedy US gov would have wanted triple that,

Bascom said he was concerned about the 29-year-old's lack of ties to Calgary, but felt he could be monitored in Montreal, where he has some support.

"This individual is very skilled -- to use his abilities for good or evil," said Bascom.

Crown prosecutor Jane McClellan told court the Israeli man's computer and Internet provider address in Montreal were used to hack into computers belonging to Direct Cash Management Inc. in Calgary.

She said if it had not been for Tenenbaum leaving his computer turned on at his apartment when Montreal police executed a search warrant in his absence, they would not have been able to seize incriminating evidence.

"The tech person noted devices were done in such a way they could be turned off by a kill switch," said McClellan, who argued for Tenenbaum's detention, saying such crimes, if proved, would warrant a prison sentence of five to seven years.

"A lot of what police found is evidence that certainly connects Tenenbaum to Direct Cash and to the fraud."

When asked outside court if the Crown would appeal the release, McClellan said, "It'll have to be considered . . . other events may not make it necessary."

Although she did not elaborate, McClellan had told Bascom there are warrants out for Tenenbaum's arrest in the United States on similar charges.

Defence lawyer John James said Tenenbaum was in the computer security business and infiltrated hacker sites to obtain more information to learn new ways of protecting his clients.

"We certainly don't deny he has great talents in technology . . . but that shouldn't be held against him," said James.

"Mr. Tenenbaum has worked in the computer industry, primarily in computer security, since he was 15 or 16.

"Police will find a very significant portion of what they find on my client's computer clearly indicates his legal involvement is development for clients' Internet and corporate security."

James said it is crucial to understand how hackers work to correct weaknesses in a business's system.

McClellan said Tenenbaum was involved in obtaining pre-paid debit cards from Direct Cash, with small balances substantially increased by hacking into the system. Then, she said, the data was e-mailed to other people, and large withdrawals were made worldwide, primarily in Montreal.

The offences, she said, took place between late December 2007 and early January this year.

The judge said Tenenbaum's alleged involvement must be settled at trial.

While on release, said Bascom, Tenenbaum must live at the same Montreal apartment where his computer was seized last month and report to Montreal city police in person twice a week.

Bascom prohibited Tenenbaum from using any device that can access the Internet, and prevented him from having contact with only one of three co-accused persons in the alleged theft.

Tenenbaum may contact Priscilla Mastrangelo, whom he says is his fiancee, and Spyros Xenoulis, who is listed as his business partner.

They and another co-accused, Ralph Jean-Francois, have been released and returned to Montreal, where they were arrested in late August -- along with Tenenbaum -- and brought to Calgary to face the charges.

Investigators believe Tenenbaum was responsible for hacking into the Calgary computers, while the three accomplices were allegedly responsible for the bulk of the cash withdrawals.

Court documents indicate Mastrangelo, 30, took $32,082. Jean-Francois, 28, and Xenoulis, 33, allegedly took $6,585 and $1,001, respectively.

In 1998, when Tenenbaum was a teenager in Israel, he hacked into computers belonging to the Pentagon. He was initially sentenced in Israel to six months community supervision, but it was increased to 18 months jail in 2002.

His next scheduled court appearance in Oct. 29

Source: http://www.canada.com/calgaryherald/news/city/story.html?id=7833966a-5188-4e84-862c-0ed65aa7d047
Webmasters / Ip Piracy Bill Passed By U.s Congress by qcode(m): 11:23pm On Oct 11, 2008
September 29, 2008
IP piracy bill passed by U.S. Congress

"PRO-IP bill would significantly increase penalties for copyright infringement and create a new office of IP enforcement coordinator in the White House."

The article can be found here:
http://www.infoworld.com/article/08/09/29/IP_piracy_bill_passed_by_US_Congress_1.html

Strange they've got time to work on this during the money crisis. I guess piracy is being targeted as a major cause of the US financial meltdown,  A scapegoat once again.
Webmasters / Re: Google Adsense by qcode(m): 10:58pm On Oct 11, 2008
google send my adsense cheques to me here in Nigeria
Webmasters / Re: Who Can Design This Great Website by qcode(m): 10:50pm On Oct 11, 2008
@CGKing

What can of form do you want for your website? and what language do have in mind. I can help you with this
Webmasters / Re: Joomla Cms 4 Web Design by qcode(m): 10:29pm On Oct 11, 2008
In my opinion, Joomla is the best open source content management system out there. You can use it to build highly sophisticated websites that can be easily edited and updated. I have been using it inside Dreamweaver with the Joomla Template Kit and its pretty cool!
Webmasters / Re: Please I Need A Toolbar Plz by qcode(m): 4:09pm On Sep 24, 2008
First of all, what exactly do you want to achieve with your tool bar, and how to you want to integrate it into your site. I have a software that can build a very professional tool bar for you.

Please let me know what you want to achieve.
Computers / Wi-fi Without Routers by qcode(m): 11:40am On Jul 27, 2008
sharing your existing ethernet internet connection

1. go to control panel -> network connection.
2. right click on your ethernet connection and click on “properties”.
3. go to “advanced” tab.
4. check “allow other network…, internet connection”
5. in the drop down below select the wifi connection of your pc. if it is disabled, it will be showing your wifi connection already.
6. click on “settings”
7. check the protocols you need to share.i normally use only http and https.
8. click on “ok”.you reach the network connection page. the sharing part is now over.

finding dns server ip address.

1. click on start -> run
2. type in cmd in the run prompt
3. in the new window type “ipconfig /all” and press enter.
4. note down your dns server ip address from the screen.

configuring the wifi

1. go again to control panel -> network connections.
2. right click on your wifi connection and click “properties”.
3. go to”wireless network” tab.
4. the “use windows to configure my wireless network connection” should be checked.
5. in the preferred network connection section click on add button
6. enter a name of your wish to the network name.
7. network authentication is “open”
8. change data encryption to “disabled”
9. check the “this is a computer to computer …. not used” connection.
10. click “ok”.
11. click on general tab. select “internet protocol(tcp/ip) and click on properties button.
12. now type 192.168.0.1 in ip address, 255.255.255.0 in subnet mask, leave default gateway empty.
13. fill in the dns server entry which you had noted down earlier.
14. click on “ok” and your network is set.

your network should appear on the wifi network list now. search for wlan on your phone. connect and enjoy browsing on your phone.
Programming / Re: Do Want To Start Programming? by qcode(m): 12:49pm On Apr 14, 2008
christopgo:

Hello friends please i want to go into web design,web development and programming please can anyone help me with a good recommendation, anywhere in the country phone numbers needed please for contact.

Hmm, going into web design will take alot of your time, focus and energy, please be rightly advice Web design is a complete Art of the Creative minds mixed with intelligent. You must be an intelligent thinker as well as someone who can really think out Aloud! This is simply so because there are so many technologies that makes up a the web.

So you must be prepare to learn a new thing almost every day, if you must be a good web designer. But Let me ask you first, what's your take in IT? do you have a good understanding of the industry just yet? please let me know so I can be of help.
Programming / Re: Do Want To Start Programming? by qcode(m): 12:46pm On Apr 14, 2008
christopgo:

Hello friends please i want to go into web design,web development and programming please can anyone help me with a good recommendation, anywhere in the country phone numbers needed please for contact.

Hmm, going into web design will take alot of your time and energy, please dont be decieved, Web design is a complete Art of the Creative minds. You must be an intelligent thinker as well as someone who can really think out Aloud! This is simply because there are some many technology that makes up a the web.

So you must be prepare to learn a new thing almost every day, if you must be a good web designer. But Let me ask you first, what's your take in IT? do you have a good understanding of the industry just yet? please let me know so I can be of help.
Programming / Re: Do Want To Start Programming? by qcode(m): 2:21am On Apr 14, 2008
Hi jimblaze

The CLR Was introduced in Microsoft .NET Framework which SIMPLY means common language runtime.

The following terms are important in the context of CLR routines:

.NET Framework

A Microsoft(R) application development environment comprised of the CLR and .NET Framework class library designed to provide a consistent programming environment for developing and integrating code pieces.

Common language runtime (CLR)
The runtime interpreter for all .NET Framework applications.

How this help
Programming / Re: Do Want To Start Programming? by qcode(m): 3:57pm On Apr 12, 2008
Hi, jimblaze

Java sucks not literally. The language has much to offer but the support is not really there, but if you like Java, I advice you start up with C# because with the new CLR coming up which is expected to be Platform independent, Java will be extinct.
Programming / Re: Expert Systems With Visual Basic by qcode(m): 8:27am On Apr 12, 2008
Please can you explain what you mean here so that we can clearly help you.
expert systems
time table
what are you coding for or you want of the shelf solution?
Programming / Do Want To Start Programming? by qcode(m): 8:09am On Apr 12, 2008
Okay guys, I know a few of you want to start, and don't know where to start, so I've devised a small guide to help you on your way.

First of all, don't start off with a really 'hard' language. Start off with an easy programming language. Suggestions for these are:
- Visual Basic (6 or .NET doesn't matter)
- Java (Note: this language sucks xD)
- HTML, CSS, Javascript and PHP (Even if you don't want to be a web programmer)
- Python

Okay, get familiar with these languages, take a few months on them, perhaps even go into mastering them.
When you think you have done that move onto a harder language such as,
- C++
- LISP
The good thing now you'll find is that they're easier to learn, Why? Because you've already learned
a language before and are used to them Razz

Take a while familiarizing again, practice with it, get some freelance work maybe? Get paid, okay,
now you've been doing programming for a few months-a few years, what next?

Now you go into specialist parts of programming languages. Say you wanted to be a game developer, then learn the
DirectX API for C++, say you wanted to learn how to create server and client interfaces, go into
Windows and Linux Sockets, there are millions of possibilities.

I give you this guide from experience, this is similar to what I did. If you wanna know what I did, here you are,
At age 24 I learned how to program for a game engine called RPG Toolkit 2, (because I love gaming so much)
it was very simple, but I didn't have very much computer access then (one every 2-3 weeks Neutral) it took me a while to move on.
At 25 I finally got my own computer, and learned C++, this wasn't too hard. However,
At 26 I learned Visual Basic, HTML, Javascript, CSS, PHP, and loads of others, you may be thinking why
I went to the easier languages again, this is simply because I felt if it was easier to do a job then why not.
I'm now 27 and use C++ again.

So that's the route I took, a quick example of how you could become a programmer.

Hope you enjoyed reading.
Webmasters / My Php Tutorials For Newbies by qcode(m): 4:53pm On Apr 07, 2008
Hi Everyone, this is going to be a series of tutorials that will teach how to program in PHP from stratch. So I will continue to add a new chapter to it so keep this page in your bookmarks.

In this first chapter I will explain you what PHP is, and how to start with it. At the end of this tutorial you will know how to:

- Create PHP files
- Load PHP files
- Starting PHP
- Create variables
- Use the IF function


Actually this is quite much for a first chapter, but I know that learning a language isn't fun if you can't do nice things fairly quickly. So after some basics will use the IF function for some fun stuff.


This How to create PHP files

Creating a PHP file isn't that hard; just create a text file with .php as extension. What you do with PHP is actually creating a HTML file, but you just post some parts of PHP between the HTML.

What's more interesting to know, is how to edit a PHP file. Well, you can use many editors. I even started coding in plain notepad! But there are editors who are nicer to work with, the best free editor is notepad++, you can get at http://notepad-plus.sourceforge.net/uk/site.htm

With Notepad++ you will get syntax highlighting, this basically means the editors will use colors to highlight the PHP code. So a function will get a different color than some plain text, this makes it a lot more easy to read.


How to you load a PHP file?

You need a server with PHP support for this. Most paid host support it, but you won't find PHP on your free website. Wink

There are two things you can do.

One is installing Apache plus PHP on your home computer, but that can be quite a hassle.

Two is just get a webhost with PHP support, there are plenty of them online. So there is no need to install it on your own computer. I recommend you to get your own domain-name, so you can test all you want.

If you have a host with PHP support you just need to upload the PHP file the server.

Now Starting PHP

To start telling the server you are going to use PHP isn't that hard. You use the following tags to indicate PHP:

Code:
1
<?php
2

3
// And here some PHP code
4

5
?>


The stuff with the "//" is comment, so no PHP code.

As you can see you only need to write a beginning PHP tag, and a ending tag. You can just put these in your HTML like this:

Code:
1
<html>
2
<head>
3
<title>Nairaland Free PHP tutorial!</title>
4
</head>
5
<body>
6

7
<?php
8

9
echo "Hello world!";
10

11
?>
12

13
</body>
14
</html>


This makes it quite easy to use PHP! Smiley

And check out that part about "echo". This is a function, this tells PHP to put the text between the quotes into the HTML.

So the result of that code would be:

Code:
1
<html>
2
<head>
3
<title>Nairaland Free PHP tutorial!</title>
4
</head>
5
<body>
6

7
Hello world!
8

9
</body>
10
</html>


This is what your browser would receive from the server. Quite easy to understand right?

Create variables

Now lets move on to real PHP programming.

PHP uses much temporary information, lets say some test you've written in a form is also some temporary information PHP must be able to save. To save this information you need to create a variable. A variable basically is a piece of the computers RAM memory.

Let's see how you create a variable shall we?

Code:
1
<?php
2

3
$person = "Lagosian";
4

5
?>


First you should notice the dollar sign ($). This is used to let PHP know you are using a variable. Next is the name of the variable, so we've created a variable called "$person". After the name you write the content of the variable, in this example the variable "$person" contains the text "Lagosian";

The difference between text and numbers.

In PHP (and all programming languages) there is quite a difference between numbers and text. First of all in PHP you call a number an "Integer", and you call some text a "string".

Of course this is not the only difference, the main difference is how you use them in PHP. Like you've seen in the example above, to store some text into a variable you need to put quotes around them ("wink. This is where the difference kicks in, when working with numbers you do not add quotes around them.

So let's say if I want to store my length in a variable I will wont use quotes: (in centimeters of course)

Code:
1
<?php
2

3
$length = 172;
4

5
?>


Now what if I want to combine a number with text? Well that's simple, it turns into text. You only omit the quotes when it's a pure number without some text.

Code:
1
<?php
2

3
$length = 172 cm; // Wrong
4

5
$length = "172 cm"; // Right
6

7
?>


Now let's echo the value of the variable into the HTML code.

Code:
1
<?php
2

3
$length = "172 cm";
4

5
echo "My length is: " . $length;
6

7
?>


This looks weird doesn't it?

What I did here is placing the $length variable in the echo. You can do this by closing the text with a quote ("wink and placing a point followed by the variable.

This is not so hard right? Let's move on to some real programming.

The if function

The most used function within every programming language is the If function, it's a function that compares values.

It looks overwhelming, but believe me it's very easy.

Code:
1
<?php
2

3
$person = "Lagosian";
4

5
if($person == "Lagosian"wink {
6

7
echo "The person is a Lagosian!";
8

9
}
10

11
?>


A lot of new stuff, but don't worry you will understand it soon Smiley

The first part is if($person == "Lagosian"wink. This part compares "$person" with the plain text "Lagosian". So basically it's checks if the value of $person is "Lagosian".

Our variable $person contains the text "Lagosian", so this check is true. Whit this function, if it's true the code between the accolades ({ , }) is executed.

So the output of this code is:

The person is a Lagosian!

But what if the variable does not contain "Lagosian"?

Code:
1
<?php
2

3
$person = "Ijebu";
4

5
if($person== "Lagosian"wink {
6

7
echo "The person is a Lagosian!";
8

9
}
10

11
?>


Now the if function isn't true anymore. This means that the code between the accolades ({…}) won't be executed.

This piece of code won't return any output, that's kind of ugly. I want to know it when the $person does not contain "Lagosian".

To realize this we'll need to add some extra code.

Code:
1
<?php
2

3
$person = "Ijebu";
4

5
if($person == "Lagosian"wink {
6

7
echo "The person is a Lagosian!";
8

9
} else {
10

11
echo "The person is not a Lagosian!";
12

13
}
14

15
?>


I've added else to the code. The code between the accolades of else is executed when the if is not true.

So in this example the part between else's accolades are executed. Returning the following output:

The person is not a Lagosian!

This example should be pretty clear, but I highly recommend you to write your own pieces of code to test all of your new knowledge.

The end

This is end our of part one. In a short time I will write the second chapter of this series. In the next series we'll talk about form input. So all the input that's send via a simple HTML form.

(1) (2) (of 2 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 95
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.