Introduction
Up until recently, scripting on the internet was something which very
few people even attempted, let alone mastered. Recently though, more and
more people have been building their own websites and scripting
languages have become more important. Because of this, scripting
languages are becomming easier to learn and PHP is one of the easiest
and most powerful yet.
What Is PHP?
PHP stands for Hypertext Preprocessor and...
Monday, August 19, 2013
A PHP Times Table Programme
1:48 PM
No comments
In the previous part, you saw what a For Loop was.
In this section, we'll write a times table programme to illustrate how for
loops work.
There's a script called timesTable.php amongst the files you downloaded (in
the scripts folder). When loaded into the browser, it looks like this:
There's a script called timesTable.php amongst the files
you downloaded (in the scripts folder.). When loaded into the browser,
...
Some Practise with PHP If Statements
1:47 PM
No comments
We can use an if statement to display our image, from the previous
section. If the user selected "church", then display the church
image. If the user selected "kitten", then display another image (the
kitten image, which is also in your images folder).
Here's some code:
<?PHP
$kitten_image = 1;
$church_image = 0;
if ($kitten_image == 1) {
print ("<IMG SRC =images/kitten.jpg>");
}
?>
Type that out, and save it as...
What you need to get started with PHP
1:46 PM
No comments
Before you can write and test your PHP scripts, there's one thing you'll need
- a server! Fortunately, you don't need to go out and buy one. In fact, you
won't be spending any extra money. That's why PHP is so popular! But because
PHP is a server-sided scripting language, you either have to get some web space
with a hosting company that supports PHP, or make your computer pretend that
it has a server installed. This is because PHP...
What is PHP?
1:45 PM
No comments
PHP is probably the most popular scripting language on the web. It is used
to enhance web pages. With PHP, you can do things like create username and password
login pages, check details from a form, create forums, picture galleries, surveys,
and a whole lot more. If you've come across a web page that ends in PHP, then
the author has written some programming code to liven up the plain, old HTML.
PHP is known as a server-sided language. That's because the PHP doesn't get
executed on your computer, but on the computer you requested...
Thursday, April 18, 2013
JavaScript: Password Validation using regular expressions and HTML5
8:03 PM
7 comments
. Guidelines for Secure Password Input
Use the "password" input type
Instead of <input type="text"> you should always use
<input type="password"> as this lets the browser (and
the user) know that the contents of that field need to be secured. Your
password won't appear on the screen as you type and most browsers also
won't 'remember' the values entered in password fields as they
do with other form elements.
Confirm password...
Passing variables to JavaScript usin php
7:29 PM
No comments
1. Escaping Quotes and Line Breaks
Suppose you start with a PHP variable that needs to be displayed in a
JavaScript alert or confirmation dialog:
$message = "a short piece of text
spanning more than one line
and containing \"double\" & 'single' quotes";
The obvious way to turn this into an alert is:
<script type="text/javascript">
alert("<?PHP echo $message ?>");
</script>
but that...
Exporting Data to Excel usin php
7:04 PM
11 comments
1. Preparing the data
The following examples use the dataset created for Sorting Arrays of Arrays which is defined as
follows:
<?PHP
$data = array(
array("firstname" => "Mary", "lastname" => "Johnson", "age" => 25),
array("firstname" => "Amanda", "lastname" => "Miller", "age" => 18),
array("firstname" => "James", "lastname" => "Brown", "age" => 31),
array("firstname" => "Patricia", "lastname"...
Tuesday, March 26, 2013
Why do you need an Ecommerce website?
6:23 AM
No comments
If you’re looking to sell your products
online, you would need an Ecommerce store. Who does not want a fully
featured site or portal for less money? We can provide you tailor made
solutions for your online shopping needs matching your budget. You can
easily make profits with our custom Ecommerce solutions.
At Infilon, we keep in mind the target audience while designing and developing
any Ecommerce store. Our designs are influenced...
Saturday, March 23, 2013
what is new in windows 8 server ?
6:15 PM
3 comments
Hello again. This is another article about Windows 8. But this time I
will talk about the server version of this operating system. As you all
know, approximately 1 month ago, Microsoft made the Developer Preview
of its next generation operating system available through its MSDN
website. The installation of the operating system is somehow similar
(but shorter) to the installation of its client version brother. But the
interior is different...
what is new in windows 8 ?
6:13 PM
No comments
Last weeks Microsoft released the Developer Preview for its new
operating system, Windows 8, to public. It is known that Windows 8 Final
Release will be available in 2012. As all new operating systems come
with improvements and differences, Windows 8 promises to give customers a
new and improved Windows experience. Throughout this article, I want to
show you some of these new features of Windows 8.
Windows 8 Developer Preview can be downloaded...
Friday, March 22, 2013
top 10 favorite Twitter tips and tricks
7:03 PM
No comments
Below
is a listing of our top 10 favorite Twitter tips and tricks. These tips will
help make your Twitter experience more enjoyable and can help increase your
followers.
Customize
Change your profile picture. Use a picture of yourself to make it
seem more personalized if this is your personal Twitter account.
Utilize as much of the 160-character limit Twitter
BIO space allows. Include keywords your followers or potential followers...
Display Twitter RSS feed using PHP
6:51 PM
No comments
Most of the bloggers(and developers), have at least once needed to
display a twitter feed on their pages. There are a variety of ways of
doing that, but today I`ll write about including a twitter feed in your
blog using PHP. The code is pretty much straight-forward. The only thing
you have to adjust is the amount of tweets you want shown and the
username, which feed you`ll be displaying.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
$twitterUsername...
Monday, February 18, 2013
Swing: User Interfaces in Java
4:07 PM
No comments
Swing: User Interfaces in Java
Java has a fairly rich framework for creating user interfaces "out of the box". That
framework is called Swing. Before learning Swing, it's worth making sure
that you really understand the following:
the basic concepts of object-oriented programming (e.g. the notion
of classes, object creation, inheritance);
basic Java syntax: how to call methods, how to create loops etc;
interfaces, in the programming...
Subscribe to:
Posts (Atom)