Changeset 62 for php


Ignore:
Timestamp:
Jul 19, 2011, 5:21:39 PM (14 years ago)
Author:
cla
Message:

rdfint

  • reworked way of determining session name for fDebug for the samples
Location:
php/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • php/trunk/rdfa.php

    r61 r62  
    5555  If (isset( $_SERVER[ "SERVER_NAME"]))
    5656    $fdebug->setSession( $_SERVER[ "SERVER_NAME"]);
    57   else {
    58     $unittest_name = str_replace( '_', ' ', basename( getcwd()));
    59     if (defined( 'FDEBUG_SESSION_NAME'))
    60       $fdebug->setSession( 'localhost', SAMPLE_NAME . ' ' . $unittest_name);
    61   }
     57  else
     58    $fdebug->setSession( 'localhost', FDEBUG_SESSION_NAME);
    6259  $fdebug->openSocket( '127.0.0.1');
    6360  $fdebug->sendSource( '<?xml version="1.0" ?><emptysource/>');
  • php/trunk/samples/sample_config.php

    r61 r62  
    2020
    2121// define base name of sample in fDebug
    22 define( 'FDEBUG_SESSION_NAME', 'RDFInt Sample');
    2322
     23$sample_name = str_replace( '_', ' ', basename( getcwd()));
     24define( 'FDEBUG_SESSION_NAME', 'RDFInt Sample ' . $sample_name);
    2425
    25 // --- CURRENTLY NOT USED 
     26// --- CURRENTLY NOT USED
    2627
    2728// activate debug output of the library classes in samples
Note: See TracChangeset for help on using the changeset viewer.