# Php Programming Code Examples

## Php > Authentication Code Examples

### Authentication script to authenticate users in Active Directory through LDAP.

Implementations for Pairing Heap in C++ - "Change the Value" of the item stored in the pairing heap. Does nothing if newVal is larger than currently stored value. p points to node returned by insert. "newVal" is the new value

C++ Codes Prints One Dimensional Arrays - You have to ask to the user to enter array size array elements to store all the array elements in one dimensional and then print the array in "one dimension" using one for loop as shown

Reading From and Writing to a File in C++ - While writing C++, coders write information to a file from the program using the "stream" insertion operator (<<) and reads information using the "Stream Extraction" Operator (>>).

C++ Coding Add Two Numbers by Pointer - To add two numbers using pointer in the C++, you have to enter the 2 number, then make 2 'pointer' type variable of same type say *ptr1 and *ptr2 to initialize the address of both the

C Programming language WAV file player - You need a HUGE memory model to run this. Checks to see if a Sound Blaster exists at a given address, returns true if Sound Blaster found, false if not. Send a byte to the DSP

C Checking the Character is Alphabet Digit - C Programming input a character and Check whether given character is alphabet, digit or special character using if else. A character is alphabet if it in between a-z or A-Z. Character

Strrchr searches the string in reverse order - 'StrrChr' is similar to the function 'StrChr', the only difference is that it searches the string in "Reverse Order", would have understood why we have extra r in 'strrchr', yes you guessed it

Finds Factorial of Number using Recursion - Declare recursive function to find factorial of a number. First let us give a meaningful name to our function, say fact(). Factorial Function accepts an integer input whose factorial is to