Skip to main content

Posts

Javascript SOAP Client

Sometimes it is nice to get data using a SOAP call. However with using Javascript there are some disadvantages and hurdles that you may need to over come. As with any fun little project you will need some materials before we get started. Favorite Text Editor Browser Endpoint for the SOAP call - should be a url SOAP request string If you have all these things ready to go, the next thing we need to make sure of is that the proper headers are set on the server side. If this is not your server that your are trying to hit then you will need to ask the administrator of the server if they can fix up the proper access. The Headers we need are Access-Control-Allow-Origin: * Access-Control-Allow-Methods: POST Access-Control-Allow-Headers: SOAPAction, Content-Type If you happen to have a PHP SOAP server you can add these lines to the top of your code. Please remember that the header functions will need to load before you start printing other text to the page. heade...

Ben and Rose Harrington

Love fills a moment  A moment fills a lifetime  A lifetime begins eternity  Our eternity begins here,  at the wedding of  Rose Mary Black  &  Benjamin Lee Harrington  Please complete our happiness  by celebrating our wedding  At two-o'clock in the afternoon  On August twenty second  Two Thousand Nine  Mt. Moriah Baptist Church  990 Cornersville Rd  Lewisburg, Tennessee  Reception to Follow

PHP LDAP

Simple function to check if a username and password is correct with Active Directory. function checkNTuser($username, $pasword){ $Domain = "SOMEDOMAIN" ; $Server = "ldap://someaddress.co" ; $auth = $username. "@" .$Domain; if (extension_loaded( 'ldap' )){ echo "LDAP Module Enabled" ; $connect = ldap_connect($Server); if ($bind = ldap_bind($connect, $auth, $password)){ ldap_close($connect); echo "Success" ; return ( true ); } else { ldap_close($connect); echo "Failed" ; return ( false ); } } }

Palindrome

One of the first kinds of programs learned by a student is how to determine if a string is a palindrome. A palindroms is a word or string that is spelled the same backwords as it is forwards. An example would be "rotor". <?php $test = "rotor" ; if ( $test == strrev ( $test )) { echo "This is a palindrome" ; } else { echo "This is NOT a palindrome" ; } ?>

Export HTML to Excel

Export to Excel Today I learned a cool trick of how to export data that I have arranged in tables to an excel file quick and easy. Below is a sample of some code. To make it work copy the following code into its own php file. You will notice that in the code there are to function calls to the header. The first is the Content-Type which gives the browser the information needed to use excel to open the document. The second is the Content-disposition. This allows the user the option to save the document as an excel file, with a default or custom filename. <?php header( "Content-Type: application/vnd.ms-excel; name='excel'" ); header( "Content-disposition: attachment; filename=test.xls" ); ?> <table border= "1" > <tr> <td> test </td> <td> =3+4 </td> </tr> <tr> <td> test </td> <td> test2 </td> </tr> <tr> <td> test </td...

ZABEL FAMILY REUNION

Zabel Family Reunion 2005 – Held Legion Hall in Western, NE Aug. 14, 2005. Linda Zabel and Paly Partsch did a great job of planning, organizing and presiding over the reunion. A clan number (as I have dubbed it) was added to the name tags this year. This number designated which of Christians children was your ancestor. There were 62 in pictures, there were 66 present according to the roster. 5 were from outside of Nebraska. 1 from MO and 4 from TX. I want to thank every one that turned in one of the Family Group sheets. There was some information I did not already have on every single one of them. See Sue Pray’s pictures from reunion 2005. By my count; 92 were in attendance for the 2003 event. See Sue Pray’s pictures from reunion 2003. See Pat Harrington’s candid pictures from reunion 2003.

Wilber Republican - Aug 1960

Wilber Republican - Aug 1960 A land stake on 160 acres of choice bottom land three miles northeast of Western along the Swan Creek in South Fork Precinct in 1861 by Michael Frederick Witt which was followed by a land grant signed by President Andrew Johnson in 1867, on this same property, earns for Roger Zabel of Western the family land ownership record in Saline County. Michael Frederick Witt came to the United States in 1865 with his family from Germany where he had worked in the government forests, traveling first to Wisconsin and then to Johnson County, Nebraska, by ox team, moving west to Saline County on foot staking a claim along the Swan Creek on land which would make the family self-sufficient. Timber was plentiful along the creek for building and fire wood; a spring and the creek provided the necessary water and the rich bottom land gave the homesteaders their first sable crop, corn. Other families who settled in the Swan Creek vicinity at the same time making the journ...