Showing posts with label 3. Show all posts
Showing posts with label 3. Show all posts

Saturday, June 4, 2016

PHP Interview Questions Part 3

PHP Interview Questions

1. How can I execute a PHP script using command line?

Just run the PHP CLI (Command Line Interface) program and provide the PHP script file name as the command line argument. For example, “php myScript.php”, assuming “php” is the command to invoke the CLI program.

Be aware that if your PHP script was written for the Web CGI interface, it may not execute properly in command line environment.I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?

PHP Interpreter treats numbers beginning with 0 as octal. Look at the similar PHP interview questions for more numeric problems.Would I use print “$a dollars” or “{$a} dollars” to print out the amount of dollars in this example?

In this example it wouldn’t matter, since the variable is all by itself, but if you were to print something like “{$a},000,000 mln dollars”, then you definitely need to use the braces.

2. What are the different tables present in MySQL? Which type of table is generated when we are creating a table in the following syntax: create table employee(eno int(2),ename varchar(10))?

(Answer) Total 5 types of tables we can create

1. MyISAM2. Heap

3. Merge

4. INNO DB

5. ISAM

MyISAM is the default storage engine as of MySQL 3.23. When you fire the above create query MySQL will create a MyISAM table.

2. How can we encrypt the username and password using PHP?

Answer1

You can encrypt a password with the following Mysql>SET PASSWORD=PASSWORD(“Password”);

Answer2

You can use the MySQL PASSWORD() function to encrypt username and password. For example,

INSERT into user (password, …) VALUES (PASSWORD($password”)), …);

3. How do you pass a variable by value?

Just like in C++, put an ampersand in front of it, like $a = &$b

4. What is the functionality of the functions STRSTR() and STRISTR()?

string strstr ( string haystack, string needle ) returns part of haystack string from the first occurrence of needle to the end of haystack. This function is case-sensitive.

stristr() is idential to strstr() except that it is case insensitive.

5. What is the functionality of the function strstr and stristr?

strstr() returns part of a given string from the first occurrence of a given substring to the end of the string. For example: strstr(“user@example.com”,”@”) will return “@example.com”.

stristr() is idential to strstr() except that it is case insensitive.


6. What is the difference between ereg_replace() and eregi_replace()?

eregi_replace() function is identical to ereg_replace() except that it ignores case distinction when matching alphabetic characters.

7. How do I find out the number of parameters passed into function. ?

func_num_args() function returns the number of parameters passed in.

8. What is the purpose of the following files having extensions: frm, myd, and myi? What these files contain?

In MySQL, the default table type is MyISAM.

Each MyISAM table is stored on disk in three files. The files have names that begin with the table name and have an extension to indicate the file type.

The ‘.frm’ file stores the table definition.

The data file has a ‘.MYD’ (MYData) extension.

The index file has a ‘.MYI’ (MYIndex) extension

9. If the variable $a is equal to 5 and variable $b is equal to character a, what’s the value of $$b?

100, it’s a reference to existing variable.

10. Are objects passed by value or by reference?

Everything is passed by value.

11. What are the differences between DROP a table and TRUNCATE a table?

DROP TABLE table_name – This will delete the table and its data.

TRUNCATE TABLE table_name – This will delete the data of the table, but not the table definition.

Thursday, May 19, 2016

Variable and Constant Meeting 3

Now, we are learning on variables and constants in PHP. TPlease pay attention to the scripts below:

<h3>Variables & Constant</h3>
<hr><h4>Employees Data</h4>
<?php
$id = 19200; $name = "Mr. Bean"; $address = "Jl. Godean Gg. II/4";
define("city", "Yogyakarta");
print("ID : $ID<br>");
print("Employees Name : $name<br>");
print("Address : $address<br>");
printf("City : %s<br>",city);
?>
<br><br><hr>
<h4>Calculating A Circle</h4>
<?php
$rad = 10; define("phi",3.14);
printf("Circle radiant : %s cm<br>",$rad);
printf("Area of a aircle : %s cm<sup>2</sup><br>",($rad*$rad*phi));
printf("Circumference of a circle : %s cm<br>", (2*phi*$rad));
?>

As before, save it as two.php and then open the file via browser. And the result should be like this:


For variables we know from the previous lesson that it must be started with $. But for constant we need to use a function "define" with 2 parameters as you can see above. The first parameter is the name of the constant and the second is the value of the constant.

Please pay attention to each line of commands and refer to the result so that you can analyse what a function is for.

As usual, any questions can be addressed via comments and so do the answers. See you in the next lessons.

Monday, April 25, 2016

Download Clone Yourself Camera Pro v1 3 6 apk full version


link

Tuesday, April 5, 2016

Download S K MyLanViewer v4 18 3 full version


link

تحميل برنامج Format Factory 3 1 0 Free Download

?????? FORMAT FACTORY 3.1.0 ????? ????? ??????? ?????? ?????? ?? ?? ?????? ??? ?????? ???? ??????











?????













?????



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 

Sunday, February 14, 2016

Download Translator Speak and Translate Pro v2 3 1 15 Apk


link

Tuesday, February 9, 2016

Download Magic Uneraser 3 5 Portable Keygen full version


link

Wednesday, February 3, 2016

Download Real Hide IP 4 4 3 6 full version


link

Tuesday, February 2, 2016

Download Snagit v12 3 2 Build 2920 Portable Keygen free

Download techsmith+snagit Torrents
Very nice screen video recorder , best screen video recorder ,TechSmith Snagit Portable Keygen
It is a best audio and video screen recorder for your system windows ,now you cam make your own video tutorial with the help of techsmith snagit full version that have also with portable just download it by click on link the fallow the next page you can see a button then under the button click on direct download link 

Sunday, January 31, 2016

Download SMS Caster E Marketer 3 7 Enterprise


link

Thursday, January 28, 2016

Download Hide IP Changer Easy 5 3 3 6 full version



link

Bangladeshi Recipe Book Download TItled Ranna Kaddho Pusti Part 3

We are the human being often need to process our food in order to make it delicious, healthy and fruitful for our health. Right?

For that reason, we need to know and learn how to process food or how to cook food. There are many ways to learn cooking and make a delicious recipe to present in front of your family and surprise them. The best way may be learning it by following videos or a good recipe book. And not more, if you wanna to learn Bangladeshi recipe to cook, you should have a well Bangla recipe book so that you can follow that one.

To solve such issue, Bangla Books PDF is offering you a special book of cooking in the field of Bangla recipe titled Ranna Kaddho Pusti by Prof. Siddika Kabir. And weve already offered you two part of this book. And here is the third part of this book. Note that, the partition is not from the author. It is due to usefulness of file sharing or small file size. If you need the whole Bangla recipe books, just download all parts.


So, here is the part three of Ranna Kaddo Pusti by Prof. Siddika Kabir.


Book Name: Ranna Kaddo Pusti
Part: Part 3
Writer: Prof. Siddika Kabir
Book Type: Bangla Recipe

To get the Bangla recipe book Ranna Kaddo Pusti part 3 by Professor Siddika Kabir, You are required to click here

Tuesday, January 26, 2016

Download C Video Tutorials in Urdu Hindi Part 3

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

Download-C-plus-plus-Video-Tutorials-in Urdu-Hindi-for-free-part-3
Download-C-plus-plus-Video-Tutorials-in Urdu-Hindi-for-free-part-3

 

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 C++ Video Tutorials in Urdu,Hindi [Part 3]


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


 

25. Recursion



26. Structures


27. Nested Structures


28. Structure Assignments


29. Arrays of Structure


30. Various Programming Paradigms


31. Object Oriented Programming


32. Classes


33. Class Method Defintion


34. Memory Allocation of Objects


35. Array of Objects


36. Objects as function Arguments



DOWNLOAD PART 1
DOWNLOAD PART 2

Saturday, January 23, 2016

Download Webcam Surveyor 3 0 0 build 973 full version


link