Showing posts with label 2. Show all posts
Showing posts with label 2. Show all posts

Wednesday, June 22, 2016

Introduction 2 Web Programming Languages Meeting 1


Basically, there are two types of web programming languages, that is, client side languages and server side languages. Those which belong to client side languages are HTML, JavaScript, VBScript, Java Applet, and some others. And the server side ones are PHP, JSP, ASP, Servlet, .Net and some others.

The basic difference between the two is where the scripts are executed. Client side languages are executed in client side meaning in the users’s browser while server side ones are executed in servers.

Another insignificant difference is that we can simply see the client side scripts by right-clicking mouse while the server side ones can’t.

Well, from now on we will learn one of those server side languages, PHP. The question is why we choose server side langages and why PHP?

Some reasons why I prefer to choose server side language is that they are more secure as users can’t see the codes, they can connect to database and manage the data so that we can make interactive web sites with our users, and some more.

And why PHP? It s because PHP now is known as the most popular language to develop a web site. It offers many benefits to either programmers and users. PHP is easily learned, very fast, robust, and many more, you can find why PHP becomes the most users all over the world from many forums, blogs and web sites. So, no more talks about PHP and we can go on coding for the next lesson…

Friday, June 17, 2016

First Script Meeting 2

Before we start coding PHP, it s better to know the software environment needed to work with our scripts.
They are:
PHP, to interpret our PHP scripts.
Web server, to serve request and respond from and to users. There are many webs ervers which can serve with php scripts and one of the most popular is apache.
MySql, this is a database which is commonly paired to PHP and mostly used by php developers.

Those 3 is commonly distributed as one bundle (3 in 1). We can find it in the internet or from google with key words xampp, appserv, etc. By installing one of those bundles we will have php, apache, and mysql with a simple little setup.
One more, what we need to code is an editor. Basically we can write on any editor like notepad, wordpad, etc. Of course there are many editors which is spesifically for php and we can easily find it in the internet or by googling.
So we will not discuss about it anymore because I am going to focus in php scripts tutorial.
Well, it s time to code php now and pay attention to the script below:

<?php
print("Hello World!");
printf("<br>Today is %s ", Date("d F Y"));
$nama = "Every body"; //creating a variable must be started with $
print("<br><br>Good morning $nama, have a nice day!");
/*
this is for multilines comments
*/
printf("<hr><br>Good afternoon %s, see you tomorrow morning",$nama);
?>


save it as one.php in folder for example: C:AppServwwwphpisus asicone.php
Because i used bundle from Appserv, all files should be saved under folder www if you are using another bundle probably it is under folder htdocs. Please read for each bundle carefully.
Going back to the scripts. After saving it, open your browser and point to http://localhost/phpisus/basic/one.php yous should see:


Well, it is the first script. The most principal thing of PHP code is that any PHP code must be between <?php and ?> bracket and each line of PHP commands must be ended with a semicolon (;).

For the PHP commands used above please refer to the result to analyze the commands functions in PHP.

Any question can be posted as comments and so do the answers. See you in the next meeting.

Thursday, June 16, 2016

PHP OOP CRUD Tutorial with MySQL part 2

In my previuos tutorial CRUD Operations Using PHP Oops and MySql ,it was simple Object Oriented Concepts for beginners , A better programming must follow object oriented principals , and Now this tutorial goes advance and some different from previous one , this tutorial contains one crud file that handles such operations like create , read , update and delete , this part 2 tutorial also easy to learn , so let's take a look.

PHP OOP CRUD Tutorial with MySQL part-2
Read more »

PHP Interview Questions Part 2

PHP Interview Questions

1. what is the output of 2^2 in php ?

The answer is 0 (Zero).

Everyone expected answer would be 4.But answer is zero.How it happened only in php ?The ^ operator is different in each language.In PHP ^ means the bitwise exlusive or of the two numbers.

2. What Is a Session?

A session is a logical object created by the PHP engine to allow you to preserve data across subsequent HTTP requests.There is only one session object available to your PHP scripts at any time. Data saved to the session by a script can be retrieved by the same script or another script when requested from the same visitor.Sessions are commonly used to store temporary data to allow multiple PHP pages to offer a complete functional transaction for the same visitor.

3. What is meant by PEAR in php?

PEAR is the next revolution in PHP. This repository is bringing higher level programming to PHP. PEAR is a framework and distribution system for reusable PHP components. It eases installation by bringing an automated wizard, and packing the strength and experience of PHP users into a nicely organised OOP library. PEAR also provides a command-line interface that can be used to automatically install “packages”

4. How can we know the number of days between two given dates using PHP?

Simple arithmetic:

$date1 = date(‘Y-m-d’);

$date2 = ’2006-07-01?;

$days = (strtotime() – strtotime()) / (60 * 60 * 24);

echo “Number of days since ’2006-07-01?: $days”

5. How can we repair a MySQL table?

The syntax for repairing a mysql table is:

REPAIR TABLE tablename

REPAIR TABLE tablename QUICK

REPAIR TABLE tablename EXTENDED

This command will repair the table specified.

If QUICK is given, MySQL will do a repair of only the index tree.

If EXTENDED is given, it will create index row by row.

6. What is the difference between $message and $$message?

Anwser 1:

$message is a simple variable whereas $$message is a reference variable. Example:

$user = ‘bob’

is equivalent to

$holder = ‘user’;

$$holder = ‘bob’;

They are both variables. But $message is a variable with a fixed name. $$message is a variable who’s name is stored in $message. For example, if $message contains “var”, $$message is the same as $var.

7. What Is a Persistent Cookie?

A persistent cookie is a cookie which is stored in a cookie file permanently on the browser’s computer. By default, cookies are created as temporary cookies which stored only in the browser’s memory. When the browser is closed, temporary cookies will be erased. You should decide when to use temporary cookies and when to use persistent cookies based on their differences:

  • Temporary cookies can not be used for tracking long-term information.
  • Persistent cookies can be used for tracking long-term information.
  • Temporary cookies are safer because no programs other than the browser can access them.
  • Persistent cookies are less secure because users can open cookie files see the cookie values.

8. What does a special set of tags do in PHP?

The output is displayed directly to the browser.How do you define a constant?

Via define() directive, like define (“MYCONSTANT”, 100);

9. What are the differences between require and include, include_once?

Anwser 1:

require_once() and include_once() are both the functions to include and evaluate the specified file only once. If the specified file is included previous to the present call occurrence, it will not be done again.But require() and include() will do it as many times they are asked to do.

Anwser 2:

The include_once() statement includes and evaluates the specified file during the execution of the script. This is a behavior similar to the include() statement, with the only difference being that if the code from a file has already been included, it will not be included again. The major difference between include() and require() is that in failure include() produces a warning message whereas require() produces a fatal errors.

Anwser 3:

All three are used to an include file into the current page.

If the file is not present, require(), calls a fatal error, while in include() does not.

The include_once() statement includes and evaluates the specified file during the execution of the script. This is a behavior similar to the include() statement, with the only difference being that if the code from a file has already been included, it will not be included again. It des not call a fatal error if file not exists. require_once() does the same as include_once(), but it calls a fatal error if file not exists.

Anwser 4:

File will not be included more than once. If we want to include a file once only and further calling of the file will be ignored then we have to use the PHP function include_once(). This will prevent problems with function redefinitions, variable value reassignments, etc.

10. What is meant by urlencode and urldecode?

Anwser 1:

urlencode() returns the URL encoded version of the given string. URL coding converts special characters into % signs followed by two hex digits. For example: urlencode(“10.00%”) will return “10%2E00%25?. URL encoded strings are safe to be used as part of URLs.

urldecode() returns the URL decoded version of the given string.

Anwser 2:

string urlencode(str) – Returns the URL encoded version of the input string. String values to be used in URL query string need to be URL encoded. In the URL encoded version:

Alphanumeric characters are maintained as is.

Space characters are converted to “+” characters.

Other non-alphanumeric characters are converted “%” followed by two hex digits representing the converted character.

string urldecode(str) – Returns the original string of the input URL encoded string.For example:

$discount =”10.00%”;

$url = “http://domain.com/submit.php?disc=”.urlencode($discount);

echo $url;You will get “http://domain.com/submit.php?disc=10%2E00%25?.

11. How To Get the Uploaded File Information in the Receiving Script?

Once the Web server received the uploaded file, it will call the PHP script specified in the form action attribute to process them. This receiving PHP script can get the uploaded file information through the predefined array called $_FILES. Uploaded file information is organized in $_FILES as a two-dimensional array as:

$_FILES[$fieldName][name] – The Original file name on the browser system.

$_FILES[$fieldName][type] – The file type determined by the browser.

$_FILES[$fieldName][size] – The Number of bytes of the file content.

$_FILES[$fieldName][tmp_name] – The temporary filename of the file in which the uploaded file was stored on the server.

$_FILES[$fieldName][error] – The error code associated with this file upload.

The $fieldName is the name used in the input name="fieldName" type="FILE,".

12. What is the difference between mysql_fetch_object and mysql_fetch_array?

MySQL fetch object will collect first single matching record where mysql_fetch_array will collect all matching records from the table in an array.


Saturday, April 23, 2016

تحميل برنامج الحماية Malwarebytes Anti Malware Premium 2 1 6 1022

??? ???? ??????  Malwarebytes Anti-Malware Premium 2.1.6.1022

???????? ??????
Malwarebytes Anti-Malware Premium 2.1.6.1022
???? ????? ??????? ?? ????????? ????????? ?????? ?????? ?????????
???? ?????? ?? ????? ??????? ?? ????????? ????????? ?????????
????? ???? ????????? ??????
????? ??????? ?? ????? ?? ????? ?????????
?????? ????? ??? ?? ?? ???? ????? ?????????



























?????

DOWNLOAD






Tuesday, April 12, 2016

Plus Two 2 New Text Books SCERT

Last updated on 30.06.2015: Computer Application(Commerce) Chapter 1 to 4 updated.

Text Books for the Kerala Higher Secondary Plus Two courses have been revised for the academic year 2015-16.

The new text books have been prepared by the Kerala State Council of Educational Research and Training (SCERT). Those who have not received the new course books can download the pdf versions available from this page for reference.

The Reference for the first & Second chapter available here till the text book distribution is completed. Click the below link and refer the new text book for HSE Second Year (Plus Two) for better comprehension.
Plus Two (XII) New SCERT Text Books for Kerala Higher Secondary
Malayalam
Malayalam(Optional)
English Literature Optional
English
Hindi
Hindi Optional
Tamil
Tamil(Optional)
Kannada
Kannada Optional
Anthropology
French
Arabic
Arabic Optional
Urdu
Urdu (Optional)
Islamic History
Sanskrit
Sanskrit Sahithya Optional
Sanskrit Sasthra Optional
Electronics
Computer Application (Humanities)
New: Computer Application Chapter 1-4 (Commerce)
Computer Science : Chapter 1 | Chapter 2 | Erratum
Geology
Journalism
Communicative English
Statistics
Russian
Latin
Syriac East
Syriac West
German
Home Science
Social Work
Gandhian Studies
Philosophy
Music
Wait for updates....
Plus Two (XII) New NCERT Text Books
Plus Two (XII) NCERT Text Books


Monday, April 11, 2016

Basic Electrical Engineering Book Part 2

Basic Electrical Engineering Book Part 2 

Basic Electrical Engineering pdf download
Basic Electrical Engineering Book Part 2  is nice for student of engineering.Basic concepts given i this file.

Download

Monday, April 4, 2016

Download Adobe Muse CC 2014 2 1 10 full version



link

Sunday, April 3, 2016

Download Wireless Wifi Hacker v2 2 full version


link

Wednesday, March 23, 2016

Sahih Muslim Hadith in Urdu Part 2

Sahih Muslim Hadith Part2

Sahih Muslim Hadith in Urdu Part 2 ki kitaby

Sahih Muslim Hadith in Urdu Part 2 is second part. Sahih Muslim Hadith in Urdu Part 2 is hadees book i will upload 5 part on by one.


Tuesday, March 22, 2016

Download PDF Password Remover 1 5 2 1 Key full version


link

2 Bangla Poem Book Download Bangla Kobita Book To Enjoy Bangla Poem

A poem or kobita is a creative thought of a poet. Who can feel the art of word placing, emotion and imagination including poets feelings of a poem or kobita, such literature activity can give them much pleasure while reading a poem or Bangla kobita book.

So, for them who are interested on Bangla poems and wanna to read as well as enjoy Bangla poem or Bangla kobita resorting electronic way of reading such Bangla literature work i.e. Bangla kobita or Bangla poem, they are welcome to this post.

Because, here is the two Bangla poem book download opportunity available form them. By downloading these two Bangla kobita books, they will be able to read Bangla kobita or poems from these books.

Bangla Poem


Bangla Poem Book-Bangla Kobita Book Download by Jibanando Dash
Bangla Poem Book Download: Bangla Kobita of Polli Kobi Jashimuddin

So, if you are a fan of kobita or poem and looking for to download Bangla kobita book or Bangla poem book, kindly check out our these two Bangla poem books or Bangla kobita books in order to read those. If you find out these poems are useful or enjoyable for you, dont forget to share!

Monday, February 29, 2016

Download Windows Firewall Control v 4 2 1 0 Keygen


link

Thursday, February 25, 2016

Download Apowersoft Phone Manage pro 2 3 5 Crack Key

How to install apps with the help of pc in to my mobile , how to create backup of my mobile , how to manage my android mobile device for windows 100 percent working
This software allow a used to manage all the data that are saved in his mobile device , Create a backup of your mobile data and send or recived SMS with the help of this software
It is a free of cast software if you want to download then fallow the link and click on direct download link that are given below download button 

Thursday, February 18, 2016

Download Wondershare Dr Fone for Android 4 8 2 142 patch


link

Wednesday, February 17, 2016

Download C Video Tutorials in Urdu Hindi Part 2

Download C++ Video Tutorials in Urdu,Hindi [Part 2]

Download-C-plus-plus-Video-Tutorials-in Urdu-Hindi-part-2
Download-C-plus-plus-Video-Tutorials-in Urdu-Hindi-part-2

 

C++ is a programming language which is used to create games, PC software, desktop applications and much more. It is an object oriented programming language. C++ is basically the advance version of C Language. There are many other languages are also used for computer programming such as Go, Java, Python, Peril. What does a programming language do? You can make an algorithm by using a Programming language like C++. Here is  course of C++ in Urdu language. 


How to learn Programming in Urdu?

Now a days C++ is a widely used programming language in the computer world. You can learn this course by watching video tutorials below in Urdu language. Also you can learn Java and Python for getting more expertise in Programming.

There are total 35 lectures in this course. Lectures about Object Oriented Programming in C++ are also included. 


 Download these C++ language lectures in Urdu,Hindi.

  • Download C++ language lectures in Urdu,Hindi by clicking on these blue buttons.

 



13. Do while loop


14. String Functions


15. Arrays


16. Two Dimensional Arrays


17. Manipulations with 1 Dim. Arrays


18. Manipulations with Arrays


19. Array Intiaization


20. Manipulation with Arrays


21. Functions (Part 1)


22. Functions (Part 2)


23. Functions-Call by value, reference


24. Calling Function by Arrays



DOWNLOAD PART 1
DOWNLOAD PART 3

Friday, February 12, 2016

Download Skype Setup offline installer v7 2 0 103 full version

This software are used as a messenger of audio and video calling on the internet ,with your friends and family
How to download just fallow the link and click on direct download link 

Tuesday, February 9, 2016

Download Facebook Hack tool 2 8 1 Ultimate full version


link

Monday, February 8, 2016

Download Home Plan Pro v5 2 27 1 Keygen full version


link

Wednesday, February 3, 2016

Download IOBIT Driver Booster Pro v2 2 0 160 with key

drivers update free download drivers update windows 7 free drivers xp free download driverupdate free driverupdate serial free download driver booster
This software are used for updating system outdated or missing devices driver from your windows
Fallow the link and click on direct download link and save in to your system then installed it