pear2 / services_linkback Goto Github PK
View Code? Open in Web Editor NEWPHP Pingback + webmention client and server implementation
Home Page: http://pear2.php.net/PEAR2_Services_Linkback
PHP Pingback + webmention client and server implementation
Home Page: http://pear2.php.net/PEAR2_Services_Linkback
$php examples/cli-client.php http://www.bogo/tagebuch/ssl-client-certificates.htm http://werxltd.com/wp/2010/09/28/secure-client-authentication-with-php-cert-auth/
Sending pingback from http://www.bogo/tagebuch/ssl-client-certificates.htm to http://werxltd.com/wp/2010/09/28/secure-client-authentication-with-php-cert-auth/
PHP Warning: include_once(PEAR/Error.php): failed to open stream: No such file or directory in /home/cweiske/Dev/pear/pear2/Services_Pingback/examples/cli-client.php on line 13
PHP Stack trace:
PHP 1. PEAR_Exception->__toString() /usr/share/php/PEAR/Exception.php:0
PHP 2. PEAR_Exception->toText() /usr/share/php/PEAR/Exception.php:320
PHP 3. PEAR_Exception->getCauseMessage() /usr/share/php/PEAR/Exception.php:380
PHP 4. class_exists() /usr/share/php/PEAR/Exception.php:255
PHP 5. __autoload() /usr/share/php/PEAR/Exception.php:255
PHP Warning: include_once(): Failed opening 'PEAR/Error.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear:/home/cweiske/Dev/pear/pear2/Services_Pingback/examples/../src/') in /home/cweiske/Dev/pear/pear2/Services_Pingback/examples/cli-client.php on line 13
PHP Stack trace:
PHP 1. PEAR_Exception->__toString() /usr/share/php/PEAR/Exception.php:0
PHP 2. PEAR_Exception->toText() /usr/share/php/PEAR/Exception.php:320
PHP 3. PEAR_Exception->getCauseMessage() /usr/share/php/PEAR/Exception.php:380
PHP 4. class_exists() /usr/share/php/PEAR/Exception.php:255
PHP 5. __autoload() /usr/share/php/PEAR/Exception.php:255
PHP Fatal error: Uncaught HTTP_Request2_MessageException: Malformed response: ��
thrown in /usr/share/php/HTTP/Request2/Response.php on line 238
CDATA
?https://github.com/pear2/Services_Pingback2/blob/master/src/PEAR2/Services/Pingback2/Client.php#L56
https://github.com/pear2/Services_Pingback2/blob/master/src/PEAR2/Services/Pingback2/Client.php#L56
(So you can skip the \
each time.)
https://github.com/pear2/Services_Pingback2/blob/master/src/PEAR2/Services/Pingback2/Client.php#L105
This seems to happen in all sub-classes. Not sure why you didn't namespace all the way.
https://github.com/pear2/Services_Pingback2/blob/master/src/PEAR2/Services/Pingback2/Server.php#L59
Would make this php://input
by default but allow override so you can write an actual unit test for it.
https://github.com/pear2/Services_Pingback2/blob/master/src/PEAR2/Services/Pingback2/Server.php#L149
https://github.com/pear2/Services_Pingback2/blob/master/src/PEAR2/Services/Pingback2/Server.php#L162
If you validated the callback earlier, you could avoid these:
https://github.com/pear2/Services_Pingback2/blob/master/src/PEAR2/Services/Pingback2/Server.php#L261
https://github.com/pear2/Services_Pingback2/blob/master/src/PEAR2/Services/Pingback2/Server.php#L233
https://github.com/pear2/Services_Pingback2/blob/master/src/PEAR2/Services/Pingback2/Server.php#L206
https://github.com/pear2/Services_Pingback2/blob/master/src/PEAR2/Services/Pingback2/Server.php#L137
Not the best idea, IMHO since this doesn't allow me to use your code within my own framework who may take care of this. :) Also, imagine people use another charset (for whatever reason, etc.).
This does not exist by default.
<link rel="pingback" href="xmlrpc.php"/>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.