Skip to content

Luventas Web Design

A new blog for developers in PHP, Java and mobile Development

  • Home
  • 2011
  • Juni
  • 20
  • Introduction how to use my genealogical scripts

Introduction how to use my genealogical scripts

Posted on 20 Juni 201120 Juni 2011 By luventas 3 Kommentare zu Introduction how to use my genealogical scripts
Genealogy, PHP

On a special plea I wrote an introduction how to use my genealogical scripts. The wish was to write it in german. this was done two days ago, but I don’t want to deprived of this to you also in english.Firstly you need a webspace with PHP and minimum one MySQL database. This database normally have a admin interface called phpMyAdmin.

In this interface you have to create a database (a so called schema). Afterwards you can insert the SQL code from my previous post to create the empty tables. This can be done on the „SQL“ tab. This empty tables are needed for the script for filling all information in the database.

Now you must open the gedcomToDatabase2.php script with a text editor for editing following lines:

$path     = „path/to/gedcom/file/“; # path to the gedcom file (in the case descriped afterwards it is „./“)
$filename = „gedcomfile.ged“;       # GEDCOM file name
$hostport = „localhost“;            # host of database, information from hoster)
$user     = „root“;                 # database user name
$password = „“;                     # database password
$database = „stammbaum“;            # database schema name (like inserted in phpMyAdmin interface)

Now you have to upload the script gedcomToDatabase2.php together with the gedcom file on your webspace. If you do not have much knowing about web development, it will be the best to upload both in the root directory of your webspace. Now you can call the script with your webbrowser. (http://www.mywebsite.com/gedcomToDatabase2.php)

After this step the database is filled with all data from your gedcom file and you can, if you want, delete the gedcom file and the script gedcomToDatabase2.php again from your webspace.

Now you have to unpack the zipfile familytree.zip and open the php script dbConnect.php in a text editor. Here you have to insert the same database connection data like described before for the previous script. After saving this information you can upload everything which was in the zip file on your webspace.

Now the family tree starts working. You can call it with http://www.mywebsite.com/stammbaum.php to view the first result.

If you want to insert the tree in your own website design you can do this by editing the header.php and footer.php. But for this is a minimum basic knowledge in web programming necessary.

deutsche version: http://blog.luventas-webdesign.de/?p=137

Print Friendly, PDF & Email

Beitrags-Navigation

❮ Previous Post: Anleitung zur Verwendung meiner genealogischen Skripte
Next Post: Include your family tree in your webpage, new Version ❯

You may also like

PHP
Create an Excel document with PHP
3 Juni 2011
PHP
Create Random Password with PHP
23 Mai 2011
PHP
Create your website multilingual
29 Mai 2011
PHP
Create thumbnail from image with PHP
25 Mai 2011

3 thoughts on “Introduction how to use my genealogical scripts”

  1. Andrew sagt:
    28 Juni 2013 um 01:03 Uhr

    Hi
    love your work

    After doing my tree for quite a number of years, I’m finding more and more info out there, and wanting to add to my data. QUite a bit of it can be downloaded as GEDCOM’s, so I’ve found your site

    I’ve loaded a sample GEDCOM into a datanase via your script which worked great.

    But the files in the familytree.zip appear to be in German… can you provide an English version

    Cheers
    Andrew
    Sydney, Australia

    Antworten
  2. Andrew sagt:
    28 Juni 2013 um 01:16 Uhr

    oops
    I should read some code before testing… thanks 8^D

    All done. Now to make some changes, such as if an ancestor’s box is empty, hide it

    Antworten
  3. Arnold sagt:
    26 Mai 2015 um 21:16 Uhr

    Hello Carsten,
    just found your site and this code. My main interest was mainly in seeing how the GEDCOM relates to a Mysql DB, so I don’t think that the code will be used on any website, but it is still very interesting and useful for myself mostly for learning more about this aspect of GEDCOM.

    In reading and parsing one of my .GED files, I did find a minor issue when some NAME records which do not follow the expected format, such as the name record sub-record for REPO
    My patch at line 141
    if ( count($tmp ) > 1 ) {
    $surn = $tmp[1];

    Antworten

Schreibe einen Kommentar Antworten abbrechen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Copyright © 2023 Luventas Web Design.

Theme: Oceanly News by ScriptsTown

Diese Website nutzt Cookies, um bestmögliche Funktionalität bieten zu können. OK, verstanden
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
immer aktiv
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SPEICHERN & AKZEPTIEREN