Services_Pingback
[ class tree: Services_Pingback ] [ index: Services_Pingback ] [ all elements ]

Source for file receive.php

Documentation is available at receive.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker */
  3.  
  4. /**
  5.  * Services_Pingback receive example.
  6.  */
  7.  
  8. if (isset($_REQUEST['source'])) {
  9.     highlight_file(__FILE__);
  10.     die;
  11. }
  12.  
  13. // Load Services_Pingback.
  14. require_once 'Services/Pingback.php';
  15.  
  16. // Receive pingback call.
  17. $pingback = new Services_Pingback;
  18.  
  19. // Turn on debug mode.
  20. # $pingback->setOptions(array('debug' => true));
  21.  
  22. $pingback->receive();
  23.  
  24.  
  25. print "\n" '------------------------ Context -------------------------' "\n";
  26. print '<!--' "\n";
  27. $context $pingback->getSourceContext();
  28. foreach ($context as $key => $value{
  29.     print "$key = $value\n";
  30. }
  31. print '-->' "\n";
  32. print '------------------------ Context -------------------------' "\n";
  33.  
  34. /*
  35.  * Local variables:
  36.  * mode: php
  37.  * tab-width: 4
  38.  * c-basic-offset: 4
  39.  * c-hanging-comment-ender-p: nil
  40.  * End:
  41.  */
  42. ?>

Documentation generated on Mon, 11 Mar 2019 14:49:13 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.