Skip to Content

You are here

admin's blog

Generating xml from text file

error_reporting(E_ALL); ini_set("display_errors", 1); $handle = @fopen("site_hierarchy.txt", "r"); if ($handle) { /** Creating the root element in the xml **/ $doc = new DOMDocument("1.0"); // Read File Line By Line $prevCount = -1; $prevNode = NULL; $prevNode = $doc->createElement("root"); $doc->appendChild($prevNode); while (($fileContent = fgets($handle, 4096)) !== false) { $count = 0; $newStrLine = $fileContent; $newStrLine = str_replace("\t","" , $newStrLine, $count); $child = createTerms($doc,$newStrLine); if ( $prevCount < $count ) { $prevNode = $prevNode->appendChild($ch

Tags: 

Moodle 1.9 Course completion not present

Hi, I have gone through one of the requirement stating that in

Tags: 

What's new in Drupal 7 in Brief

With Drupal 7 Following new things were added in brief : 1.New Themes- Bartik,Seven,Stark2.Revamped Admin Interface3.Improved Theming Layer- Inclusion of html.tpl.php and block specified classes with proper naming for every theme. 4.jQuery Updates- Jquery used is 1.4.4 faster and Jquery UI 1.8 added. 5.Ships with CCK- CCK package is included in Drupal core. 6.RDF Support-Technology that is used to implement the semantic web on drupal sites called RDF. With these features drupal 7 has left drupal 6 far away in terms of html5 standards and other accessibility issues.

Tags: 

Installing Drupal and CiviCRM with tarball

Hi We will see today how to install Drupal and CiviCRM : 1. Installing Drupal - a. Create the database using phpmyadmin ( give access for everything ) b. Download the Drupal tar / zip file from drupal.org c. Extract the same in the htdocs (windows) or public_html(linux) folder. d. Rename the extracted folder to desired name like demo e. In the demo folder go to directory demo/sites/default folder and create copy of default.settings.php to settings.php f. Once this is done.

Tags: 

Pages

Subscribe to RSS - admin's blog