PHP Video File Upload in Server

Configure The “php.ini” File in local server or Linux ,Centos.for In your “php.ini” file, search for the file_uploads directive, and set it to On: For centos or linux you need to configure the these changes in server. /etc/php.ini upload_max_filesize = 2M file_uploads = On change the upload_max_filesize = userdefine size ;upload_tmp_dir = uncomment the variable … Read more

C Instructions

C Programming Tutorial

We have seen the first c program, Now let us look at the instructions that we used in these programs. There are basically three types of instructions in C: Type Declaration Instruction – To declare the type of variables used in a C program. Arithmetic Instruction – To perform arithmetic operations between constants and variables Control Instruction … Read more

Scanf() : Receiving input in C program

C Programming Tutorial

In the First C Program discussed earlier (same has been also mentioned below for the reference) we assumed the values of p, n and r to be 1000, 3 and 8.5. Every time we run the program we would get the same value for simple interest. If we want to calculate simple interest for some other … Read more

Javascript with Cookies

java script

Cookie is simply a variable that your webpage can store on or retrieve from the user’s computer to host machine. Examples of cookies could be: First time the visitor arrives the name is entered.(for example “John Wayne”). The username is then stored in a cookie. Next time he arrives at your page, it writes something … Read more

Compilation and Execution of C Program

C Programming Tutorial

Once you have written the program you need to type it and instruct the machine to execute it. To type your C program you need another program called Editor. Once the program has been typed it needs to be converted to machine language (0’s and 1’s) before the machine can execute it. To carry out … Read more

The First C Program

C Programming Tutorial

we would write our first C program now. Once we have done that we would see in detail the instructions that it made use of. Before we begin with our first C program do remember the following rules that are applicable to all C programs: Each instruction in a C program is written as a … Read more

Types of C Variables

C Programming Tutorial

An entity that may vary during program execution is called a variable. Variable names are names given to locations in memory. These locations can contain integer, real or character constants. In any language, the types of variables that it can support depend on the types of constants that it can handle. This is because a particular type … Read more

Python Comment : Comment in Python

python tutorial

As programs get bigger and more complicated, they get more difficult to read. Formal languages are dense, and it is often difficult to look at a piece of code and figure out what it is doing, or why. For this reason, it is a good idea to add notes to your programs to explain in … Read more

mysql if function

MySQL Cluster

Syntax: IF(expr,if_true_expr,if_false_expr) MySQL IF function is control flow functions that returns a value based on a condition. The IF function is sometimes referred to as IF ELSE or IF THEN ELSE function. If the expr evaluates to TRUE i.e., expr is not NULL and expr is not 0, the IF function returns the if_true_expr , … Read more

MySQl Error: 1005 SQLSTATE: HY000

MySQL Cluster

If MySQL reports an error number 1005 from a CREATE TABLE statement, and the error message refers to error 150, table creation failed because a foreign key constraint was not correctly formed. Similarly, if an ALTER TABLE fails and it refers to error 150, that means a foreign key definition would be . Error: 1005 … Read more