Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > Pear
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

Pear Pear programming, this is a very complex subject as with using pear with php can be a difficult task for some, so lets talk pear.

Google
Closed Thread
 
LinkBack Thread Tools Display Modes
Old 05-20-2007, 7:42 PM   #1
Alexey Borzov
 
Alexey Borzov's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default cvs: pear /HTTP_Request Request.php package2.xml /HTTP_Request/docs download-progress.php example.php

avb Fri May 18 19:20:12 2007 UTC

Modified files:
/pear/HTTP_Request Request.php package2.xml
/pear/HTTP_Request/docs download-progress.php example.php
Log:
Better API documentation generated
Prepare release 1.4.1


http://cvs.php.net/viewvc.cgi/pear/H...&diff_format=u
Index: pear/HTTP_Request/Request.php
diff -u pear/HTTP_Request/Request.php:1.54 pear/HTTP_Request/Request.php:1.55
--- pear/HTTP_Request/Request.php:1.54 Fri May 18 18:27:32 2007
+++ pear/HTTP_Request/Request.php Fri May 18 19:20:12 2007
@@ -40,7 +40,7 @@
* @author Alexey Borzov <avb@php.net>
* @copyright 2002-2007 Richard Heyes
* @license http://opensource.org/licenses/bsd-license.php New BSD License
- * @version CVS: $Id: Request.php,v 1.54 2007/05/18 18:27:32 avb Exp $
+ * @version CVS: $Id: Request.php,v 1.55 2007/05/18 19:20:12 avb Exp $
* @link http://pear.php.net/package/HTTP_Request/
*/

@@ -106,6 +106,9 @@
*/
class HTTP_Request
{
+ /**#@+
+ * @access private
+ */
/**
* Instance of Net_URL
* @var Net_URL
@@ -255,6 +258,7 @@
* @var array
*/
var $_socketOptions = null;
+ /**#@-*/

/**
* Constructor
@@ -975,6 +979,7 @@
* @param string name for item
* @param mixed item's values
* @return array array with the following items: array('item name', 'item value');
+ * @access private
*/
function _flattenArray($name, $values)
{
@@ -1001,6 +1006,17 @@
* Adds a Listener to the list of listeners that are notified of
* the object's events
*
+ * Events sent by HTTP_Request object
+ * - 'connect': on connection to server
+ * - 'sentRequest': after the request was sent
+ * - 'disconnect': on disconnection from server
+ *
+ * Events sent by HTTP_Response object
+ * - 'gotHeaders': after receiving response headers (headers are passed in $data)
+ * - 'tick': on receiving a part of response body (the part is passed in $data)
+ * - 'gzTick': on receiving a gzip-encoded part of response body (ditto)
+ * - 'gotBody': after receiving the response body (passes the decoded body in $data if it was gzipped)
+ *
* @param HTTP_Request_Listener listener to attach
* @return boolean whether the listener was successfully attached
* @access public
@@ -1036,20 +1052,10 @@
/**
* Notifies all registered listeners of an event.
*
- * Events sent by HTTP_Request object
- * - 'connect': on connection to server
- * - 'sentRequest': after the request was sent
- * - 'disconnect': on disconnection from server
- *
- * Events sent by HTTP_Response object
- * - 'gotHeaders': after receiving response headers (headers are passed in $data)
- * - 'tick': on receiving a part of response body (the part is passed in $data)
- * - 'gzTick': on receiving a gzip-encoded part of response body (ditto)
- * - 'gotBody': after receiving the response body (passes the decoded body in $data if it was gzipped)
- *
* @param string Event name
* @param mixed Additional data
* @access private
+ * @see HTTP_Request::attach()
*/
function _notify($event, $data = null)
{
http://cvs.php.net/viewvc.cgi/pear/H...&diff_format=u
Index: pear/HTTP_Request/package2.xml
diff -u pear/HTTP_Request/package2.xml:1.2 pear/HTTP_Request/package2.xml:1.3
--- pear/HTTP_Request/package2.xml:1.2 Mon Feb 26 19:16:18 2007
+++ pear/HTTP_Request/package2.xml Fri May 18 19:20:12 2007
@@ -22,10 +22,10 @@
<email>avb@php.net</email>
<active>yes</active>
</lead>
- <date>2007-03-xx</date>
+ <date>2007-05-18</date>
<version>
<release>1.4.1</release>
- <api>1.4.1</api>
+ <api>1.4.0</api>
</version>
<stability>
<release>stable</release>
@@ -33,8 +33,14 @@
</stability>
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
<notes>
-* Removed unintended parameter for getURL() (Bug #9586)
-* Improved API documentation (Bug #9984)
+* Removed bogus parameter for getURL() (Bug #9586, thanks to Martin Jansen)
+* Improved API documentation (Bug #9984, thanks to Martin Jansen)
+* Fixed wrong Content-Length if using mbstring function overloading (bug #10605)
+* Fixed bogus &quot;data CRC check failed&quot; error on 64-bit systems (bug #10790,
+ thanks to Bill Moran)
+* Redone the way package handles mbstring function overloading, this will allow
+ using gzip Content-Encoding when said overloading is switched on
+* Added proper header comment blocks, improved phpdoc comments
</notes>
<contents>
<dir name="/">
@@ -43,9 +49,13 @@
<file baseinstalldir="HTTP" name="example.php" role="doc"/>
</dir>
<dir name="Request">
- <file baseinstalldir="HTTP" name="Listener.php" role="php"/>
+ <file baseinstalldir="HTTP" name="Listener.php" role="php">
+ <tasks:replace from="@package_version@" to="version" type="package-info" />
+ </file>
</dir>
- <file baseinstalldir="HTTP" name="Request.php" role="php"/>
+ <file baseinstalldir="HTTP" name="Request.php" role="php">
+ <tasks:replace from="@package_version@" to="version" type="package-info" />
+ </file>
</dir>
</contents>
<dependencies>
http://cvs.php.net/viewvc.cgi/pear/H...&diff_format=u
Index: pear/HTTP_Request/docs/download-progress.php
diff -u pear/HTTP_Request/docs/download-progress.php:1.2 pear/HTTP_Request/docs/download-progress.php:1.3
--- pear/HTTP_Request/docs/download-progress.php:1.2 Fri May 18 10:33:31 2007
+++ pear/HTTP_Request/docs/download-progress.php Fri May 18 19:20:12 2007
@@ -6,11 +6,16 @@
* Note two things:
* 1) The file should be run in console, not in browser;
* 2) You should turn output buffering OFF for this to work properly.
- *
- * @version CVS: $Id: download-progress.php,v 1.2 2007/05/18 10:33:31 avb Exp $
+ *
+ * @category HTTP
+ * @package HTTP_Request
+ * @version CVS: $Id: download-progress.php,v 1.3 2007/05/18 19:20:12 avb Exp $
* @ignore
*/

+/**
+ * Class for performing HTTP requests
+ */
require_once 'HTTP/Request.php';
require_once 'HTTP/Request/Listener.php';
require_once 'Console/ProgressBar.php';
@@ -19,6 +24,13 @@

set_time_limit(0);

+/**
+ * A Listener for HTTP_Request that draws download progress indicator
+ *
+ * @category HTTP
+ * @package HTTP_Request
+ * @ignore
+ */
class HTTP_Request_DownloadListener extends HTTP_Request_Listener
{
/**
@@ -28,7 +40,7 @@
var $_fp;

/**
- * Console_ProgressBar intance used to display the indicator
+ * Console_ProgressBar instance used to display the indicator
* @var object
*/
var $_bar;
http://cvs.php.net/viewvc.cgi/pear/H...&diff_format=u
Index: pear/HTTP_Request/docs/example.php
diff -u pear/HTTP_Request/docs/example.php:1.6 pear/HTTP_Request/docs/example.php:1.7
--- pear/HTTP_Request/docs/example.php:1.6 Fri May 18 10:33:31 2007
+++ pear/HTTP_Request/docs/example.php Fri May 18 19:20:12 2007
@@ -36,9 +36,15 @@
/**
* This will grab a webpage and display it
*
- * @version CVS: $Id: example.php,v 1.6 2007/05/18 10:33:31 avb Exp $
+ * @category HTTP
+ * @package HTTP_Request
+ * @version CVS: $Id: example.php,v 1.7 2007/05/18 19:20:12 avb Exp $
* @ignore
*/
+
+/**
+ * Class for performing HTTP requests
+ */
include('HTTP/Request.php');

$req = &new HTTP_Request('http://www.php.net');
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Featured Websites
Free Space
Free Space
Free Space Free Space
Closed Thread
Tags: , , , , , , ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
cvs: pear /HTTP_Request Request.php Alexey Borzov Pear 0 05-20-2007 7:42 PM
cvs: pear /HTTP_Request Request.php Alexey Borzov Pear 0 05-20-2007 7:42 PM
cvs: pear /HTTP_Request/Request Listener.php /HTTP_Request/docs download-progress.php example.php Alexey Borzov Pear 0 05-20-2007 7:42 PM
cvs: pear-core / package-PEAR.xml package2.xml /PEAR/PackageFile/Generator v2.php Greg Beaver Pear 0 05-20-2007 7:42 PM
[ANNOUNCEMENT] HTTP_Request-1.4.1 (stable) Released. PEAR Announce Pear 0 05-20-2007 6:34 PM


Featured Websites




All times are GMT +1. The time now is 8:13 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98